The following two testcases suffer linkage failures due to missing symbols
when built with -m64 with gcc trunk on powerpc-apple-darwin8.
-----------modulo.c----------------
main()
{
__int128_t a, b;
b= a % 10;
}
-----------division.c-----------------
main()
{
__int128_t a, b;
b= a / 10;
}
-------------------------------------
...producing the following linkage errors...
gcc -m64 modulo.c
can't resolve symbols:
___modti3, referenced from:
_main in ccUT37dw.o
ld64 failed: symbol(s) not found
collect2: ld returned 1 exit status
gcc -m64 division.c
can't resolve symbols:
___divti3, referenced from:
_main in ccXNNMOt.o
ld64 failed: symbol(s) not found
This problem is currently causing over 800 fortran testsuite failures at -m64
on powerpc-apple-darwin8.
--
Summary: ___divti3 and ___umodti3 undefined for -m64 on powerpc-
apple-darwin8
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: howarth at nitro dot med dot uc dot edu
GCC build triplet: powerpc-apple-darwin8
GCC host triplet: powerpc-apple-darwin8
GCC target triplet: powerpc-apple-darwin8
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28617