[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:33 GMT 2026
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120030
--- Comment #8 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:6b089704a5f37411002310fc450fe82934581176
commit r16-8030-g6b089704a5f37411002310fc450fe82934581176
Author: Andrew Pinski <andrew.pinski@oss.qualcomm.com>
Date: Wed Mar 11 14:29:20 2026 -0700
doc/extend: Document constructor/destructor priority when none is supplied
Noticed while working on PR 120030, the priority/order of
constructor/destructor
without an argument is not documented.
This adds that the default priority is 65535 (last in order).
gcc/ChangeLog:
* doc/extend.texi (constructor/destructor): Document
the priority when none is supplied.
More information about the Gcc-bugs
mailing list