diff options
author | burnus <burnus@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-01-02 15:54:20 +0000 |
---|---|---|
committer | burnus <burnus@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-01-02 15:54:20 +0000 |
commit | 91a28da7d889824efc017e2453a044b683994ba2 (patch) | |
tree | 8abacdafb9cdbff2dadbf4323b0089f06c63681e /gcc/fortran/scanner.c | |
parent | 357961210189a95b8f548165d04fd71203667c63 (diff) | |
download | gcc-91a28da7d889824efc017e2453a044b683994ba2.tar.gz |
2007-01-02 Tobias Burnus <burnus@net-b.de>
PR fortran/30276
* scanner.c (open_included_file): Support full-path filenames.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@120344 138bc75d-0d04-0410-961f-82ee72b054a4
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) |