Re: Group static constructors and destructors in specific subsections

2013-11-17 Thread Martin Liška
Dear Cary, I've been merging my patches to GCC mainline and I would really appreciate new section naming convention that was suggested by you in the previous post. Is there any progress in implementation? Should I participate in this change and write a patch that will introduce this new section

Re: Group static constructors and destructors in specific subsections

2013-07-20 Thread Martin Liška
On 17 July 2013 20:22, Cary Coutant wrote: >>> > Yep, the problem is where to produce the section ordering file. >>> > The scheme is as follows: >>> > - with -fprofile-generate instrument every function entry point and >>> > record >>> > time of first and last invocation of the functoin >>>

Re: Group static constructors and destructors in specific subsections

2013-07-17 Thread Cary Coutant
>> > Yep, the problem is where to produce the section ordering file. >> > The scheme is as follows: >> > - with -fprofile-generate instrument every function entry point and >> > record >> > time of first and last invocation of the functoin >> > - At compile time we take functions that are

Re: Group static constructors and destructors in specific subsections

2013-07-16 Thread Jan Hubicka
> On Mon, Jul 15, 2013 at 11:18 AM, Jan Hubicka wrote: > >> On Mon, Jul 15, 2013 at 11:05 AM, Jan Hubicka wrote: > >> > >> > The next thing is how to tell GNU LD/Gold the relative order of > >> > functions. > >> > I.e. my_function_section.order.125 or something like that? > >> > >> Gold has a --

Re: Group static constructors and destructors in specific subsections

2013-07-15 Thread Ian Lance Taylor
On Mon, Jul 15, 2013 at 11:18 AM, Jan Hubicka wrote: >> On Mon, Jul 15, 2013 at 11:05 AM, Jan Hubicka wrote: >> >> > The next thing is how to tell GNU LD/Gold the relative order of functions. >> > I.e. my_function_section.order.125 or something like that? >> >> Gold has a --section-ordering-file

Re: Group static constructors and destructors in specific subsections

2013-07-15 Thread Jan Hubicka
> On Mon, Jul 15, 2013 at 11:05 AM, Jan Hubicka wrote: > > > The next thing is how to tell GNU LD/Gold the relative order of functions. > > I.e. my_function_section.order.125 or something like that? > > Gold has a --section-ordering-file option that lets you specify the > order in which sections

Re: Group static constructors and destructors in specific subsections

2013-07-15 Thread Ian Lance Taylor
On Mon, Jul 15, 2013 at 11:05 AM, Jan Hubicka wrote: > The next thing is how to tell GNU LD/Gold the relative order of functions. > I.e. my_function_section.order.125 or something like that? Gold has a --section-ordering-file option that lets you specify the order in which sections should appear

Re: Group static constructors and destructors in specific subsections

2013-07-15 Thread Jan Hubicka
> >> I am not sure how to update gold - I basically copied existing code in > >> binutils > >> for .text.unlikely group in GNU LD linker script, but I think gold is doing > >> independent decisions somewhere. > > Ian committed this patch a few months ago, after a lengthy discussion > around a pat

Re: Group static constructors and destructors in specific subsections

2013-07-15 Thread Cary Coutant
>> I am not sure how to update gold - I basically copied existing code in >> binutils >> for .text.unlikely group in GNU LD linker script, but I think gold is doing >> independent decisions somewhere. Ian committed this patch a few months ago, after a lengthy discussion around a patch originally

Re: Group static constructors and destructors in specific subsections, take 2

2011-04-21 Thread Mike Stump
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 st