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

--- Comment #4 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-13 branch has been updated by Kyrylo Tkachov
<ktkac...@gcc.gnu.org>:

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

commit r13-8873-gc93a9bba743ac236f6045ba7aafbc12a83726c48
Author: Andrew Carlotti <andrew.carlo...@arm.com>
Date:   Fri Nov 24 17:06:07 2023 +0000

    aarch64: Fix +nocrypto handling

    Additionally, replace all checks for the AARCH64_FL_CRYPTO bit with
    checks for (AARCH64_FL_AES | AARCH64_FL_SHA2) instead.  The value of the
    AARCH64_FL_CRYPTO bit within isa_flags is now ignored, but it is
    retained because removing it would make processing the data in
    option-extensions.def significantly more complex.

    This bug should have been picked up by an existing test, but a missing
    newline meant that the pattern incorrectly allowed "+crypto+nocrypto".

    gcc/ChangeLog:

            PR target/115618
            * common/config/aarch64/aarch64-common.cc
            (aarch64_get_extension_string_for_isa_flags): Fix generation of
            the "+nocrypto" extension.
            * config/aarch64/aarch64.h (AARCH64_ISA_CRYPTO): Remove.
            (TARGET_CRYPTO): Remove.
            * config/aarch64/aarch64-c.cc (aarch64_update_cpp_builtins):
            Don't use TARGET_CRYPTO.

    gcc/testsuite/ChangeLog:

            PR target/115618
            * gcc.target/aarch64/options_set_4.c: Add terminating newline.
            * gcc.target/aarch64/options_set_27.c: New test.

    (cherry picked from commit 8d30107455f2309854ced3d65fb07dc1f2c357c0)

Reply via email to