On 7/8/25 10:26 AM, Jan Dubiec wrote:
The patch changes order of inclusions, i.e. elfos.h is included before target specific h8300/h8300.h, in a way similar to a few other targets. Thanks to this change it is possible to override macros from elfos.h in h8300/h8300.h, in particular .init/.fini section definitions. PR target/109286 gcc/ChangeLog: * config.gcc: Include elfos.h before h8300/h8300.h. * config/h8300/h8300.h (INIT_SECTION_ASM_OP): Override default version from elfos.h. (FINI_SECTION_ASM_OP): Ditto. (ASM_DECLARE_FUNCTION_NAME): Ditto. (ASM_GENERATE_INTERNAL_LABEL): Macro removed because it was being overridden in elfos.h anyway. (ASM_OUTPUT_SKIP): Ditto.
Thanks. I've pushed this to the trunk. jeff