https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115618
Bug ID: 115618 Summary: GCC 13.3 should defined __ARM_FEATURE_CRYPTO with +aes+sha2 Product: gcc Version: 13.3.1 Status: UNCONFIRMED Keywords: rejects-valid Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: ktkachov at gcc dot gnu.org CC: tnfchris at gcc dot gnu.org Target Milestone: --- Target: aarch64 I think this has been fixed in GCC 14 onwards but we're seeing __ARM_FEATURE_CRYPTO missing from some -mcpu=native cases that should be including it (the prerequisite "aes pmull sha1 sha2" info exists in cpuinfo) with GCC 13-based compilers. I think this can be reproduced with: #ifndef __ARM_FEATURE_CRYPTO #error "__ARM_FEATURE_CRYPTO should be defined!" #endif void foo (void) { } compiled with GCC 13.3 with -march=armv9-a+aes+sha2 gives an error but it works with GCC 14.1. I remember there was much rework in this area, could something be backported to the branch?