aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1995-12-28 07:06:51 -0500
committerRichard Kenner <kenner@gcc.gnu.org>1995-12-28 07:06:51 -0500
commit9fb1a98e76591ea389ebb0d5529ca0eb4802d889 (patch)
treec1746089c7699563e067f013f8181d71b956187f
parent9bb89050a95d45282e3c976e18cfc1188faa1110 (diff)
downloadgcc-9fb1a98e76591ea389ebb0d5529ca0eb4802d889.zip
gcc-9fb1a98e76591ea389ebb0d5529ca0eb4802d889.tar.gz
gcc-9fb1a98e76591ea389ebb0d5529ca0eb4802d889.tar.bz2
(do_include): In VMS, worry only about EACCES when open fails.
(new_include_prefix): Don't try to stat dir prefixes in VMS. From-SVN: r10890
-rw-r--r--gcc/cccp.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/cccp.c b/gcc/cccp.c
index 8338f6d..83a7483 100644
--- a/gcc/cccp.c
+++ b/gcc/cccp.c
@@ -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;