public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/49195] New: Error building libgcc for powerpc64 since r174305
@ 2011-05-27 16:33 wschmidt at gcc dot gnu.org
  2011-05-27 18:39 ` [Bug bootstrap/49195] [4.7 Regression] " pinskia at gcc dot gnu.org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: wschmidt at gcc dot gnu.org @ 2011-05-27 16:33 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug bootstrap/49195] [4.7 Regression] Error building libgcc for powerpc64 since r174305
  2011-05-27 16:33 [Bug bootstrap/49195] New: Error building libgcc for powerpc64 since r174305 wschmidt at gcc dot gnu.org
@ 2011-05-27 18:39 ` pinskia at gcc dot gnu.org
  2011-05-27 18:48 ` wschmidt at gcc dot gnu.org
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu.org @ 2011-05-27 18:39 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49195

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |build, ice-on-valid-code
   Target Milestone|---                         |4.7.0
            Summary|Error building libgcc for   |[4.7 Regression] Error
                   |powerpc64 since r174305     |building libgcc for
                   |                            |powerpc64 since r174305
           Severity|normal                      |blocker


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug bootstrap/49195] [4.7 Regression] Error building libgcc for powerpc64 since r174305
  2011-05-27 16:33 [Bug bootstrap/49195] New: Error building libgcc for powerpc64 since r174305 wschmidt at gcc dot gnu.org
  2011-05-27 18:39 ` [Bug bootstrap/49195] [4.7 Regression] " pinskia at gcc dot gnu.org
@ 2011-05-27 18:48 ` wschmidt at gcc dot gnu.org
  2011-05-27 19:53 ` segher at gcc dot gnu.org
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: wschmidt at gcc dot gnu.org @ 2011-05-27 18:48 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49195

--- Comment #1 from William J. Schmidt <wschmidt at gcc dot gnu.org> 2011-05-27 18:46:14 UTC ---
As reported by Dominique d'Humieres, regress bot shows the same issue:

http://gcc.gnu.org/regtest/HEAD/native-lastbuild.txt.gzip

Andrew Pinski noted the similar bug on ARM:

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49197


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug bootstrap/49195] [4.7 Regression] Error building libgcc for powerpc64 since r174305
  2011-05-27 16:33 [Bug bootstrap/49195] New: Error building libgcc for powerpc64 since r174305 wschmidt at gcc dot gnu.org
  2011-05-27 18:39 ` [Bug bootstrap/49195] [4.7 Regression] " pinskia at gcc dot gnu.org
  2011-05-27 18:48 ` wschmidt at gcc dot gnu.org
@ 2011-05-27 19:53 ` segher at gcc dot gnu.org
  2011-05-27 20:08 ` segher at gcc dot gnu.org
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: segher at gcc dot gnu.org @ 2011-05-27 19:53 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49195

--- Comment #2 from Segher Boessenkool <segher at gcc dot gnu.org> 2011-05-27 19:51:13 UTC ---
Created attachment 24377
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24377
diff from good to bad insn-recog.c


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug bootstrap/49195] [4.7 Regression] Error building libgcc for powerpc64 since r174305
  2011-05-27 16:33 [Bug bootstrap/49195] New: Error building libgcc for powerpc64 since r174305 wschmidt at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2011-05-27 19:53 ` segher at gcc dot gnu.org
@ 2011-05-27 20:08 ` segher at gcc dot gnu.org
  2011-05-27 20:19 ` segher at gcc dot gnu.org
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: segher at gcc dot gnu.org @ 2011-05-27 20:08 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49195

Segher Boessenkool <segher at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2011.05.27 19:52:23
                 CC|                            |segher at gcc dot gnu.org
     Ever Confirmed|0                           |1

--- Comment #3 from Segher Boessenkool <segher at gcc dot gnu.org> 2011-05-27 19:52:23 UTC ---
Confirmed on a cross build with RTL checking on, error is

/n/10/segher/src/gcc/libgcc/../gcc/libgcc2.c: In function '__divsc3':
/n/10/segher/src/gcc/libgcc/../gcc/libgcc2.c:1944:1: internal compiler error:
RTL check: expected elt 0 type 'E' or 'V', have 'e' (rtx eq) in recog_33, at
config/rs6000/rs6000.md:15011

Attached diff from "good" to "bad" insn-recog.c


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug bootstrap/49195] [4.7 Regression] Error building libgcc for powerpc64 since r174305
  2011-05-27 16:33 [Bug bootstrap/49195] New: Error building libgcc for powerpc64 since r174305 wschmidt at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2011-05-27 20:08 ` segher at gcc dot gnu.org
@ 2011-05-27 20:19 ` segher at gcc dot gnu.org
  2011-05-28  7:43 ` rsandifo at gcc dot gnu.org
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: segher at gcc dot gnu.org @ 2011-05-27 20:19 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49195

--- Comment #4 from Segher Boessenkool <segher at gcc dot gnu.org> 2011-05-27 20:14:05 UTC ---
This is the match_op_dup operand in


