Next: Structure-Packing Pragmas, Previous: Solaris Pragmas, Up: Pragmas [Contents][Index]
For compatibility with the Solaris system headers, GCC
supports two #pragma
directives that change the name used in
assembly for a given declaration. To get this effect
on all platforms supported by GCC, use the asm labels extension (see Asm Labels).
redefine_extname oldname newname
This pragma gives the C function oldname the assembly symbol
newname. The preprocessor macro __PRAGMA_REDEFINE_EXTNAME
is defined if this pragma is available (currently on all platforms).
This pragma and the asm labels extension interact in a complicated manner. Here are some corner cases you may want to be aware of.
#pragma redefine_extname
is
always the C-language name.