aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/lang-specs.h
diff options
context:
space:
mode:
authorTobias Burnus <burnus@net-b.de>2008-11-03 08:20:24 +0100
committerTobias Burnus <burnus@gcc.gnu.org>2008-11-03 08:20:24 +0100
commit0ee1b105a36031f53b989f42f7bb38fc8f2c17be (patch)
tree98fad3e4de24661c6a6e73acd3e7e4f5eb096157 /gcc/fortran/lang-specs.h
parent67cec813c625940ddf829c57f4bfd1c14fd7e563 (diff)
downloadgcc-0ee1b105a36031f53b989f42f7bb38fc8f2c17be.zip
gcc-0ee1b105a36031f53b989f42f7bb38fc8f2c17be.tar.gz
gcc-0ee1b105a36031f53b989f42f7bb38fc8f2c17be.tar.bz2
re PR fortran/37821 (gfortran is ignoring #includes with the syntax <file.h>)
2008-11-03 Tobias Burnus <burnus@net-b.de> PR fortran/37821 * cpp.c (gfc_cpp_add_include_path): Use BRACKET. * scanner.c (add_path_to_list): Argument to add at head. (gfc_add_include_path): Add new argument. (gfc_add_intrinsic_modules_path) Update call. (load_file): Print filename/line in the error message. * gfortran.h (gfc_add_include_path): Update prototype. * options.c (gfc_post_options,gfc_handle_module_path_options, gfc_handle_option): Update call. * lang-spec.h (F951_OPTIONS): Don't insert include path twice. * arith.c (arith_error): Add -fno-range-error to the message. 2008-11-03 Tobias Burnus <burnus@net-b.de> PR fortran/37821 * gfortran.dg/include_4.f90: New. * gfortran.dg/include_5.f90: New. * gfortran.dg/include_4.inc: New. From-SVN: r141544
Diffstat (limited to 'gcc/fortran/lang-specs.h')
-rw-r--r--gcc/fortran/lang-specs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/fortran/lang-specs.h b/gcc/fortran/lang-specs.h
index e4bd050..a766162 100644
--- a/gcc/fortran/lang-specs.h
+++ b/gcc/fortran/lang-specs.h
@@ -23,7 +23,7 @@
#define F951_CPP_OPTIONS "%{!nocpp: -cpp %g.f90 %(cpp_options)\
%{E|M|MM:%(cpp_debug_options) -fsyntax-only} %{E}}"
-#define F951_OPTIONS "%(cc1_options) %{J*} %{I*}\
+#define F951_OPTIONS "%(cc1_options) %{J*} %{!cpp: %{I*}}\
%{!nostdinc:-fintrinsic-modules-path finclude%s}\
%{!fsyntax-only:%(invoke_as)}"
#define F951_SOURCE_FORM "%{!ffree-form:-ffixed-form}"