public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/25905]  New: [4.2 regression] ICE in expand_compound_operation
@ 2006-01-21 23:24 schwab at suse dot de
  2006-01-21 23:25 ` [Bug middle-end/25905] " schwab at suse dot de
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: schwab at suse dot de @ 2006-01-21 23:24 UTC (permalink / raw)
  To: gcc-bugs

$ ./xgcc -B./ unwind-dw2-fde-glibc.i -S -O -v
Reading specs from ./specs
Target: m68k-linux
Configured with: ../gcc/configure --prefix=/usr/local/m68k-linux
--host=powerpc-linux --target=m68k-linux
--with-sysroot=/usr/local/m68k-linux/m68k-linux/sys-root --enable-shared
--enable-__cxa_atexit --with-system-zlib
--enable-languages=c,c++,fortran,java,objc --no-create --no-recursion
Thread model: posix
gcc version 4.2.0 20060121 (experimental)
 ./cc1 -fpreprocessed unwind-dw2-fde-glibc.i -quiet -dumpbase
unwind-dw2-fde-glibc.i -auxbase unwind-dw2-fde-glibc -O -version -o
unwind-dw2-fde-glibc.s
GNU C version 4.2.0 20060121 (experimental) (m68k-linux)
        compiled by GNU C version 4.0.2 20050901 (prerelease) (SUSE Linux).
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
Compiler executable checksum: 0ad6bd3654ebd3f56f26d23ad96d1796
../../gcc/gcc/unwind-dw2-fde.c: In function
‘fde_single_encoding_compare’:
../../gcc/gcc/unwind-dw2-fde.c:350: internal compiler error: in
expand_compound_operation, at combine.c:5644

Caused by:

r109961 | bonzini | 2006-01-19 15:54:57 +0100 (Do, 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: [4.2 regression] ICE in expand_compound_operation
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: schwab at suse dot de
GCC target triplet: m68k-linux


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


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

* [Bug middle-end/25905] [4.2 regression] ICE in expand_compound_operation
  2006-01-21 23:24 [Bug middle-end/25905] New: [4.2 regression] ICE in expand_compound_operation schwab at suse dot de
@ 2006-01-21 23:25 ` schwab at suse dot de
  2006-01-21 23:41 ` pinskia at gcc dot gnu dot org
                   ` (10 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: schwab at suse dot de @ 2006-01-21 23:25 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from schwab at suse dot de  2006-01-21 23:25 -------
Created an attachment (id=10696)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10696&action=view)
Testcase


-- 


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


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

