From: Dragoslav Zaric <dragoslav.zaric.kd@gmail.com>
To: LKML <linux-kernel@vger.kernel.org>
Subject: error: attribute '__cold__': unknown attribute
Date: Sat, 28 Mar 2009 09:25:57 +0100 [thread overview]
Message-ID: <2d05c4580903280125we93e60cod7ce8a53a7573788@mail.gmail.com> (raw)
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]
reply other threads:[~2009-03-28 8:26 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2d05c4580903280125we93e60cod7ce8a53a7573788@mail.gmail.com \
--to=dragoslav.zaric.kd@gmail.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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