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

--- Comment #4 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:49217e18b3a14b26745d35ca7ed75e377a5320ed

commit r16-5361-g49217e18b3a14b26745d35ca7ed75e377a5320ed
Author: Andrew Pinski <[email protected]>
Date:   Sun Nov 16 17:33:00 2025 -0800

    fnspec: constify methods [PR97894]

    Since these methods don't write to the this, let's mark them as const
methods
    saying this is not written to.
    This warning is from cppcheck and added the other methods as I noticed too.

    Bootstrapped and tested on x86_64-linux-gnu.

            PR middle-end/97894
    gcc/ChangeLog:

            * attr-fnspec.h (attr_fnspec): arg_idx, known_p, arg_specified_p,
            arg_direct_p,  arg_used_p, arg_readonly_p,
            arg_maybe_read_p, arg_maybe_written_p,
            arg_max_access_size_given_by_arg_p,
            arg_access_size_given_by_type_p,
            arg_copied_to_arg_p, arg_noescape_p, returns_arg,
            returns_noalias_p, global_memory_read_p,
            global_memory_written_p, errno_maybe_written_p, arg_eaf_flags,
            and get_str as const methods.

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

Reply via email to