[Bug driver/36312] should refuse to overwrite input file with output file

manu at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Oct 6 21:46:00 GMT 2014


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=36312

Manuel López-Ibáñez <manu at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |manu at gcc dot gnu.org

--- Comment #7 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
Created attachment 33656
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33656&action=edit
Possible fix

The attached patch implements this for the driver and toplev.c. Probably the
final version needs to move canonical_filename_eq to libiberty. It builds but I
haven't tested it beyond a few quick tests. Perhaps it needs testcases.


More information about the Gcc-bugs mailing list