]> git.ipfire.org Git - thirdparty/gcc.git/commit
c: Fix i386 target attribute regression [PR 122180]
authorAlfie Richards <alfie.richards@arm.com>
Tue, 7 Oct 2025 09:34:48 +0000 (09:34 +0000)
committerAlfie Richards <alfie.richards@arm.com>
Wed, 8 Oct 2025 08:22:26 +0000 (08:22 +0000)
commitd78bd76a49fb900db937d1bbabee7c5cb41ff4ba
treeb83491a4f9788cd899e2298db87977f6f1635797
parentbb22f7d4d63446c9095db32ca013a9b2182df7d9
c: Fix i386 target attribute regression [PR 122180]

My patch (r16-4182-g73888cefe6da65) broke another target (i386), which this
patch fixes.

The issue was the target_version code was incorrectly being triggered on
targets that do not support target_version semantics (i386).

PR target/122180

gcc/c/ChangeLog:

* c-decl.cc (pushdecl): Add TARGET_HAS_FMV_TARGET_ATTRIBUTE check.

gcc/testsuite/ChangeLog:

* gcc.target/i386/pr122180.c: New test.
gcc/c/c-decl.cc
gcc/testsuite/gcc.target/i386/pr122180.c [new file with mode: 0644]