This is the mail archive of the gcc-prs@gcc.gnu.org mailing list for the GCC 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: c++/6531: attribute error


The following reply was made to PR c++/6531; it has been noted by GNATS.

From: Klaus Pedersen <klaus.kruse.pedersen@mail.tele.dk>
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
 


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