re PR fortran/37821 (gfortran is ignoring #includes with the syntax <file.h>)
authorTobias Burnus <burnus@net-b.de>
Mon, 3 Nov 2008 07:20:24 +0000 (08:20 +0100)
committerTobias Burnus <burnus@gcc.gnu.org>
Mon, 3 Nov 2008 07:20:24 +0000 (08:20 +0100)
commit0ee1b105a36031f53b989f42f7bb38fc8f2c17be
tree98fad3e4de24661c6a6e73acd3e7e4f5eb096157
parent67cec813c625940ddf829c57f4bfd1c14fd7e563
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
gcc/fortran/ChangeLog
gcc/fortran/arith.c
gcc/fortran/cpp.c
gcc/fortran/gfortran.h
gcc/fortran/lang-specs.h
gcc/fortran/options.c
gcc/fortran/scanner.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/include_4.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/include_4.inc [new file with mode: 0644]
gcc/testsuite/gfortran.dg/include_5.f90 [new file with mode: 0644]