aboutsummaryrefslogtreecommitdiff
path: root/gcc/cppmacro.c
diff options
context:
space:
mode:
authorNeil Booth <neil@daikokuya.demon.co.uk>2001-01-20 09:33:01 +0000
committerNeil Booth <neil@gcc.gnu.org>2001-01-20 09:33:01 +0000
commit673b13e2f6c1df4f23e117095437df11b35b09fc (patch)
tree23604c4b885ed0c3491942bb3ca2a1900184878c /gcc/cppmacro.c
parenta42a5f59d0f51034f35d3fe2fed40b8dd3540c37 (diff)
downloadgcc-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.c10
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;
}