re PR preprocessor/45457 (ICE: invalid built-in macro "__DBL_DENORM_MIN__")

PR preprocessor/45457
	* expr.c (parse_defined): Call pfile->cb.user_builtin_macro hook if
	needed.
	* directives.c (do_ifdef, do_ifndef): Likewise.

	* c-c++-common/cpp/pr45457.c: New test.

From-SVN: r163705
This commit is contained in:
Jakub Jelinek 2010-09-01 00:47:25 +02:00 committed by Jakub Jelinek
parent 0c1bebc414
commit a69d2520e0
5 changed files with 40 additions and 1 deletions

View file

@ -700,6 +700,9 @@ parse_defined (cpp_reader *pfile)
node->flags |= NODE_USED;
if (node->type == NT_MACRO)
{
if ((node->flags & NODE_BUILTIN)
&& pfile->cb.user_builtin_macro)
pfile->cb.user_builtin_macro (pfile, node);
if (pfile->cb.used_define)
pfile->cb.used_define (pfile, pfile->directive_line, node);
}