http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49138
--- Comment #3 from joseph at codesourcery dot com <joseph at codesourcery dot com> 2011-05-24 16:19:25 UTC --- On Tue, 24 May 2011, burnus at gcc dot gnu.org wrote: > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49138 > > --- Comment #2 from Tobias Burnus <burnus at gcc dot gnu.org> 2011-05-24 > 14:54:03 UTC --- > (In reply to comment #1) > > The Fortran directories should be searched within the sysroot when there > > is one (the same conditions under which such C directories are searched > > within the sysroot). > > OK, one then has the "fortran" subdirectory of: sysroot, LOCAL_INCLUDE_DIR, > SYSTEM_INCLUDE_DIR and STANDARD_INCLUDE_DIR - in that order. Is the list > complete and correctly ordered? I advise following cppdefault.c (specifically, the add_sysroot flags therein) - and probably adding a "fortran" field to indicate if a Fortran subdirectory is searched, rather than duplicating the list.