target/6569: sparc-sun-solaris2.7 C testsuite regression in compile/20011119-2.c
Richard Henderson
rth@redhat.com
Tue May 7 10:29:00 GMT 2002
On Tue, May 07, 2002 at 10:05:26AM -0700, Mark Mitchell wrote:
> Is code like this supposed to be valid?
>
> extern void * ffoo1c (void);
> void * foo1c (void)
> {
> return (void *)ffoo1c;
> }
> extern void * ffoo1c (void) __attribute__((weak));
>
> If so, why do we have a warning in declare_weak that says:
>
> "weak declaration must precede definition"
Where is the definition of ffoo1c? All I see is a declaration.
r~
More information about the Gcc-bugs
mailing list