c/1982: gcc treating "extern __inline__ asmfn (...) {...}" in <asm/bitops.h> as undefined

Richard Henderson rth@redhat.com
Sun Apr 1 00:00:00 GMT 2001


The following reply was made to PR c/1982; it has been noted by GNATS.

From: Richard Henderson <rth@redhat.com>
To: prasad@watson.ibm.com
Cc: gcc-gnats@gcc.gnu.org
Subject: Re: c/1982: gcc treating "extern __inline__ asmfn (...) {...}" in <asm/bitops.h> as undefined
Date: Wed, 14 Feb 2001 13:17:33 -0800

 On Wed, Feb 14, 2001 at 05:31:12PM -0000, prasad@watson.ibm.com wrote:
 > foo.o(.text+0x11): undefined reference to `test_and_set_bit'
 
 This is absolutely correct behaviour when not optimizing.
 Read the documentation wrt "extern inline".  That annotation
 is a promise that the function already exists out of line.
 
 > This bug didn't exist on my Redhat 6.2 and aix4.3
 > (gcc 2.95), so this must be something new.
 
 Nope, it has always been this way.
 
 
 r~



More information about the Gcc-prs mailing list