aboutsummaryrefslogtreecommitdiff
path: root/gcc/cppmacro.c
diff options
context:
space:
mode:
authorNeil Booth <neil@daikokuya.demon.co.uk>2001-08-11 22:20:20 +0000
committerNeil Booth <neil@gcc.gnu.org>2001-08-11 22:20:20 +0000
commit2b2202656c555a659103f4ed7e140c5784613f33 (patch)
treef410dde5df3e70d7dbcae969b00093857d563e47 /gcc/cppmacro.c
parentd0101753fed46bc4a9d2bbcb1dabd591ad05f384 (diff)
downloadgcc-2b2202656c555a659103f4ed7e140c5784613f33.zip
gcc-2b2202656c555a659103f4ed7e140c5784613f33.tar.gz
gcc-2b2202656c555a659103f4ed7e140c5784613f33.tar.bz2
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
Diffstat (limited to 'gcc/cppmacro.c')
-rw-r--r--gcc/cppmacro.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/gcc/cppmacro.c b/gcc/cppmacro.c
index 8eb67e1..09cad20 100644
--- a/gcc/cppmacro.c
+++ b/gcc/cppmacro.c
@@ -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;
}