diff options
Diffstat (limited to 'gcc/fortran/scanner.c')
-rw-r--r-- | gcc/fortran/scanner.c | 5 |
1 files changed, 5 insertions, 0 deletions
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) |