re PR fortran/30276 (gfortran include problem)
authorTobias Burnus <burnus@net-b.de>
Tue, 2 Jan 2007 15:54:20 +0000 (16:54 +0100)
committerTobias Burnus <burnus@gcc.gnu.org>
Tue, 2 Jan 2007 15:54:20 +0000 (16:54 +0100)
2007-01-02  Tobias Burnus  <burnus@net-b.de>

PR fortran/30276
* scanner.c (open_included_file): Support full-path filenames.

From-SVN: r120344

gcc/fortran/ChangeLog
gcc/fortran/scanner.c

index e8a3de5efe3b06abcf4d39bc1e25bab819628155..9ecef064d44fc25c8eda46c33105965e55ad7269 100644 (file)
@@ -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
index 30d9b6f3b2c83babcfb9b2f3c4a4b1667ac50df2..5d519a0ba9b3a894f7de0b93fccfb0a0f7d29faa 100644 (file)
@@ -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)