summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorburnus <burnus@138bc75d-0d04-0410-961f-82ee72b054a4>2007-01-02 15:54:20 +0000
committerburnus <burnus@138bc75d-0d04-0410-961f-82ee72b054a4>2007-01-02 15:54:20 +0000
commit91a28da7d889824efc017e2453a044b683994ba2 (patch)
tree8abacdafb9cdbff2dadbf4323b0089f06c63681e
parent357961210189a95b8f548165d04fd71203667c63 (diff)
downloadgcc-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
-rw-r--r--gcc/fortran/ChangeLog5
-rw-r--r--gcc/fortran/scanner.c5
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)