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

--- Comment #4 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The trunk branch has been updated by Arthur Cohen <cohenart...@gcc.gnu.org>:

https://gcc.gnu.org/g:7e38e0ca35d2c6d5850a6f1c1e2e7875106fe405

commit r16-2808-g7e38e0ca35d2c6d5850a6f1c1e2e7875106fe405
Author: Marc Poulhiès <d...@kataplop.net>
Date:   Fri May 9 11:09:58 2025 +0200

    gccrs: Adapt attribute lang hook and do some cleanup

    Since r14-6076, the LANG_HOOKS_COMMON_ATTRIBUTE_TABLE should not be used
and
    LANG_HOOKS_ATTRIBUTE_TABLE replaces it.

    Add the "cold" attribute to fix PR120018 (and the matching "hot"
attribute).

    Replace some gcc_assert() by explicit warnings (same as D frontend).

    Add some clang-format off/on comment around code that's not correctly
    formatted.

    gcc/rust/ChangeLog:
            PR rust/120018

            * rust-attribs.cc (handle_noreturn_attribute): Reindent
declaration.
            (handle_leaf_attribute): Likewise.
            (handle_const_attribute): Likewise.
            (handle_malloc_attribute): Likewise.
            (handle_pure_attribute): Likewise.
            (handle_novops_attribute): Likewise.
            (handle_nonnull_attribute): Likewise.
            (handle_nothrow_attribute): Likewise.
            (handle_type_generic_attribute): Likewise.
            (handle_transaction_pure_attribute): Likewise.
            (handle_returns_twice_attribute): Likewise.
            (handle_fnspec_attribute): Likewise.
            (handle_omp_declare_simd_attribute): Likewise.
            (handle_cold_attribute): New.
            (handle_hot_attribute): New.
            (attribute_spec::exclusions attr_cold_hot_exclusions): New.
            (grs_langhook_common_attributes): Make it static.
            (grs_langhook_common_attribute_table): New.
            (grs_langhook_gnu_attributes): New.
            (grs_langhook_gnu_attribute_table): New.
            (handle_malloc_attribute): Make it static.
            (handle_fnspec_attribute): Likewise.
            (handle_pure_attribute): Replace gcc_assert by explicit warning.
            (handle_novops_attribute): Likewise.
            (handle_nothrow_attribute): Likewise.
            (handle_returns_twice_attribute): Likewise.
            (handle_omp_declare_simd_attribute): Likewise and make it static.
            * rust-lang.cc (grs_langhook_gnu_attribute_table): New.
            (grs_langhook_common_attribute_table): Adjust type to new hook.
            (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE): Remove.
            (LANG_HOOKS_ATTRIBUTE_TABLE): New.

    Signed-off-by: Marc Poulhiès <d...@kataplop.net>

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to