https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119549

--- Comment #4 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Richard Biener <rgue...@gcc.gnu.org>:

https://gcc.gnu.org/g:ae2912748b9913fe9cd198db1b3fa704d0cbc728

commit r15-9121-gae2912748b9913fe9cd198db1b3fa704d0cbc728
Author: Richard Biener <rguent...@suse.de>
Date:   Mon Mar 31 14:56:25 2025 +0200

    target/119549 - fixup handling of -mno-sse4 in target attribute

    The following fixes ix86_valid_target_attribute_inner_p to properly
    handle target("no-sse4") via OPT_mno_sse4 rather than as unset OPT_msse4.
    I've added asserts to ix86_handle_option that RejectNegative is honored
    for both.

            PR target/119549
            * common/config/i386/i386-common.cc (ix86_handle_option):
            Assert that both OPT_msse4 and OPT_mno_sse4 are never unset.
            * config/i386/i386-options.cc
(ix86_valid_target_attribute_inner_p):
            Process negated OPT_msse4 as OPT_mno_sse4.

            * gcc.target/i386/pr119549.c: New testcase.

Reply via email to