From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24454 invoked by alias); 11 Sep 2002 21:36:01 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 24440 invoked by uid 71); 11 Sep 2002 21:36:00 -0000 Date: Wed, 11 Sep 2002 14:36:00 -0000 Message-ID: <20020911213600.24439.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Klaus Pedersen Subject: Re: c++/6531: attribute error Reply-To: Klaus Pedersen X-SW-Source: 2002-09/txt/msg00200.txt.bz2 List-Id: The following reply was made to PR c++/6531; it has been noted by GNATS. From: Klaus Pedersen To: gcc-gnats@gcc.gnu.org, gcc-bugs@gcc.gnu.org Cc: Subject: Re: c++/6531: attribute error Date: Thu, 12 Sep 2002 01:08:42 +0200 The problem with attribute((alias())), is still present in gcc-3.2, but it isn't limited to h8300 or c++. It can be reproduced on arm-elf targets and with plain c. Without a fix good stuff like eCos can't compile, and code like /* HEADER FILE */ extern int getcx(int); /* IMPLEMENTATION */ int __getcx(int) {return 1;} int getcx(int) __attribute__((weak)) __attribute__((alias("__getcx"))); Will produces this error : `int getcx(int)' defined both normally and as an alias Are there any plans to fix the problem? and what is the problem with the patch in: http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=6531 BR, Klaus