diff options
-rw-r--r-- | gcc/fortran/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/fortran/scanner.c | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog index e8a3de5efe3..9ecef064d44 100644 --- a/gcc/fortran/ChangeLog +++ b/gcc/fortran/ChangeLog @@ -1,3 +1,8 @@ +2007-01-02 Tobias Burnus <burnus@net-b.de> + + PR fortran/30276 + * scanner.c (open_included_file): Support full-path filenames. + 2007-01-02 Paul Thomas <pault@gcc.gnu.org> PR fortran/20896 diff --git a/gcc/fortran/scanner.c b/gcc/fortran/scanner.c index 30d9b6f3b2c..5d519a0ba9b 100644 --- a/gcc/fortran/scanner.c +++ b/gcc/fortran/scanner.c @@ -199,6 +199,11 @@ open_included_file (const char *name, gfc_directorylist *list, bool module) gfc_directorylist *p; FILE *f; + f = gfc_open_file (name); + + if (f != NULL) + return f; + for (p = list; p; p = p->next) { if (module && !p->use_for_modules) |