https://gcc.gnu.org/bugzilla/show_bug.cgi?id=128039
--- Comment #3 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The trunk branch has been updated by Christophe Lyon <[email protected]>: https://gcc.gnu.org/g:a6b7ca00401bafb1e8ac050cc8a926d04f42a1a4 commit r17-6421-ga6b7ca00401bafb1e8ac050cc8a926d04f42a1a4 Author: Christophe Lyon <[email protected]> Date: Mon Nov 16 21:41:15 2026 +0000 arm: Fix PCH restoration of SIMD builtin types [PR128039] The ARM backend initializes its SIMD builtin types before loading a PCH. However, arm_simd_types and arm_fp16_type_node are not registered as GGC roots, so their tree pointers are not properly restored when loading a PCH. This can lead to inconsistent references to the same scalar type, causing an ICE in arm_mve_type_for_scalar_type when including arm_mve.h after loading a PCH. This patch adds the necessary GTY annotations to arm_simd_type_info, arm_simd_types and arm_fp16_type_node, and adds arm-builtins.h to target_gtfiles so that gengtype can process the structure definition. PR target/128039 gcc/ChangeLog: * config.gcc: Add arm-builtins.h to target_gtfiles. * config/arm/arm-builtins.cc (arm_simd_types, arm_fp16_type_node): Declare with GTY annotation. * config/arm/arm-builtins.h (struct arm_simd_type_info): Add GTY annotation. gcc/testsuite/ChangeLog: * gcc.target/arm/pch/arm-pch.exp: New test driver. * gcc.target/arm/pch/pr128039.c: New test. * gcc.target/arm/pch/pr128039.hs: New test.
