aboutsummaryrefslogtreecommitdiff
path: root/gcc/cppmacro.c
diff options
context:
space:
mode:
authorNeil Booth <neil@daikokuya.demon.co.uk>2001-09-05 06:46:53 +0000
committerNeil Booth <neil@gcc.gnu.org>2001-09-05 06:46:53 +0000
commit522d73ab745a4eeede21f21e379ba5f017b9a6c6 (patch)
treecd8620748e55197085ef54059a1f56ada4751094 /gcc/cppmacro.c
parentaead1ca3db61ac3e942e4c57a23d1dfbe3813234 (diff)
downloadgcc-522d73ab745a4eeede21f21e379ba5f017b9a6c6.zip
gcc-522d73ab745a4eeede21f21e379ba5f017b9a6c6.tar.gz
gcc-522d73ab745a4eeede21f21e379ba5f017b9a6c6.tar.bz2
* cppmacro.c (funlike_invocation_p): No need to restore context.
From-SVN: r45395
Diffstat (limited to 'gcc/cppmacro.c')
-rw-r--r--gcc/cppmacro.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/gcc/cppmacro.c b/gcc/cppmacro.c
index 1ee91b7..81828f15 100644
--- a/gcc/cppmacro.c
+++ b/gcc/cppmacro.c
@@ -591,7 +591,6 @@ funlike_invocation_p (pfile, node, list)
const cpp_hashnode *node;
struct toklist *list;
{
- cpp_context *orig;
cpp_token maybe_paren;
macro_arg *args = 0;
cpp_lexer_pos macro_pos;
@@ -599,7 +598,6 @@ funlike_invocation_p (pfile, node, list)
macro_pos = pfile->lexer_pos;
pfile->state.parsing_args = 1;
pfile->state.prevent_expansion++;
- orig = pfile->context;
cpp_start_lookahead (pfile);
cpp_get_token (pfile, &maybe_paren);
@@ -613,8 +611,6 @@ funlike_invocation_p (pfile, node, list)
"function-like macro \"%s\" must be used with arguments in traditional C",
NODE_NAME (node));
- /* Restore original context. */
- pfile->context = orig;
pfile->state.prevent_expansion--;
pfile->state.parsing_args = 0;
@@ -886,8 +882,7 @@ _cpp_pop_context (pfile)
if (!pfile->context->prev && !pfile->state.parsing_args)
unlock_pools (pfile);
- /* Re-enable a macro, temporarily if parsing_args, when leaving its
- expansion. */
+ /* Re-enable a macro when leaving its expansion. */
context->macro->disabled = 0;
}