[Bug middle-end/120030] [13/14/15/16 Regression] ICE in set_init_priority when applying multiple __attribute__((constructor)) declarations in C

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Mar 12 08:28:46 GMT 2026


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

--- Comment #9 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The trunk branch has been updated by Andrew Pinski <pinskia@gcc.gnu.org>:

https://gcc.gnu.org/g:7345e4151a3dad865e00168e67686ae1f9c04127

commit r16-8031-g7345e4151a3dad865e00168e67686ae1f9c04127
Author: Andrew Pinski <andrew.pinski@oss.qualcomm.com>
Date:   Wed Mar 11 14:35:06 2026 -0700

    doc/extend: Document constructor/destructor attribute applying

    Again while looking into PR 120030, there was no documentation
    of what it means to have multiple constructor/destructor attributes
    on the same function. Basically the last priority wins.

    gcc/ChangeLog:

            * doc/extend.texi (constructor/destructor): Add documentation
            about multiple attributes here.


More information about the Gcc-bugs mailing list