aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/gcc.c7
2 files changed, 12 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index e17581a..22801a2 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2016-09-30 Prasad Ghangal <prasad.ghangal@gmail.com>
+
+ PR other/31566
+ * gcc.c (process_command): For @filename handling, output
+ the correct name if the file does not exist.
+
2016-09-30 Marek Polacek <polacek@redhat.com>
* config/aarch64/aarch64-simd.md: Adjust fall through comments.
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);