diff options
author | Tobias Burnus <burnus@net-b.de> | 2008-11-03 08:20:24 +0100 |
---|---|---|
committer | Tobias Burnus <burnus@gcc.gnu.org> | 2008-11-03 08:20:24 +0100 |
commit | 0ee1b105a36031f53b989f42f7bb38fc8f2c17be (patch) | |
tree | 98fad3e4de24661c6a6e73acd3e7e4f5eb096157 /gcc/fortran/cpp.c | |
parent | 67cec813c625940ddf829c57f4bfd1c14fd7e563 (diff) | |
download | gcc-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/cpp.c')
-rw-r--r-- | gcc/fortran/cpp.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/fortran/cpp.c b/gcc/fortran/cpp.c index 86e0335..51c8e85 100644 --- a/gcc/fortran/cpp.c +++ b/gcc/fortran/cpp.c @@ -628,10 +628,9 @@ gfc_cpp_add_include_path (char *path, bool user_supplied) { /* CHAIN sets cpp_dir->sysp which differs from 0 if PATH is a system include path. Fortran does not define any system include paths. */ - int chain = 0; int cxx_aware = 0; - add_path (path, chain, cxx_aware, user_supplied); + add_path (path, BRACKET, cxx_aware, user_supplied); } void |