public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/6531: attribute error
@ 2002-10-11 12:40 gdr
0 siblings, 0 replies; 3+ messages in thread
From: gdr @ 2002-10-11 12:40 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, nobody, qzb04471
Synopsis: attribute error
State-Changed-From-To: open->closed
State-Changed-By: gdr
State-Changed-When: Fri Oct 11 12:40:23 2002
State-Changed-Why:
Suggested patch is exactly what Jim checked in here:
http://gcc.gnu.org/ml/gcc-patches/2002-10/msg00656.html
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=6531
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: c++/6531: attribute error
@ 2002-09-11 14:36 Klaus Pedersen
0 siblings, 0 replies; 3+ messages in thread
From: Klaus Pedersen @ 2002-09-11 14:36 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* c++/6531: attribute error
@ 2002-05-01 6:36 qzb04471
0 siblings, 0 replies; 3+ messages in thread
From: qzb04471 @ 2002-05-01 6:36 UTC (permalink / raw)
To: gcc-gnats
>Number: 6531
>Category: c++
>Synopsis: attribute error
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: rejects-legal
>Submitter-Id: net
>Arrival-Date: Wed May 01 06:36:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: qzb04471@nifty.ne.jp
>Release: h8300-elf-g++ (GCC) 3.1 20020429 (prerelease)
>Organization:
>Environment:
RedHat Linux 6.2
>Description:
weaktest.cpp:7: `void bar()' defined both normally and as an alias
weaktest.cpp:7: weak declaration of `void bar()' must precede definition
weaktest.cpp
extern "C" void bar( );
extern "C" void foo( )
{
}
extern "C" void bar( ) __attribute__ ((weak)) __attribute__ ((alias ("foo")));
>How-To-Repeat:
>Fix:
*** decl.c.old Wed May 1 22:26:14 2002
--- decl.c Wed May 1 22:27:53 2002
***************
*** 3505,3511 ****
except for any that we copy here from the old type. */
DECL_ATTRIBUTES (newdecl)
= (*targetm.merge_decl_attributes) (olddecl, newdecl);
- decl_attributes (&newdecl, DECL_ATTRIBUTES (newdecl), 0);
if (TREE_CODE (newdecl) == TEMPLATE_DECL)
{
--- 3505,3510 ----
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-10-11 19:40 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-11 12:40 c++/6531: attribute error gdr
-- strict thread matches above, loose matches on Subject: below --
2002-09-11 14:36 Klaus Pedersen
2002-05-01 6:36 qzb04471
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).