On 9/4/26 12:21 PM, Joel Sherrill wrote:
RTEMS needs this defined to select the proper procedure for
executing the global constructors.
Seems quite sensible, particularly given:
jefflaw@jeffs-laptop:~/test/gcc/gcc/config$ find . -name \*rtems\* |
xargs grep INIT_FINI
./m68k/rtemself.h: builtin_define ("__USE_INIT_FINI__"); \
./i386/rtemself.h: builtin_define ("__USE_INIT_FINI__"); \
./or1k/rtems.h: builtin_define ("__USE_INIT_FINI__"); \
./mips/rtems.h: builtin_define ("__USE_INIT_FINI__"); \
./lm32/rtems.h: builtin_define ("__USE_INIT_FINI__"); \
./arm/rtems.h: builtin_define ("__USE_INIT_FINI__"); \
./riscv/rtems.h: builtin_define ("__USE_INIT_FINI__"); \
./rs6000/rtems.h: builtin_define ("__USE_INIT_FINI__"); \
./sparc/rtemself.h: builtin_define ("__USE_INIT_FINI__"); \
./epiphany/rtems.h: builtin_define ("__USE_INIT_FINI__"); \
./aarch64/rtems.h: builtin_define ("__USE_INIT_FINI__"); \
OK for the trunk.
jeff