aboutsummaryrefslogtreecommitdiff
path: root/gcc/cpplex.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cpplex.c')
-rw-r--r--gcc/cpplex.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/cpplex.c b/gcc/cpplex.c
index 56b8543..970b35f 100644
--- a/gcc/cpplex.c
+++ b/gcc/cpplex.c
@@ -2972,7 +2972,6 @@ push_macro_context (pfile, token)
args->tokens = 0;
args->capacity = 0;
args->used = 0;
- args->level = pfile->cur_context;
prev_nme = prevent_macro_expansion (pfile);
pfile->args = args;
@@ -2984,6 +2983,8 @@ push_macro_context (pfile, token)
free_macro_args (args);
return 1;
}
+ /* Set the level after the call to parse_args. */
+ args->level = pfile->cur_context;
}
/* Now push its context. */