* gcc.c (process_command): Use F_OK, not R_OK.
authorRichard Kenner <kenner@vlsi1.ultra.nyu.edu>
Fri, 24 Nov 2000 23:57:31 +0000 (23:57 +0000)
committerRichard Kenner <kenner@gcc.gnu.org>
Fri, 24 Nov 2000 23:57:31 +0000 (18:57 -0500)
From-SVN: r37724

gcc/ChangeLog
gcc/gcc.c

index 2e1facf7fc81489980edc7dee13e6ee777ae9af2..a7ae8edf516051409857271f03de3dff8cd6b2bd 100644 (file)
@@ -1,3 +1,7 @@
+Fri Nov 24 18:50:58 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
+
+       * gcc.c (process_command): Use F_OK, not R_OK.
+
 2000-11-24  Arno J. Klaassen  <arno@heho.snv.jussieu.fr>
 
        * flow.c (print_rtl_and_abort): Remove ANSIism.
index 074cd6a633bc0ed57f4ee8813dbc0460f688b048..3ad74e4f0e128d22e81fde5d0c6125a0d1b0cec6 100644 (file)
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -3719,7 +3719,7 @@ process_command (argc, argv)
          argv[i] = convert_filename (argv[i], 0);
 #endif
 
-         if (strcmp (argv[i], "-") != 0 && access (argv[i], R_OK) < 0)
+         if (strcmp (argv[i], "-") != 0 && access (argv[i], F_OK) < 0)
            {
              perror_with_name (argv[i]);
              error_count++;