]> gcc.gnu.org Git - gcc.git/commitdiff
(do_include): In VMS, worry only about EACCES when open fails.
authorRichard Kenner <kenner@gcc.gnu.org>
Thu, 28 Dec 1995 12:06:51 +0000 (07:06 -0500)
committerRichard Kenner <kenner@gcc.gnu.org>
Thu, 28 Dec 1995 12:06:51 +0000 (07:06 -0500)
(new_include_prefix): Don't try to stat dir prefixes in VMS.

From-SVN: r10890

gcc/cccp.c

index 8338f6d25c53d4c3b26fde1484c9469ece4b7506..83a7483274a0a52b045b04c0ad46fca56840357e 100644 (file)
@@ -4468,8 +4468,15 @@ get_filename:
        }
        break;
       }
+#ifdef VMS
+      /* Our VMS hacks can produce invalid filespecs, so don't worry
+        about errors other than EACCES.  */
+      if (errno == EACCES)
+       break;
+#else
       if (errno != ENOENT)
        break;
+#endif
     }
   }
 
@@ -9790,6 +9797,9 @@ new_include_prefix (prev_file_name, prefix, name)
       return 0;
     }
 
+#ifndef VMS
+    /* VMS can't stat dir prefixes, so skip these optimizations in VMS.  */
+
     /* Ignore a nonexistent directory.  */
     if (stat (len ? dir->fname : ".", &dir->st) != 0) {
       if (errno != ENOENT)
@@ -9808,6 +9818,7 @@ new_include_prefix (prev_file_name, prefix, name)
       free (dir);
       return 0;
     }
+#endif /* ! VMS */
 
     dir->next = 0;
     dir->c_system_include_path = 0;
This page took 0.075302 seconds and 5 git commands to generate.