https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123457
Bug ID: 123457
Summary: ICE when using arm_acle.h, arm_sve.h and other such
headers with pch
Product: gcc
Version: 14.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: rdfm at gcc dot gnu.org
Target Milestone: ---
We recently got a report where pytorch would fail to build on ubuntu noble with
gcc 14.
This led us to discover that including any one of arm_acle.h, arm_neon.h,
arm_neon_sve_bridge.h, arm_sve.h and arm_sme.h in a precompiled header can
trigger an ICE when the header is then loaded in a build with optimisations
enabled.
The attached sample files and script show that the pch cleanup of the
intermediate file no longer includes the #pragmas that enable many intrinsics.
This in turn means that some internal state is not properly initialized,
causing a segfault.