This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Undefined static functions
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~