* gcc.c (process_command): Use F_OK, not R_OK.

From-SVN: r37724
This commit is contained in:
Richard Kenner 2000-11-24 23:57:31 +00:00 committed by Richard Kenner
parent 35a63b9486
commit 7257bbc671
2 changed files with 5 additions and 1 deletions

View 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.

View File

@ -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++;