cppmacro.c (enter_macro_context): Push macro expansions even if empty.
authorNeil Booth <neil@daikokuya.demon.co.uk>
Sat, 11 Aug 2001 22:20:20 +0000 (22:20 +0000)
committerNeil Booth <neil@gcc.gnu.org>
Sat, 11 Aug 2001 22:20:20 +0000 (22:20 +0000)
* cppmacro.c (enter_macro_context): Push macro expansions even
if empty.

From-SVN: r44813

gcc/ChangeLog
gcc/cppmacro.c

index 28ff4d9ffa0e4918ac891189a58a0c54aeb17ac1..e46af0e68de4da67ea694df405c597dddcc86165 100644 (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.
index 8eb67e1d3a3e6e996aafa8632f002c65077c5265..09cad20553ce733caf28ebd5bd0f17536b37cab4 100644 (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;
 }