diff options
author | Richard Kenner <kenner@gcc.gnu.org> | 1995-12-28 07:06:51 -0500 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 1995-12-28 07:06:51 -0500 |
commit | 9fb1a98e76591ea389ebb0d5529ca0eb4802d889 (patch) | |
tree | c1746089c7699563e067f013f8181d71b956187f | |
parent | 9bb89050a95d45282e3c976e18cfc1188faa1110 (diff) | |
download | gcc-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.c | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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; |