* [Bug middle-end/25905] [4.2 regression] ICE in expand_compound_operation
  2006-01-21 23:24 [Bug middle-end/25905] New: [4.2 regression] ICE in expand_compound_operation schwab at suse dot de
  2006-01-21 23:25 ` [Bug middle-end/25905] " schwab at suse dot de
@ 2006-01-21 23:41 ` pinskia at gcc dot gnu dot org
  2006-01-21 23:44 ` pinskia at gcc dot gnu dot org
                   ` (9 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-01-21 23:41 UTC (permalink / raw)
  To: gcc-bugs



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pinskia at gcc dot gnu dot
                   |                            |org
   Target Milestone|---                         |4.2.0


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


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

* [Bug middle-end/25905] [4.2 regression] ICE in expand_compound_operation
  2006-01-21 23:24 [Bug middle-end/25905] New: [4.2 regression] ICE in expand_compound_operation schwab at suse dot de
  2006-01-21 23:25 ` [Bug middle-end/25905] " schwab at suse dot de
  2006-01-21 23:41 ` pinskia at gcc dot gnu dot org
@ 2006-01-21 23:44 ` pinskia at gcc dot gnu dot org
  2006-01-22 13:41 ` pbrook at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-01-21 23:44 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from pinskia at gcc dot gnu dot org  2006-01-21 23:44 -------
I think this is related to PR 25890 which is reproducible on x86_64-linux-gnu
also.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  BugsThisDependsOn|                            |25890


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


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

* [Bug middle-end/25905] [4.2 regression] ICE in expand_compound_operation
  2006-01-21 23:24 [Bug middle-end/25905] New: [4.2 regression] ICE in expand_compound_operation schwab at suse dot de
                   ` (2 preceding siblings ...)
  2006-01-21 23:44 ` pinskia at gcc dot gnu dot org
@ 2006-01-22 13:41 ` pbrook at gcc dot gnu dot org
  2006-01-23  8:14 ` bonzini at gnu dot org
                   ` (7 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: pbrook at gcc dot gnu dot org @ 2006-01-22 13:41 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from pbrook at gcc dot gnu dot org  2006-01-22 13:41 -------
Smaller testcase:
void
read_encoded_value_with_base (const unsigned char *p, unsigned * val)
{
  union unaligned
  {
    unsigned short u2;
  }
  __attribute__ ((__packed__));
  const union unaligned *u = (const union unaligned *) p;
  *val = u->u2;
}


-- 

pbrook at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2006-01-22 13:41:02
               date|                            |


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


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

* [Bug middle-end/25905] [4.2 regression] ICE in expand_compound_operation
  2006-01-21 23:24 [Bug middle-end/25905] New: [4.2 regression] ICE in expand_compound_operation schwab at suse dot de
                   ` (3 preceding siblings ...)
  2006-01-22 13:41 ` pbrook at gcc dot gnu dot org
@ 2006-01-23  8:14 ` bonzini at gnu dot org
  2006-01-23  8:22 ` bonzini at gnu dot org
                   ` (6 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: bonzini at gnu dot org @ 2006-01-23  8:14 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from bonzini at gnu dot org  2006-01-23 08:14 -------
The ICE is the same, but the cause is probably different as 25890 is an
ICE-on-undefined.

I think it's easiest to punt and return failure instead of asserting, but I
want to investigate how we reach the assertion failure in this case.


-- 


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


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

* [Bug middle-end/25905] [4.2 regression] ICE in expand_compound_operation
  2006-01-21 23:24 [Bug middle-end/25905] New: [4.2 regression] ICE in expand_compound_operation schwab at suse dot de
                   ` (4 preceding siblings ...)
  2006-01-23  8:14 ` bonzini at gnu dot org
@ 2006-01-23  8:22 ` bonzini at gnu dot org
  2006-01-23  8:28 ` bonzini at gnu dot org
                   ` (5 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: bonzini at gnu dot org @ 2006-01-23  8:22 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from bonzini at gnu dot org  2006-01-23 08:22 -------
I cannot reproduce Paul's testcase, but I found this one:

struct object
{
      unsigned long mixed_encoding:1;
      unsigned long encoding:8;
}
__attribute__ ((packed));

int search_object (struct object *ob)
{
  return ob->encoding == 0x00;
}


-- 


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


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

* [Bug middle-end/25905] [4.2 regression] ICE in expand_compound_operation
  2006-01-21 23:24 [Bug middle-end/25905] New: [4.2 regression] ICE in expand_compound_operation schwab at suse dot de
                   ` (5 preceding siblings ...)
  2006-01-23  8:22 ` bonzini at gnu dot org
@ 2006-01-23  8:28 ` bonzini at gnu dot org
  2006-01-23  8:47 ` kkojima at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: bonzini at gnu dot org @ 2006-01-23  8:28 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from bonzini at gnu dot org  2006-01-23 08:28 -------
Uhm, expand has a bug and creates an invalid

(insn 11 7 12 2 (set (subreg:SI (reg:QI 33) 0)
        (zero_extract:SI (mem/s:QI (reg/v/f:SI 31 [ ob ]) [0 S1 A8])
            (const_int 8 [0x8])
            (const_int 1 [0x1]))) 354 {*m68k.md:4965} (insn_list:REG_DEP_TRUE 6
(nil))
    (expr_list:REG_DEAD (reg/v/f:SI 31 [ ob ])
        (nil)))


-- 


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


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

* [Bug middle-end/25905] [4.2 regression] ICE in expand_compound_operation
  2006-01-21 23:24 [Bug middle-end/25905] New: [4.2 regression] ICE in expand_compound_operation schwab at suse dot de
                   ` (6 preceding siblings ...)
  2006-01-23  8:28 ` bonzini at gnu dot org
@ 2006-01-23  8:47 ` kkojima at gcc dot gnu dot org
  2006-01-23 10:01 ` bonzini at gnu dot org
                   ` (3 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: kkojima at gcc dot gnu dot org @ 2006-01-23  8:47 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from kkojima at gcc dot gnu dot org  2006-01-23 08:47 -------
*** Bug 25919 has been marked as a duplicate of this bug. ***


-- 

kkojima at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kkojima at gcc dot gnu dot
                   |                            |org


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


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

* [Bug middle-end/25905] [4.2 regression] ICE in expand_compound_operation
  2006-01-21 23:24 [Bug middle-end/25905] New: [4.2 regression] ICE in expand_compound_operation schwab at suse dot de
                   ` (7 preceding siblings ...)
  2006-01-23  8:47 ` kkojima at gcc dot gnu dot org
@ 2006-01-23 10:01 ` bonzini at gnu dot org
  2006-01-23 20:42 ` joel at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: bonzini at gnu dot org @ 2006-01-23 10:01 UTC (permalink / raw)
  To: gcc-bugs



-- 

bonzini at gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |bonzini at gnu dot org
                   |dot org                     |
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2006-01-22 13:41:02         |2006-01-23 10:01:48
               date|                            |


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


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

* [Bug middle-end/25905] [4.2 regression] ICE in expand_compound_operation
  2006-01-21 23:24 [Bug middle-end/25905] New: [4.2 regression] ICE in expand_compound_operation schwab at suse dot de
                   ` (8 preceding siblings ...)
  2006-01-23 10:01 ` bonzini at gnu dot org
@ 2006-01-23 20:42 ` joel at gcc dot gnu dot org
  2006-01-24 14:29 ` bonzini at gcc dot gnu dot org
  2006-01-24 14:30 ` bonzini at gnu dot org
  11 siblings, 0 replies; 13+ messages in thread
From: joel at gcc dot gnu dot org @ 2006-01-23 20:42 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from joel at gcc dot gnu dot org  2006-01-23 20:42 -------
sh-rtems fails to build also.  Andrew thought it was related so I am adding
myself and this link to my failure post.

http://gcc.gnu.org/ml/gcc/2006-01/msg00869.html


-- 

joel at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |joel at gcc dot gnu dot org


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


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

* [Bug middle-end/25905] [4.2 regression] ICE in expand_compound_operation
  2006-01-21 23:24 [Bug middle-end/25905] New: [4.2 regression] ICE in expand_compound_operation schwab at suse dot de
                   ` (9 preceding siblings ...)
  2006-01-23 20:42 ` joel at gcc dot gnu dot org
@ 2006-01-24 14:29 ` bonzini at gcc dot gnu dot org
  2006-01-24 14:30 ` bonzini at gnu dot org
  11 siblings, 0 replies; 13+ messages in thread
From: bonzini at gcc dot gnu dot org @ 2006-01-24 14:29 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from bonzini at gnu dot org  2006-01-24 14:29 -------
Subject: Bug 25905

Author: bonzini
Date: Tue Jan 24 14:29:25 2006
New Revision: 110170

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=110170
Log:
2006-01-23  Paolo Bonzini  <bonzini@gnu.org>

        PR rtl-optimization/25890
        PR rtl-optimization/25905
        * combine.c (expand_compound_operation, expand_field_assignment):
        Fail if the bitfield's final position is out of bounds.


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


-- 


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


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

* [Bug middle-end/25905] [4.2 regression] ICE in expand_compound_operation
  2006-01-21 23:24 [Bug middle-end/25905] New: [4.2 regression] ICE in expand_compound_operation schwab at suse dot de
                   ` (10 preceding siblings ...)
  2006-01-24 14:29 ` bonzini at gcc dot gnu dot org
@ 2006-01-24 14:30 ` bonzini at gnu dot org
  11 siblings, 0 replies; 13+ messages in thread
From: bonzini at gnu dot org @ 2006-01-24 14:30 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #10 from bonzini at gnu dot org  2006-01-24 14:30 -------
Patch committed.


-- 

bonzini at gnu dot org changed:

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


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


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

end of thread, other threads:[~2006-01-24 14:30 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-21 23:24 [Bug middle-end/25905] New: [4.2 regression] ICE in expand_compound_operation schwab at suse dot de
2006-01-21 23:25 ` [Bug middle-end/25905] " schwab at suse dot de
2006-01-21 23:41 ` pinskia at gcc dot gnu dot org
2006-01-21 23:44 ` pinskia at gcc dot gnu dot org
2006-01-22 13:41 ` pbrook at gcc dot gnu dot org
2006-01-23  8:14 ` bonzini at gnu dot org
2006-01-23  8:22 ` bonzini at gnu dot org
2006-01-23  8:28 ` bonzini at gnu dot org
2006-01-23  8:47 ` kkojima at gcc dot gnu dot org
2006-01-23 10:01 ` bonzini at gnu dot org
2006-01-23 20:42 ` joel at gcc dot gnu dot org
2006-01-24 14:29 ` bonzini at gcc dot gnu dot org
2006-01-24 14:30 ` 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).