Stop the assembler from overwriting its output file.
authorJohn Darrington <john@darrington.wattle.id.au>
Thu, 12 Apr 2018 14:07:02 +0000 (15:07 +0100)
committerNick Clifton <nickc@redhat.com>
Thu, 12 Apr 2018 14:08:59 +0000 (15:08 +0100)
commit67f846b59b32f3d704c601669409c2584383fea9
treef81ced14535cd14aa5ce69718ef1d174d7161431
parent73a05be215ce8ccd7a6623f9a24d86223dd7d2f3
Stop the assembler from overwriting its output file.

* as.c (main): Fail if the output is the same as one of the input
files.
* testsuite/gas/all/gas.exp: Test the new feature.
gas/ChangeLog
gas/as.c
gas/testsuite/gas/all/gas.exp