Undefined static functions

Richard Henderson rth@redhat.com
Tue Aug 31 06:02:00 GMT 2004


On Tue, Aug 31, 2004 at 12:11:20AM +0000, Joseph S. Myers wrote:
> (b) Is there any reason this shouldn't be a hard error rather than just a 
> pedwarn?

The function implementation is contained within a file-scope asm.  I need
to tell the compiler that the symbol is locally defined (static as opposed
to extern), so that the proper set of relocations are selected.

I have used this often in kernel and libc code.



r~



More information about the Gcc mailing list