This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/21477] New: adddi3 becomes external reference rather than instruction on powerpc64
- From: "janis at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 May 2005 21:45:49 -0000
- Subject: [Bug target/21477] New: adddi3 becomes external reference rather than instruction on powerpc64
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The following testcase fails on powerpc64-linux with GCC mainline
starting sometime after 2005-05-05 01:24 UTC:
long a, b;
void
foo ()
{
a = b + 2147483647L;
}
int
main ()
{
foo ();
return 0;
}
elm3b11% /opt/gcc-nightly/mline/bin/gcc -m64 -O0 -g bug.c
/tmp/ccwXjSlP.o(.text+0x28): In function `foo':
/home/janis/work/bug.c:6: undefined reference to `__adddi3'
collect2: ld returned 1 exit status
It looks like a problem with this patch from geoffk on 2005-05-05:
http://gcc.gnu.org/ml/gcc-cvs/2005-05/msg00232.html
This affects SPEC CPU2000 tests bzip2, eon, and gzip built without
optimization.
--
Summary: adddi3 becomes external reference rather than
instruction on powerpc64
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: target
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: janis at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org,geoffk at gcc dot gnu
dot org
GCC build triplet: powerpc64-linux
GCC host triplet: powerpc64-linux
GCC target triplet: powerpc64-linux
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21477