aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2024-12-02 09:38:47 +0100
committerJan Beulich <jbeulich@suse.com>2024-12-02 09:38:47 +0100
commita96a8b7367b2cd51ff32c69e516dfbe0204c8008 (patch)
tree811ddaf6dfaeff51c1db86f1bfa5699b1ca755f1 /gas/config
parent64aafe3e86cb5575173344bb66a242d15e2271ee (diff)
downloadgdb-a96a8b7367b2cd51ff32c69e516dfbe0204c8008.zip
gdb-a96a8b7367b2cd51ff32c69e516dfbe0204c8008.tar.gz
gdb-a96a8b7367b2cd51ff32c69e516dfbe0204c8008.tar.bz2
x86: always set ISA_1_BASELINE property for 64-bit objects
The baseline was, afaik, specifically chosen to align with the baseline ISA of x86-64. It therefore makes no sense to emit that property only conditionally; if anything it confuses tools analyzing the difference between generated object files, which may result from just added / changed / removed (entirely ISA-independent) code, without any change to the enabled extensions. Compilers, after all, are free to use these baseline "extensions" when generating 64-bit code. While changing the one testcase that needs adjustment, also correct its misleading name (to be in sync with the filename).
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/tc-i386.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c
index 6720bc8..922c958 100644
--- a/gas/config/tc-i386.c
+++ b/gas/config/tc-i386.c
@@ -12195,7 +12195,8 @@ output_insn (const struct last_insn *last_insn)
if (is_cpu (&i.tm, CpuXSAVEC))
x86_feature_2_used |= GNU_PROPERTY_X86_FEATURE_2_XSAVEC;
- if (x86_feature_2_used
+ if (object_64bit
+ || x86_feature_2_used
|| is_cpu (&i.tm, CpuCMOV)
|| is_cpu (&i.tm, CpuSYSCALL)
|| i.tm.mnem_off == MN_cmpxchg8b)