target/6569: sparc-sun-solaris2.7 C testsuite regression in compile/20011119-2.c
Mark Mitchell
mark@codesourcery.com
Tue May 7 10:32:00 GMT 2002
--On Tuesday, May 07, 2002 10:29:10 AM -0700 Richard Henderson
<rth@redhat.com> wrote:
> 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.
I can't read. Never mind.
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com
More information about the Gcc-bugs
mailing list