From: Mikael Morin Date: Wed, 6 Oct 2010 14:06:20 +0000 (+0000) Subject: cpp.c (gfc_cpp_post_options): Don't create a cpp reader if preprocessing is disabled. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=adb18384bdd9a40483f03bed8389cd91ad03d0a4;p=gcc.git cpp.c (gfc_cpp_post_options): Don't create a cpp reader if preprocessing is disabled. 2010-10-06 Mikael Morin * cpp.c (gfc_cpp_post_options): Don't create a cpp reader if preprocessing is disabled. From-SVN: r165024 --- 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 + + * 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 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.