This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin 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: Possible bug with __attribute__((alias)) in gcc-3.3


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/


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