[Bug bootstrap/49195] New: Error building libgcc for powerpc64 since r174305
wschmidt at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri May 27 16:33:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49195
Summary: Error building libgcc for powerpc64 since r174305
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: bootstrap
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: wschmidt@gcc.gnu.org
libgcc fails to build for powerpc64 today. This was exposed starting with the
introduction of revision 174305:
------------------------------------------------------------------------
r174305 | rsandifo | 2011-05-26 14:16:05 -0500 (Thu, 26 May 2011) | 13 lines
gcc/
PR rtl-optimization/48575
* genrecog.c (position_type): New enum.
(position): New structure.
(decision): Use position structure instead of a string.
(root_pos, peep2_insn_pos_list): New variables.
(next_position, compare_positions): New functions.
(new_decision): Use position structures instead of strings.
(maybe_both_true): Likewise.
(change_state): Likewise.
(write_tree): Likewise.
(make_insn_sequence): Likewise.
------------------------------------------------------------------------
Here's the failure from the build log:
/home/wschmidt/gcc/build/gcc-mainline-base/./gcc/xgcc
-B/home/wschmidt/gcc/build/gcc-mainline-base/./gcc/
-B/home/wschmidt/gcc/install/gcc-mainline-base/powerpc64-linux/bin/
-B/home/wschmidt/gcc/install/gcc-mainline-base/powerpc64-linux/lib/ -isystem
/home/wschmidt/gcc/install/gcc-mainline-base/powerpc64-linux/include -isystem
/home/wschmidt/gcc/install/gcc-mainline-base/powerpc64-linux/sys-include -g
-O2 -O2 -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wcast-qual
-Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem
./include -fPIC -mno-minimal-toc -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2
-D__GCC_FLOAT_NOT_NEEDED -fno-stack-protector -mlong-double-128 -I. -I.
-I../.././gcc -I/home/wschmidt/gcc/gcc-mainline-base/libgcc
-I/home/wschmidt/gcc/gcc-mainline-base/libgcc/.
-I/home/wschmidt/gcc/gcc-mainline-base/libgcc/../gcc
-I/home/wschmidt/gcc/gcc-mainline-base/libgcc/../include
-I/home/wschmidt/gcc/gcc-mainline-base/libgcc/../libdecnumber/dpd
-I/home/wschmidt/gcc/gcc-mainline-base/libgcc/../libdecnumber -DHAVE_CC_TLS -o
_divsc3.o -MT _divsc3.o -MD -MP -MF _divsc3.dep -DL_divsc3 -c
/home/wschmidt/gcc/gcc-mainline-base/libgcc/../gcc/libgcc2.c \
-fvisibility=hidden -DHIDE_EXPORTS
/home/wschmidt/gcc/gcc-mainline-base/libgcc/../gcc/libgcc2.c: In function
‘__divsc3’:
/home/wschmidt/gcc/gcc-mainline-base/libgcc/../gcc/libgcc2.c:1944:1: internal
compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
make[5]: *** [_divsc3.o] Error 1
Here's a debug stack trace for the segv:
(gdb) bt
#0 0x00000000121e38ec in rtx_equal_p (x=0xedafafafaf, y=0xfffb7293f80) at
/home/wschmidt/gcc/gcc-mainline-base/gcc/rtl.c:512
#1 0x0000000014439848 in recog_33 (x0=0xfffb6dc4d00, insn=0xfffb72b9dc8,
pnum_clobbers=0xfffffffcfc8) at
/home/wschmidt/gcc/gcc-mainline-base/gcc/config/rs6000/rs6000.md:15012
#2 0x000000001444319c in recog_36 (x0=0xfffb6dc4d00, insn=0xfffb72b9dc8,
pnum_clobbers=0xfffffffcfc8) at
/home/wschmidt/gcc/gcc-mainline-base/gcc/config/rs6000/rs6000.md:13393
#3 0x0000000014466824 in recog_51 (x0=0xfffb6dc4d00, insn=0xfffb72b9dc8,
pnum_clobbers=0xfffffffcfc8) at
/home/wschmidt/gcc/gcc-mainline-base/gcc/config/rs6000/rs6000.md:224
#4 0x0000000014473090 in recog (x0=0xfffb6dc4d00, insn=0xfffb72b9dc8,
pnum_clobbers=0xfffffffcfc8) at
/home/wschmidt/gcc/gcc-mainline-base/gcc/config/rs6000/altivec.md:341
#5 0x00000000145e461c in recog_for_combine (pnewpat=0xfffffffd410,
insn=0xfffb72b9dc8, pnotes=0xfffffffd458) at
/home/wschmidt/gcc/gcc-mainline-base/gcc/combine.c:10648
#6 0x00000000145c9208 in try_combine (i3=0xfffb72b9dc8, i2=0xfffb72b9c18,
i1=0x0, i0=0x0, new_direct_jump_p=0xfffffffd8b0,
last_combined_insn=0xfffb72b9dc8) at
/home/wschmidt/gcc/gcc-mainline-base/gcc/combine.c:3350
#7 0x00000000145c1e84 in combine_instructions (f=0xfffb6e93d80, nregs=399) at
/home/wschmidt/gcc/gcc-mainline-base/gcc/combine.c:1223
#8 0x00000000145eea58 in rest_of_handle_combine () at
/home/wschmidt/gcc/gcc-mainline-base/gcc/combine.c:13901
#9 0x0000000011df3f8c in execute_one_pass (pass=0x155065c8) at
/home/wschmidt/gcc/gcc-mainline-base/gcc/passes.c:1556
#10 0x0000000011df4248 in execute_pass_list (pass=0x155065c8) at
/home/wschmidt/gcc/gcc-mainline-base/gcc/passes.c:1610
#11 0x0000000011df4274 in execute_pass_list (pass=0x154feb20) at
/home/wschmidt/gcc/gcc-mainline-base/gcc/passes.c:1611
#12 0x0000000012c4821c in tree_rest_of_compilation (fndecl=0xfffb6f08b00) at
/home/wschmidt/gcc/gcc-mainline-base/gcc/tree-optimize.c:417
#13 0x0000000010a93bf4 in cgraph_expand_function (node=0xfffb6f3e740) at
/home/wschmidt/gcc/gcc-mainline-base/gcc/cgraphunit.c:1630
#14 0x0000000010a93ea0 in cgraph_expand_all_functions () at
/home/wschmidt/gcc/gcc-mainline-base/gcc/cgraphunit.c:1689
#15 0x0000000010a94898 in cgraph_optimize () at
/home/wschmidt/gcc/gcc-mainline-base/gcc/cgraphunit.c:1952
#16 0x0000000010a916fc in cgraph_finalize_compilation_unit () at
/home/wschmidt/gcc/gcc-mainline-base/gcc/cgraphunit.c:1126
#17 0x00000000101481a0 in c_write_global_declarations () at
/home/wschmidt/gcc/gcc-mainline-base/gcc/c-decl.c:9840
#18 0x00000000125b9460 in compile_file () at
/home/wschmidt/gcc/gcc-mainline-base/gcc/toplev.c:586
#19 0x00000000125bc884 in do_compile () at
/home/wschmidt/gcc/gcc-mainline-base/gcc/toplev.c:1923
#20 0x00000000125bcab4 in toplev_main (argc=96, argv=0xfffffffe648) at
/home/wschmidt/gcc/gcc-mainline-base/gcc/toplev.c:1995
#21 0x000000001050bcd4 in main (argc=96, argv=0xfffffffe648) at
/home/wschmidt/gcc/gcc-mainline-base/gcc/main.c:36
Here are my configuration options:
LD=$BINUTILS_INSTALL/bin/ld AS=$BINUTILS_INSTALL/bin/as $GCC_SRC/configure
--target=powerpc64-linux --host=powerpc64-linux --build=powerpc64-linux
--enable-threads=posix --enable-shared --enable-__cxa_atexit
--enable-languages=c,c++,fortran,objc,obj-c++ --enable-secureplt
--enable-checking=yes --with-gmp=/home/bergner/tools/gcc-host-libs-ppc64
--with-mpfr=/home/bergner/tools/gcc-host-libs-ppc64
--with-mpc=/home/bergner/tools/gcc-host-libs-ppc64
--with-libelf=/home/bergner/tools/gcc-host-libs-ppc64 --with-long-double-128
--enable-decimal-float --disable-alsa --prefix=$GCC_INSTALL
More information about the Gcc-bugs
mailing list