cpp.c (gfc_cpp_post_options): Don't create a cpp reader if preprocessing is disabled.
authorMikael Morin <mikael@gcc.gnu.org>
Wed, 6 Oct 2010 14:06:20 +0000 (14:06 +0000)
committerMikael Morin <mikael@gcc.gnu.org>
Wed, 6 Oct 2010 14:06:20 +0000 (14:06 +0000)
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.

From-SVN: r165024

gcc/fortran/ChangeLog
gcc/fortran/cpp.c

index 485aebb6cca8ec28dd6a84a13422fa9c4ccc2529..e690c5742ae81ab179745b029703692dcffed608 100644 (file)
@@ -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
index ff4902506f20f6a2d9e2b1a7a32f81254b875268..ca6d34c6be9d734776789d70d7dfc8001c9d723d 100644 (file)
@@ -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.