diff options
author | Neil Booth <neil@daikokuya.demon.co.uk> | 2001-01-20 09:33:01 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2001-01-20 09:33:01 +0000 |
commit | 673b13e2f6c1df4f23e117095437df11b35b09fc (patch) | |
tree | 23604c4b885ed0c3491942bb3ca2a1900184878c /gcc/cppmacro.c | |
parent | a42a5f59d0f51034f35d3fe2fed40b8dd3540c37 (diff) | |
download | gcc-673b13e2f6c1df4f23e117095437df11b35b09fc.zip gcc-673b13e2f6c1df4f23e117095437df11b35b09fc.tar.gz gcc-673b13e2f6c1df4f23e117095437df11b35b09fc.tar.bz2 |
cppmacro.c (funlike_invocation_p): Don't move back up to the context of the top of the stack.
* cppmacro.c (funlike_invocation_p): Don't move back up to the
context of the top of the stack.
From-SVN: r39152
Diffstat (limited to 'gcc/cppmacro.c')
-rw-r--r-- | gcc/cppmacro.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/gcc/cppmacro.c b/gcc/cppmacro.c index 1539552..a7d71a0 100644 --- a/gcc/cppmacro.c +++ b/gcc/cppmacro.c @@ -596,7 +596,7 @@ funlike_invocation_p (pfile, node, list) const cpp_hashnode *node; struct toklist *list; { - cpp_context *orig, *final; + cpp_context *orig; cpp_token maybe_paren; macro_arg *args = 0; cpp_lexer_pos macro_pos; @@ -618,7 +618,6 @@ funlike_invocation_p (pfile, node, list) node->name); /* Restore original context. */ - final = pfile->context; pfile->context = orig; pfile->state.prevent_expansion--; pfile->state.parsing_args = 0; @@ -639,13 +638,6 @@ funlike_invocation_p (pfile, node, list) free (args); } - /* Re-disable macros *after* pre-expansion. */ - while (final != orig) - { - final = final->next; - final->macro->disabled = 1; - } - return args != 0; } |