Commit 2b220265 by Neil Booth Committed by Neil Booth

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
parent d0101753
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> 2001-08-11 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
* config/rs6000/rs6000.c: Include integrate.h to silence warning. * config/rs6000/rs6000.c: Include integrate.h to silence warning.
......
...@@ -669,16 +669,12 @@ enter_macro_context (pfile, node) ...@@ -669,16 +669,12 @@ enter_macro_context (pfile, node)
list.limit = macro->expansion + macro->count; list.limit = macro->expansion + macro->count;
} }
/* Only push a macro context for non-empty replacement lists. */ context = next_context (pfile);
if (list.first != list.limit) context->list = list;
{ context->macro = macro;
context = next_context (pfile);
context->list = list;
context->macro = macro;
/* Disable the macro within its expansion. */ /* Disable the macro within its expansion. */
macro->disabled = 1; macro->disabled = 1;
}
return 1; return 1;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment