public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/25919]  New: Bootstrap failure with ICE in expand_compound_operation
@ 2006-01-23  6:05 kkojima at gcc dot gnu dot org
  2006-01-23  8:47 ` [Bug target/25919] " kkojima at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: kkojima at gcc dot gnu dot org @ 2006-01-23  6:05 UTC (permalink / raw)
  To: gcc-bugs

The mainline compiler for sh4-*-linux-gnu fails during libgcc build:

/exp/ldroot/dodes/xsh-gcc-orig/./gcc/xgcc
-B/exp/ldroot/dodes/xsh-gcc-orig/./gcc/ -B/usr/local/sh4-unknown-linux-gnu/bin/
-B/usr/local/sh4-unknown-linux-gnu/lib/ -isystem
/usr/local/sh4-unknown-linux-gnu/include -isystem
/usr/local/sh4-unknown-linux-gnu/sys-include -O2  -O2 -g -O2  -DIN_GCC
-DCROSS_COMPILE   -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -Wold-style-definition -isystem ./include  -fpic
-DNO_FPSCR_VALUES -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED 
-I. -I. -I../../ORIG/trunk/gcc -I../../ORIG/trunk/gcc/.
-I../../ORIG/trunk/gcc/../include -I../../ORIG/trunk/gcc/../libcpp/include 
-I../../ORIG/trunk/gcc/../libdecnumber -I../libdecnumber -DL_negvsi2
-fvisibility=hidden -DHIDE_EXPORTS -c ../../ORIG/trunk/gcc/libgcc2.c -o
libgcc/./_negvsi2.o
../../ORIG/trunk/gcc/libgcc2.c: In function '__negvsi2':
../../ORIG/trunk/gcc/libgcc2.c:174: internal compiler error: in
expand_compound_operation, at combine.c:5644

A reduced testcase is:

void foo (int a)
{
  int w = -a;
  if (a >= 0 ? w > 0 : w < 0)
    bar ();
}

which fails to compile with -O.  This ICEs also on sh-elf with -O -m4.

Binary search shows that it starts to fail after the patch:

r109961 | bonzini | 2006-01-19 23:54:57 +0900 (Thu, 19 Jan 2006) | 13 lines

2006-01-19  Paolo Bonzini  <bonzini@gnu.org>

        * combine.c (try_combine): Do not worry about MEMs wrapped by USEs.
        (expand_compound_operation, expand_field_assignment): Fail if the
        bit lengths of an extract operation are out of range.
        (make_extraction): Compute wanted_inner_mode based on the position
        and length of the extraction.  Make it extraction_mode for non-constant
        positions, and do not modify offset in that case.  When generating a
        new MEM, use a mode that can hold the extraction while keeping correct
        alignment.  Remove code that supported MEMs wrapped by USEs.
        (simplify_shift_const_1, force_to_mode) <case USE>: Remove.


-- 
           Summary: Bootstrap failure with ICE in expand_compound_operation
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code, build, ice-checking
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: kkojima at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: sh4-*-linux-gnu


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


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

* [Bug target/25919] Bootstrap failure with ICE in expand_compound_operation
  2006-01-23  6:05 [Bug target/25919] New: Bootstrap failure with ICE in expand_compound_operation kkojima at gcc dot gnu dot org
@ 2006-01-23  8:47 ` kkojima at gcc dot gnu dot org
  2006-01-23  8:59 ` bonzini at gnu dot org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: kkojima at gcc dot gnu dot org @ 2006-01-23  8:47 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from kkojima at gcc dot gnu dot org  2006-01-23 08:47 -------
It seems that this PR is a duplicate of 25905.



*** This bug has been marked as a duplicate of 25905 ***


-- 

kkojima at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE


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


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

* [Bug target/25919] Bootstrap failure with ICE in expand_compound_operation
  2006-01-23  6:05 [Bug target/25919] New: Bootstrap failure with ICE in expand_compound_operation kkojima at gcc dot gnu dot org
  2006-01-23  8:47 ` [Bug target/25919] " kkojima at gcc dot gnu dot org
@ 2006-01-23  8:59 ` bonzini at gnu dot org
  2006-01-23 10:00 ` bonzini at gnu dot org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: bonzini at gnu dot org @ 2006-01-23  8:59 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from bonzini at gnu dot org  2006-01-23 08:59 -------
I am not so sure that it is a duplicate.


-- 


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


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

* [Bug target/25919] Bootstrap failure with ICE in expand_compound_operation
  2006-01-23  6:05 [Bug target/25919] New: Bootstrap failure with ICE in expand_compound_operation kkojima at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2006-01-23 10:00 ` bonzini at gnu dot org
@ 2006-01-23 10:00 ` bonzini at gnu dot org
  2006-01-23 10:01 ` bonzini at gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: bonzini at gnu dot org @ 2006-01-23 10:00 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from bonzini at gnu dot org  2006-01-23 09:59 -------
Reopening...


-- 

bonzini at gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|0000-00-00 00:00:00         |2006-01-23 09:59:58
               date|                            |


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


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

* [Bug target/25919] Bootstrap failure with ICE in expand_compound_operation
  2006-01-23  6:05 [Bug target/25919] New: Bootstrap failure with ICE in expand_compound_operation kkojima at gcc dot gnu dot org
  2006-01-23  8:47 ` [Bug target/25919] " kkojima at gcc dot gnu dot org
  2006-01-23  8:59 ` bonzini at gnu dot org
@ 2006-01-23 10:00 ` bonzini at gnu dot org
  2006-01-23 10:00 ` bonzini at gnu dot org
  2006-01-23 10:01 ` bonzini at gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: bonzini at gnu dot org @ 2006-01-23 10:00 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from bonzini at gnu dot org  2006-01-23 10:00 -------
Reopening for real...


-- 

bonzini at gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|DUPLICATE                   |


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


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

* [Bug target/25919] Bootstrap failure with ICE in expand_compound_operation
  2006-01-23  6:05 [Bug target/25919] New: Bootstrap failure with ICE in expand_compound_operation kkojima at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2006-01-23 10:00 ` bonzini at gnu dot org
@ 2006-01-23 10:01 ` bonzini at gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: bonzini at gnu dot org @ 2006-01-23 10:01 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from bonzini at gnu dot org  2006-01-23 10:01 -------
... to mark as duplicate for the 20051228-1.c failure.

*** This bug has been marked as a duplicate of 25890 ***


-- 

bonzini at gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE


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


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

end of thread, other threads:[~2006-01-23 10:01 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-23  6:05 [Bug target/25919] New: Bootstrap failure with ICE in expand_compound_operation kkojima at gcc dot gnu dot org
2006-01-23  8:47 ` [Bug target/25919] " kkojima at gcc dot gnu dot org
2006-01-23  8:59 ` bonzini at gnu dot org
2006-01-23 10:00 ` bonzini at gnu dot org
2006-01-23 10:00 ` bonzini at gnu dot org
2006-01-23 10:01 ` bonzini at gnu dot 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).