(define_insn ""
  [(set (match_operand:CC 0 "cc_reg_operand" "=x,?y")
        (compare:CC (match_operator:SI 1 "scc_comparison_operator"
                                       [(match_operand 2 "cc_reg_operand"
"y,y")
                                        (const_int 0)])
                    (const_int 0)))
   (set (match_operand:SI 3 "gpc_reg_operand" "=r,r")
        (match_op_dup 1 [(match_dup 2) (const_int 0)]))]
  "TARGET_32BIT"
  "@
   mfcr %3%Q2\;{rlinm.|rlwinm.} %3,%3,%J1,1
   #"
  [(set_attr "type" "delayed_compare")
   (set_attr "length" "8,16")])


and the similar define_split.


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug bootstrap/49195] [4.7 Regression] Error building libgcc for powerpc64 since r174305
  2011-05-27 16:33 [Bug bootstrap/49195] New: Error building libgcc for powerpc64 since r174305 wschmidt at gcc dot gnu.org
                   ` (5 preceding siblings ...)
  2011-05-28  7:43 ` rsandifo at gcc dot gnu.org
@ 2011-05-28  7:43 ` rsandifo at gcc dot gnu.org
  2011-05-28  7:46 ` rsandifo at gcc dot gnu.org
  2011-05-28 14:53 ` wschmidt at gcc dot gnu.org
  8 siblings, 0 replies; 10+ messages in thread
From: rsandifo at gcc dot gnu.org @ 2011-05-28  7:43 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49195

rsandifo@gcc.gnu.org <rsandifo at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rmansfield at qnx dot com

--- Comment #6 from rsandifo at gcc dot gnu.org <rsandifo at gcc dot gnu.org> 2011-05-28 07:42:56 UTC ---
*** Bug 49197 has been marked as a duplicate of this bug. ***


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug bootstrap/49195] [4.7 Regression] Error building libgcc for powerpc64 since r174305
  2011-05-27 16:33 [Bug bootstrap/49195] New: Error building libgcc for powerpc64 since r174305 wschmidt at gcc dot gnu.org
                   ` (4 preceding siblings ...)
  2011-05-27 20:19 ` segher at gcc dot gnu.org
@ 2011-05-28  7:43 ` rsandifo at gcc dot gnu.org
  2011-05-28  7:43 ` rsandifo at gcc dot gnu.org
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: rsandifo at gcc dot gnu.org @ 2011-05-28  7:43 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49195

--- Comment #5 from rsandifo at gcc dot gnu.org <rsandifo at gcc dot gnu.org> 2011-05-28 07:38:12 UTC ---
Author: rsandifo
Date: Sat May 28 07:38:07 2011
New Revision: 174378

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=174378
Log:
gcc/
    PR bootstrap/49195
    * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
    for match_op_dup.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/genrecog.c


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug bootstrap/49195] [4.7 Regression] Error building libgcc for powerpc64 since r174305
  2011-05-27 16:33 [Bug bootstrap/49195] New: Error building libgcc for powerpc64 since r174305 wschmidt at gcc dot gnu.org
                   ` (6 preceding siblings ...)
  2011-05-28  7:43 ` rsandifo at gcc dot gnu.org
@ 2011-05-28  7:46 ` rsandifo at gcc dot gnu.org
  2011-05-28 14:53 ` wschmidt at gcc dot gnu.org
  8 siblings, 0 replies; 10+ messages in thread
From: rsandifo at gcc dot gnu.org @ 2011-05-28  7:46 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49195

rsandifo@gcc.gnu.org <rsandifo at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #7 from rsandifo at gcc dot gnu.org <rsandifo at gcc dot gnu.org> 2011-05-28 07:43:42 UTC ---
Fixed applied to trunk.


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug bootstrap/49195] [4.7 Regression] Error building libgcc for powerpc64 since r174305
  2011-05-27 16:33 [Bug bootstrap/49195] New: Error building libgcc for powerpc64 since r174305 wschmidt at gcc dot gnu.org
                   ` (7 preceding siblings ...)
  2011-05-28  7:46 ` rsandifo at gcc dot gnu.org
@ 2011-05-28 14:53 ` wschmidt at gcc dot gnu.org
  8 siblings, 0 replies; 10+ messages in thread
From: wschmidt at gcc dot gnu.org @ 2011-05-28 14:53 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49195

William J. Schmidt <wschmidt at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |CLOSED

--- Comment #8 from William J. Schmidt <wschmidt at gcc dot gnu.org> 2011-05-28 14:41:40 UTC ---
Verified that powerpc64 bootstraps cleanly this morning.  Thanks, Richard!


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2011-05-28 14:43 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-27 16:33 [Bug bootstrap/49195] New: Error building libgcc for powerpc64 since r174305 wschmidt at gcc dot gnu.org
2011-05-27 18:39 ` [Bug bootstrap/49195] [4.7 Regression] " pinskia at gcc dot gnu.org
2011-05-27 18:48 ` wschmidt at gcc dot gnu.org
2011-05-27 19:53 ` segher at gcc dot gnu.org
2011-05-27 20:08 ` segher at gcc dot gnu.org
2011-05-27 20:19 ` segher at gcc dot gnu.org
2011-05-28  7:43 ` rsandifo at gcc dot gnu.org
2011-05-28  7:43 ` rsandifo at gcc dot gnu.org
2011-05-28  7:46 ` rsandifo at gcc dot gnu.org
2011-05-28 14:53 ` wschmidt at gcc dot gnu.org

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).