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

--- Comment #11 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The trunk branch has been updated by Andrew Pinski <[email protected]>:

https://gcc.gnu.org/g:1d54992fcf4156a46c5695145a1ce32962ee4874

commit r16-6662-g1d54992fcf4156a46c5695145a1ce32962ee4874
Author: Andrew Pinski <[email protected]>
Date:   Wed Jan 7 20:28:12 2026 -0800

    aarch64: Fix PCH for sve builtins [PR123457]

    The problem here is function_table was not in the GGC memory space and not
    streamed out. So even though the builtins were reloaded, function_table was
    a nullptr as it was not reloaded.

    Also noticed initial_indexes should be marked with GTY so it is reloaded
correctly
    from PCH.

    Built and tested for aarch64-linux-gnu.

            PR target/123457
    gcc/ChangeLog:

            * config/aarch64/aarch64-sve-builtins.cc (struct
registered_function_hasher):
            Change base class to ggc_ptr_hash.
            (initial_indexes): Mark with GTY.
            (function_table): Likewise.
            (handle_arm_sve_h): Allocate function_table from ggc instead of
heap.

    Signed-off-by: Andrew Pinski <[email protected]>

Reply via email to