]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
x86: correct cpu_arch_isa_flags maintenance
authorJan Beulich <jbeulich@suse.com>
Wed, 27 Sep 2023 14:51:46 +0000 (16:51 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 27 Sep 2023 14:51:46 +0000 (16:51 +0200)
commitbd483d213a5d63472dc57706622f4a05494a4811
tree82f2ccb207bc0f26e581027b66d9811add3bf8a6
parentaeb889f580a270520d04d69a5fd72dd7fe11c61c
x86: correct cpu_arch_isa_flags maintenance

These may not be set from a value derived from cpu_arch_flags: That
starts with (almost) all functionality enabled, while cpu_arch_isa_flags
is supposed to track features that were explicitly enabled (and perhaps
later disabled) by the user.

To avoid needing to do any such adjustment in two places (each),
introduce helper functions used by both command line handling and
directive processing.
gas/config/tc-i386.c
gas/testsuite/gas/i386/i386.exp
gas/testsuite/gas/i386/nops-9.d [new file with mode: 0644]
gas/testsuite/gas/i386/nops-9.s [new file with mode: 0644]