Group static constructors and destructors in specific subsections
Jan Hubicka
hubicka@ucw.cz
Thu Oct 14 21:18:00 GMT 2010
> On 10/14/2010 01:47 PM, Joseph S. Myers wrote:
> > On Thu, 14 Oct 2010, Jan Hubicka wrote:
> >
> >> * doc/tm.texi.in (STARTUP_EXECUTED_TEXT_SECTION_NAME,
> >> EXIT_EXECUTED_TEXT_SECTION_NAME): Document
> >
> > Unless you really need target macros, could you please create hooks
> > instead? There's at least one hook giving a section name already
> > (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION).
> >
> Should we be returning section NAMES at all?
>
> We have a nicely modular section object. It would seem
> we should make more use of that.
Hmm, you got me ;) I am not quite sure what do you suggest.
The hooks exists mostly so darwin can redefine them and hp-ux can disable them
to avoid linker bug. I guess HPUX could go with just disabling the function
reordering flag, what darwin should do?
Honza
>
>
> r~
More information about the Gcc-patches
mailing list