This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: Possible bug with __attribute__((alias)) in gcc-3.3
- From: Nicholas Wourms <nwourms at netscape dot net>
- To: cygwin at cygwin dot com
- Date: Wed, 03 Dec 2003 16:49:20 -0500
- Subject: Re: Possible bug with __attribute__((alias)) in gcc-3.3
- References: <20031124074553.6674.qmail@web21408.mail.yahoo.com> <bqli2p$idm$1@sea.gmane.org>
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/