| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
| X-Injected-Via-Gmane: | http://gmane.org/ |
| To: | cygwin AT cygwin DOT com |
| From: | Nicholas Wourms <nwourms AT netscape DOT net> |
| Subject: | Re: Possible bug with __attribute__((alias)) in gcc-3.3 |
| Date: | Wed, 03 Dec 2003 16:49:20 -0500 |
| Lines: | 20 |
| Message-ID: | <bqllp1$qqt$1@sea.gmane.org> |
| References: | <20031124074553 DOT 6674 DOT qmail AT web21408 DOT mail DOT yahoo DOT com> <bqli2p$idm$1 AT sea DOT gmane DOT org> |
| Mime-Version: | 1.0 |
| X-Complaints-To: | usenet AT sea DOT gmane DOT org |
| User-Agent: | Mozilla/5.0 (Windows; U; Win 9x 4.90; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax) |
| X-Accept-Language: | en-us, en |
| In-Reply-To: | <bqli2p$idm$1@sea.gmane.org> |
| X-Enigmail-Version: | 0.76.7.0 |
| X-Enigmail-Supports: | pgp-inline, pgp-mime |
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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |