From a0fe5b576846cd1dd81184b3d27cbe8c877f67f0 Mon Sep 17 00:00:00 2001 From: mikael Date: Wed, 6 Oct 2010 14:06:20 +0000 Subject: [PATCH] 2010-10-06 Mikael Morin * 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 --- gcc/fortran/ChangeLog | 5 +++++ gcc/fortran/cpp.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog index 485aebb..e690c57 100644 --- a/gcc/fortran/ChangeLog +++ b/gcc/fortran/ChangeLog @@ -1,3 +1,8 @@ +2010-10-06 Mikael Morin + + * cpp.c (gfc_cpp_post_options): Don't create a cpp reader if + preprocessing is disabled. + 2010-10-06 Jakub Jelinek PR middle-end/45838 diff --git a/gcc/fortran/cpp.c b/gcc/fortran/cpp.c index ff49025..ca6d34c 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. -- 2.7.4