Possible bug with __attribute__((alias)) in gcc-3.3

Nicholas Wourms nwourms@netscape.net
Wed Dec 3 21:50:00 GMT 2003


Nicholas Wourms wrote:

[SNIP]

> #define strong_alias(name, aliasname) \
>  extern __typeof__(name) aliasname __attribute__((__alias__(#name))); \
>  __asm__(".def \"_" #aliasname "\"; .scl 2; .type 32; .endef\n");
                  ^^              ^^
Sorry,

Ack, I pasted an older version of the macro, which was over quoted. 
This should be the one that works:

#define strong_alias(name, aliasname) \
  extern __typeof__(name) aliasname __attribute__((__alias__(#name))); \
  __asm__(".def _" #aliasname "; .scl 2; .type 32; .endef\n");

Cheers,
Nicholas



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list