[fortran,1/22] Various minor fixups

Submitted by Mikael Morin on Oct. 5, 2010, 10:11 a.m.

Details

Message ID 20101005100947.1836.91057@gimli.local
State New
Headers show

Commit Message

Mikael Morin Oct. 5, 2010, 10:11 a.m.
2010-10-04  Mikael Morin  <mikael@gcc.gnu.org>

	* cpp.c (gfc_cpp_post_options): Don't create a cpp reader if
	preprocessing is disabled.

Patch hide | download patch | download mbox

diff --git a/cpp.c b/cpp.c
index 908c92a..c21d263 100644
--- a/cpp.c
+++ b/cpp.c
@@ -510,10 +510,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.