[PATCH 0/2] Fix attributes for fortify functions

Marek Polacek polacek@redhat.com
Sun Apr 22 18:13:00 GMT 2012


As discussed here:
http://sourceware.org/ml/libc-alpha/2012-04/msg00581.html
__extern_always_inline shouldn't contain __attribute__ ((artificial)),
so we throw it out of this macro and define a new macro for this,
__attribute_artificial__.  Furthermore, we define a new macro
specially for fortification functions, __fortify_function, which tells
that a function should be both always_inlined and artificial.

The first patch does just this, the second one makes use of
__fortify_function macro where appropriate.

Regtested on x86_64-linux, ok for trunk?

	Marek



More information about the Libc-alpha mailing list