This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Group static constructors and destructors in specific subsections
- From: Jan Hubicka <hubicka at ucw dot cz>
- To: "Joseph S. Myers" <joseph at codesourcery dot com>
- Cc: Jan Hubicka <hubicka at ucw dot cz>, gcc-patches at gcc dot gnu dot org, rguenther at suse dot de, iant at google dot com, iains at gcc dot gnu dot org, tglek at mozilla dot com
- Date: Thu, 14 Oct 2010 23:10:05 +0200
- Subject: Re: Group static constructors and destructors in specific subsections
- References: <20101014203817.GB15487@kam.mff.cuni.cz> <Pine.LNX.4.64.1010142044200.2442@digraph.polyomino.org.uk>
> 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).
I've just copied what existing HOT/UNLIKELY_EXECUTED macros does. I can switch them to hooks
all at once i guess.
Honza
>
> --
> Joseph S. Myers
> joseph@codesourcery.com