aboutsummaryrefslogtreecommitdiff
path: root/gcc/cppinit.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cppinit.c')
-rw-r--r--gcc/cppinit.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/cppinit.c b/gcc/cppinit.c
index 6242840..2f190cd 100644
--- a/gcc/cppinit.c
+++ b/gcc/cppinit.c
@@ -541,7 +541,6 @@ cpp_reader_init (pfile, lang)
cpp_init ();
}
- set_lang (pfile, lang);
CPP_OPTION (pfile, warn_import) = 1;
CPP_OPTION (pfile, warn_paste) = 1;
CPP_OPTION (pfile, discard_comments) = 1;
@@ -551,6 +550,9 @@ cpp_reader_init (pfile, lang)
CPP_OPTION (pfile, pending) =
(struct cpp_pending *) xcalloc (1, sizeof (struct cpp_pending));
+ /* After creating pfile->pending. */
+ set_lang (pfile, lang);
+
/* Initialize lexer state. */
pfile->state.save_comments = ! CPP_OPTION (pfile, discard_comments);