[patch, fortran] Fix PR 54033, problems with -I, with test cases

Thomas Koenig tkoenig@netcologne.de
Thu Aug 2 20:08:00 GMT 2012


Hi Tobias,

 > I am not sure whether it is the best solution, but one possibility would
> be to ignore -fintrinsic-modules-path for the warning. (That assumes
> that the warning is (almost) never needed for an installed compiler.)

I think this is the right approach.  The attached patch does this.
Regression-tested with the finclude directory from the installation.

OK for trunk?

	Thomas

2012-08-02  Thomas König  <tkoenig@gcc.gnu.org>

         PR fortran/54033
         * scanner.c (add_path_to_list):  New argument warn.  Don't
         warn if it is true.
         (gfc_add_include_path):  Warn if directory is missing.
         (gfc_add_intrinsic_modules_path):  Do not warn if directory
         is missing.
         * optinons.c (gfc_handle_option):  Do not add directory
         for intrinsic modules to normal include path.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: regfix.diff
Type: text/x-patch
Size: 1952 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20120802/e95e8e98/attachment.bin>


More information about the Fortran mailing list