On Thu, Mar 24, 2011 at 06:08:01PM +0100, Jason Merrill wrote: > This ought to cut down on the number of cases we have to handle in > all the different places in dwarf2out that deal with this stuff. > > Does that make sense to you?
I'll try to implement it tomorrow, currently don't see why your idea wouldn't work. I haven't actually been able to write a testcase that switches from cold to hot btw., not sure if that is because I just didn't try very hard or because gcc never emits it. -freorder-blocks-and-partition is certainly terribly undertested (though I wonder if anybody actually uses it, e.g. given that EH for it has been broken for years). Jakub