diff options
| author | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-11-26 10:48:50 +0000 |
|---|---|---|
| committer | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-11-26 10:48:50 +0000 |
| commit | 5002156ca1d0183d070bdb48cca87d8e9597b40f (patch) | |
| tree | 19c1903975465b332e8493e4d43d5dc97114c91d /gcc/cppinit.c | |
| parent | f670905c56d32057848877298a07d527e03fd5fa (diff) | |
| download | ppe42-gcc-5002156ca1d0183d070bdb48cca87d8e9597b40f.tar.gz ppe42-gcc-5002156ca1d0183d070bdb48cca87d8e9597b40f.zip | |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37754 138bc75d-0d04-0410-961f-82ee72b054a4
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 62428406ee2..2f190cd1b90 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); |

