This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

How do I assign an attribute to a function


I'm using C and I decided to read the whole gcc info manual on the subject.
How do I apply an __attribute__ to the function as apposed to what it
returns?
Yes, I've read the docs and am looking for examples.
I want to apply the cold __attribute__ to all the perror statements in my
program, the perror function is declared in the GNU C library so how do I
change it without effecting every other program that's compiled against the
GNU C library?



--
View this message in context: http://gcc.1065356.n5.nabble.com/How-do-I-assign-an-attribute-to-a-function-tp985730.html
Sent from the gcc - Help mailing list archive at Nabble.com.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]