[PATCH driver/36312] should refuse to overwrite input file with output file
Joseph Myers
joseph@codesourcery.com
Mon Nov 10 18:53:00 GMT 2014
On Sat, 8 Nov 2014, Manuel López-Ibáñez wrote:
> This patch is a minor variant of the one approved here:
>
> https://gcc.gnu.org/ml/gcc-patches/2014-11/msg00246.html
>
> fixing the problem with linker parameters (which are stored in infiles).
>
> https://gcc.gnu.org/ml/gcc-patches/2014-11/msg00391.html
>
> The only part that has changed, and thus requires approval, is in
> gcc/gcc.c, in particular the condition:
>
> + if ((!infiles[i].language || infiles[i].language[0] != '*')
> + && canonical_filename_eq (infiles[i].name, output_file))
>
> is new.
That part is OK.
--
Joseph S. Myers
joseph@codesourcery.com
More information about the Gcc-patches
mailing list