Group static constructors and destructors in specific subsections
Richard Henderson
rth@redhat.com
Thu Oct 14 22:39:00 GMT 2010
On 10/14/2010 02:48 PM, Jan Hubicka wrote:
> OK, so we will have target hooks that do return function pointers (instead of
> current function names) for function returning section object. We will defult
> them to return existing unlikely_text_section function pointer for
> UNLIKELY_EXECUTED. For HOT/STARTUP and TEXT we will have newly born functions
> hot_text_section, startup_text_section and exit_text_section?
Um, no. Do not return function pointers. Only return section objects.
> Also choose_function_section will need reorg to somehow not operate on section
> names but section structures. What should be interface there?
Probably to delete that function entirely and instead test frequency in
in function_section. I don't see why you need to set DECL_SECTION_NAME
there at all.
r~
More information about the Gcc-patches
mailing list