diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2015-10-16 11:45:02 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2015-10-16 11:45:02 -0700 |
commit | b775d24d0d9c0f527177bc519164fa75ad2fabe1 (patch) | |
tree | a24f4d6f5e13c221296f5ffe50176db08dc3259e /libgcc/shared-object.mk | |
parent | c46e4fef3d41e367eff211b7793812a4f4e57adb (diff) | |
download | gcc-b775d24d0d9c0f527177bc519164fa75ad2fabe1.tar.gz |
Don't leak ISA to __attribute__ ((target("arch=XXX")))hjl/pr67995/master
When processing __attribute__ ((target("arch=XXX"))), we should clear
the ISA bits in x_ix86_isa_flags first to avoid leaking ISA from
command line.
gcc/
PR target/67995
* config/i386/i386.c (ix86_valid_target_attribute_tree): If
arch= is set, clear all bits in x_ix86_isa_flags, except for
ISA_64BIT, ABI_64, ABI_X32, and CODE16.
gcc/testsuite/
PR target/67995
* gcc.target/i386/pr67995-1.c: New test.
* gcc.target/i386/pr67995-2.c: Likewise.
* gcc.target/i386/pr67995-3.c: Likewise.
Diffstat (limited to 'libgcc/shared-object.mk')
0 files changed, 0 insertions, 0 deletions