aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcc.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/gcc.c')
-rw-r--r--gcc/gcc.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/gcc/gcc.c b/gcc/gcc.c
index d3e8c88..fd2b182 100644
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -4417,7 +4417,12 @@ process_command (unsigned int decoded_options_count,
fname = xstrdup (arg);
if (strcmp (fname, "-") != 0 && access (fname, F_OK) < 0)
- perror_with_name (fname);
+ {
+ if (fname[0] == '@' && access (fname + 1, F_OK) < 0)
+ perror_with_name (fname + 1);
+ else
+ perror_with_name (fname);
+ }
else
add_infile (arg, spec_lang);