mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* error: attribute '__cold__': unknown attribute
@ 2009-03-28  8:25 Dragoslav Zaric
  0 siblings, 0 replies; only message in thread
From: Dragoslav Zaric @ 2009-03-28  8:25 UTC (permalink / raw)
  To: LKML

When I compile latest kernel sources [2.6.29] I get on almost every
line message :

error: attribute '__cold__': unknown attribute

I looked on the internet about __cold__ and I found this:

-----------------------------------------------------------------------------------------------------------------------
"gcc 4.3 supports a new __attribute__((__cold__)) to mark functions cold. Any
path directly leading to a call of this function will be unlikely. And gcc
will try to generate smaller code for the function itself.

Please use with care. The code generation advantage isn't large and in most
cases it is not worth uglifying code with this.
"
-----------------------------------------------------------------------------------------------------------------------

Will see at home which version of gcc I have, maybe if I have less
than gcc 4.3 and get gcc 4.3 it will be solved.

But anyway, what is "mark functions cold", what is this functionality ?

thanks,

Dragoslav Zaric,
[Professional programmer, M.Sc Astrophysics]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-03-28  8:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-28  8:25 error: attribute '__cold__': unknown attribute Dragoslav Zaric

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome