This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: target/6569: sparc-sun-solaris2.7 C testsuite regression in compile/20011119-2.c


On Tue, May 07, 2002 at 10:32:54AM -0700, Mark Mitchell wrote:
> But the failing test case:
> 
>   extern inline int foo (void) { return 23; }
>   int bar (void) { return foo (); }
>   extern int foo (void) __attribute__ ((weak, alias ("xxx")));
> 
> does have that form.  I take it this is supposed to be legal because
> the definition is "extern inline"?

Apparently.  The alias is the definition that makes it
to the object file.

It definitely skirts the boundaries of good taste.  :-/


r~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]