diff options
author | Neil Booth <neilb@earthling.net> | 2000-11-26 10:48:50 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2000-11-26 10:48:50 +0000 |
commit | 056487e74726a9e9067792ca058744366801ea50 (patch) | |
tree | 19c1903975465b332e8493e4d43d5dc97114c91d /gcc/cppinit.c | |
parent | 7dcae299c7bdc0e17fce1b330739889a15ff1ca7 (diff) | |
download | gcc-056487e74726a9e9067792ca058744366801ea50.zip gcc-056487e74726a9e9067792ca058744366801ea50.tar.gz gcc-056487e74726a9e9067792ca058744366801ea50.tar.bz2 |
Makefile.in: Remove MAYBE_CPPLIB and maybe_cpplib.
* Makefile.in: Remove MAYBE_CPPLIB and maybe_cpplib.
* c-decl.c: Remove parse_in declaration.
* c-lang.c: Similarly.
* c-lex.c: Similarly.
* c-parse.in: Similarly.
* c-pragma.c: Similarly.
* configure.in: Similarly.
* cp/Make-lang.in: Similarly.
* cp/spew.c: Similarly.
* cp/decl2.c: Remove check for lang-c++ option.
* cp/lang-specs.h: Remove -lang-c++ from cc1plus command line.
* cp/lex.c (lang_init_options): With cpp_reader_init, default to C++.
* c-lex.h: Add declaration of parse_in.
* cppinit.c: Call set_lang after allocating pfile->pending.
* configure: Regenerate.
From-SVN: r37754
Diffstat (limited to 'gcc/cppinit.c')
-rw-r--r-- | gcc/cppinit.c | 4 |
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); |