public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* other/3997: gcc generates ..ng references for static aliases (alpha-linux)
@ 2001-08-11 0:56 Matthias Klose
0 siblings, 0 replies; only message in thread
From: Matthias Klose @ 2001-08-11 0:56 UTC (permalink / raw)
To: gcc-gnats, debian-gcc; +Cc: herbert
>Number: 3997
>Category: other
>Synopsis: gcc generates ..ng references for static aliases (alpha-linux)
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Aug 11 00:56:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: herbert@gondor.apana.org.au
>Release: 3.0 (Debian GNU/Linux)
>Organization:
The Debian project
>Environment:
System: Debian GNU/Linux (testing/unstable)
Architecture: alpha
host: alpha-linux
build: alpha-linux
target: alpha-linux
>Description:
[ Reported to the Debian BTS as report #108036.
Please CC 108036-quiet@bugs.debian.org on replies.
Log of report can be found at http://bugs.debian.org/108036 ]
This file compiles but doesn't link on alpha:
#include <stdlib.h>
void foo(int);
static void bar(int) __attribute__ ((noreturn));
void foo(int k) {
if (k) {
exit(k);
}
}
static void bar(int) __attribute__ ((alias("foo")));
int main(int k) {
if (k < 0) {
bar(1);
}
return k;
}
What happens is that gcc generates a reference to bar..ng but the alias
only exists for bar. The problem goes away when bar is not declared as
static.
I've reproduced this problem with gcc-3.0 as well.
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2001-08-11 0:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-08-11 0:56 other/3997: gcc generates ..ng references for static aliases (alpha-linux) Matthias Klose
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).