cppmacro.c (enter_macro_context): Push macro expansions even if empty.

* cppmacro.c (enter_macro_context): Push macro expansions even
	if empty.

From-SVN: r44813
This commit is contained in:
Neil Booth 2001-08-11 22:20:20 +00:00 committed by Neil Booth
parent d0101753fe
commit 2b2202656c
2 changed files with 10 additions and 9 deletions

View File

@ -1,3 +1,8 @@
2001-08-11 Neil Booth <neil@daikokuya.demon.co.uk>
* cppmacro.c (enter_macro_context): Push macro expansions even
if empty.
2001-08-11 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
* config/rs6000/rs6000.c: Include integrate.h to silence warning.

View File

@ -669,16 +669,12 @@ enter_macro_context (pfile, node)
list.limit = macro->expansion + macro->count;
}
/* Only push a macro context for non-empty replacement lists. */
if (list.first != list.limit)
{
context = next_context (pfile);
context->list = list;
context->macro = macro;
context = next_context (pfile);
context->list = list;
context->macro = macro;
/* Disable the macro within its expansion. */
macro->disabled = 1;
}
/* Disable the macro within its expansion. */
macro->disabled = 1;
return 1;
}