From 9fb1a98e76591ea389ebb0d5529ca0eb4802d889 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Thu, 28 Dec 1995 07:06:51 -0500 Subject: (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 --- gcc/cccp.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'gcc') 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; -- cgit v1.1