diff options
author | mikael <mikael@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-10-06 14:06:20 +0000 |
---|---|---|
committer | mikael <mikael@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-10-06 14:06:20 +0000 |
commit | a0fe5b576846cd1dd81184b3d27cbe8c877f67f0 (patch) | |
tree | a5d54df124aa98dd7c415385f14aae4a81b0fd29 /gcc/fortran | |
parent | 8c2867729f9ebc1e0518236df658ae312399eb91 (diff) | |
download | gcc-a0fe5b576846cd1dd81184b3d27cbe8c877f67f0.tar.gz |
2010-10-06 Mikael Morin <mikael@gcc.gnu.org>
* cpp.c (gfc_cpp_post_options): Don't create a cpp reader if
preprocessing is disabled.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165024 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fortran')
-rw-r--r-- | gcc/fortran/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/fortran/cpp.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog index 485aebb6cca..e690c5742ae 100644 --- a/gcc/fortran/ChangeLog +++ b/gcc/fortran/ChangeLog @@ -1,3 +1,8 @@ +2010-10-06 Mikael Morin <mikael@gcc.gnu.org> + + * cpp.c (gfc_cpp_post_options): Don't create a cpp reader if + preprocessing is disabled. + 2010-10-06 Jakub Jelinek <jakub@redhat.com> PR middle-end/45838 diff --git a/gcc/fortran/cpp.c b/gcc/fortran/cpp.c index ff4902506f2..ca6d34c6be9 100644 --- a/gcc/fortran/cpp.c +++ b/gcc/fortran/cpp.c @@ -448,10 +448,10 @@ gfc_cpp_post_options (void) || gfc_cpp_option.dump_includes)) gfc_fatal_error("To enable preprocessing, use -cpp"); - cpp_in = cpp_create_reader (CLK_GNUC89, NULL, line_table); if (!gfc_cpp_enabled ()) return; + cpp_in = cpp_create_reader (CLK_GNUC89, NULL, line_table); gcc_assert (cpp_in); /* The cpp_options-structure defines far more flags than those set here. |