re PR other/31566 (@missing_file gives bad error message)
PR other/31566 * gcc.c (process_command): For @filename handling, output the correct name if the file does not exist. From-SVN: r240669
This commit is contained in:
parent
bc240abcf6
commit
b2861325a9
|
@ -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>
|
2016-09-30 Marek Polacek <polacek@redhat.com>
|
||||||
|
|
||||||
* config/aarch64/aarch64-simd.md: Adjust fall through comments.
|
* config/aarch64/aarch64-simd.md: Adjust fall through comments.
|
||||||
|
|
|
@ -4417,7 +4417,12 @@ process_command (unsigned int decoded_options_count,
|
||||||
fname = xstrdup (arg);
|
fname = xstrdup (arg);
|
||||||
|
|
||||||
if (strcmp (fname, "-") != 0 && access (fname, F_OK) < 0)
|
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
|
else
|
||||||
add_infile (arg, spec_lang);
|
add_infile (arg, spec_lang);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue