On 08/05/2013 09:57 AM, Jason Baron wrote:On 08/05/2013 03:40 PM, Marek Polacek wrote:It is expected. One must use -freorder-blocks-and-partition, and use realOn Mon, Aug 05, 2013 at 11:34:55AM -0700, Linus Torvalds wrote:It certainly would be.On Mon, Aug 5, 2013 at 11:24 AM, Linus TorvaldsFWIW, we also support hot/cold attributes for labels, thus e.g.
<torvalds@xxxxxxxxxxxxxxxxxxxx> wrote:
Ugh. I can see the attraction of your section thing for that case, IHmm.. Quite frankly, Steven, for your use case I think you actually
just get the feeling that we should be able to do better somehow.
want the C goto *labels* associated with a section. Which sounds like
it might be a cleaner syntax than making it about the basic block
anyway.
if (bar ())
goto A;
/* ... */
A: __attribute__((cold))
/* ... */
I don't know whether that might be useful for what you want or not though...
Marek
That was how I wanted to the 'static_key' stuff to work, but unfortunately the
last time I tried it, it didn't move the text out-of-line any further than it
was already doing. Would that be expected? The change for us, if it worked
would be quite simple. Something like:
profile feedback to get blocks moved completely out-of-line.
Whether that's a sensible default or not is debatable.