Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 Subject: Re: Possible bug with __attribute__((alias)) in gcc-3.3 Date: Wed, 03 Dec 2003 16:49:20 -0500 Lines: 20 Message-ID: References: <20031124074553 DOT 6674 DOT qmail AT web21408 DOT mail DOT yahoo DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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: 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/