x86: don't accept base architectures as extensions
authorJan Beulich <jbeulich@suse.com>
Thu, 17 Mar 2022 10:05:56 +0000 (11:05 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 17 Mar 2022 10:05:56 +0000 (11:05 +0100)
commited971d9fa65b91a91101d23a968e6244b93d008d
treeb8d109b1a6e6f0c64b5fc957531af9e617ee8070
parent13ed231a0fad6e5988673dc8fde3996ad0136735
x86: don't accept base architectures as extensions

The -march= intentions are quite clear: A base architecture may be
followed by any number of extensions. Accepting a base architecture in
place of an extension will at best result in confusion, as the first of
the two (or more) items specified simply would not take effect, due to
being overridden by the later one(s).
gas/config/tc-i386.c
gas/testsuite/gas/i386/arch-10-5.l [new file with mode: 0644]
gas/testsuite/gas/i386/arch-10-5.s [new file with mode: 0644]
gas/testsuite/gas/i386/i386.exp