https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64156
Bug ID: 64156 Summary: Subversion id 218266 breaks the big-endian 64-bit PowerPC build (wilco.dijkstra at arm dot com's mod to ira-costs.c) Product: gcc Version: 5.0 Status: UNCONFIRMED Severity: blocker Priority: P3 Component: rtl-optimization Assignee: unassigned at gcc dot gnu.org Reporter: meissner at gcc dot gnu.org Host: powerpc64-unknown-linux-gnu Target: powerpc64-unknown-linux-gnu Build: powerpc64-unknown-linux-gnu Subversion id 218266 breaks the big-endian 64-bit PowerPC build. Please either revert the patch or fix it so that the PowerPC now builds once again. You can see the failure by building a cross compiler. It fails when building the 32-bit libgcc on the _powisf module. If I remove the -fPIC option, it will compile the module. Here is the failure message: make[4]: Entering directory `/data/meissner/fsf-build-x86_64/trunk-powerpc64-linux/powerpc64-linux/32/libgcc' # If this is the top-level multilib, build all the other # multilibs. /home/meissner/fsf-build-x86_64/trunk-powerpc64-linux/./gcc/xgcc -B/home/meissner/fsf-build-x86_64/trunk-powerpc64-linux/./gcc/ -B/home/meissner/fsf-install-x86_64/trunk-powerpc64-linux/powerpc64-linux/bin/ -B/home/meissner/fsf-install-x86_64/trunk-powerpc64-linux/powerpc64-linux/lib/ -isystem /home/meissner/fsf-install-x86_64/trunk-powerpc64-linux/powerpc64-linux/include -isystem /home/meissner/fsf-install-x86_64/trunk-powerpc64-linux/powerpc64-linux/sys-include -g -O2 -m32 -O2 -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -fPIC -mlong-double-128 -mno-minimal-toc -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector -fPIC -mlong-double-128 -mno-minimal-toc -I. -I. -I../../.././gcc -I/home/meissner/fsf-src/trunk/libgcc -I/home/meissner/fsf-src/trunk/libgcc/. -I/home/meissner/fsf-src/trunk/libgcc/../gcc -I/home/meissner/fsf-src/trunk/libgcc/../include -I/home/meissner/fsf-src/trunk/libgcc/../libdecnumber/dpd -I/home/meissner/fsf-src/trunk/libgcc/../libdecnumber -DHAVE_CC_TLS -o _powisf2.o -MT _powisf2.o -MD -MP -MF _powisf2.dep -DL_powisf2 -c /home/meissner/fsf-src/trunk/libgcc/libgcc2.c -fvisibility=hidden -DHIDE_EXPORTS /tmp/ccN1BGVd.s: Assembler messages: /tmp/ccN1BGVd.s:87: Error: can't resolve `.LC0' {.rodata.cst4 section} - `.LCTOC1' {.got2 section} /tmp/ccN1BGVd.s:87: Error: expression too complex make[4]: *** [_powisf2.o] Error 1 make[4]: Leaving directory `/data/meissner/fsf-build-x86_64/trunk-powerpc64-linux/powerpc64-linux/32/libgcc' make[3]: *** [multi-do] Error 1 make[3]: Leaving directory `/data/meissner/fsf-build-x86_64/trunk-powerpc64-linux/powerpc64-linux/libgcc' make[2]: *** [all-multi] Error 2 make[2]: Leaving directory `/data/meissner/fsf-build-x86_64/trunk-powerpc64-linux/powerpc64-linux/libgcc' make[1]: *** [all-target-libgcc] Error 2 make[1]: Leaving directory `/data/meissner/fsf-build-x86_64/trunk-powerpc64-linux' make: *** [all] Error 2