Group static constructors and destructors in specific subsections, take 2

Mike Stump mikestump@comcast.net
Thu Apr 21 23:28:00 GMT 2011


On Nov 20, 2010, at 5:12 PM, Jan Hubicka wrote:
> this is updated patch.  I addressed, I hope, all the comments except for
> removing USE_SELECT_SECTION_FOR_FUNCTIONS. I am somewhat confused by darwin and
> thus would like to handle it incrementally.
> 
> I've removed the subsection hash, the string concatenations and section hash
> should be fast enough given that we switch twice per function at most.  I also
> added flag to tree_decl_with_vis specifying whether section name is implied by
> -ffunction-sections or given by user and made default_function_section to do
> text.unlikely.function_name by default.  I kept adding the _unlikely only for
> darwin.  It was developed there and I suppose the funny suffixes do have
> meaning for darwin linker.

So, I didn't see the patch that poisoned them in system.h.  That patch should have removed the documentation for HOT_TEXT_SECTION_NAME and UNLIKELY_EXECUTED_TEXT_SECTION_NAME?



More information about the Gcc-patches mailing list