public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/40640]  New: ICE in set_value_range, at tree-vrp.c:383 [regression]
@ 2009-07-03 15:21 joel at gcc dot gnu dot org
  2009-07-03 15:25 ` [Bug c/40640] " joel at gcc dot gnu dot org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: joel at gcc dot gnu dot org @ 2009-07-03 15:21 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1978 bytes --]

gcc (GCC) 4.5.0 20090702 (experimental) [trunk revision 149195]

building gdb head as of today.  preprocessed file and coming in next update

gcc -c -g -O2 -DDEFAULT_INLINE=PSIM_INLINE_LOCALS    
-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN -DWITH_SMP=5        -DWITH_TRACE=1     
-DHAVE_TERMIOS_STRUCTURE -DHAVE_TERMIOS_CLINE -DHAVE_DEVZERO     -I.
-I/home/joel/test-gcc/gdb-cvs/src/sim/ppc
-I/home/joel/test-gcc/gdb-cvs/src/sim/ppc/../../include -I../../bfd
-I/home/joel/test-gcc/gdb-cvs/src/sim/ppc/../../bfd -I../../gdb
-I/home/joel/test-gcc/gdb-cvs/src/sim/ppc/../../gdb 
-I/home/joel/test-gcc/gdb-cvs/src/sim/ppc/../../gdb/config  -DHAVE_COMMON_FPU
-I../common -I/home/joel/test-gcc/gdb-cvs/src/sim/ppc/../common targ-map.c
gcc -c -g -O2 -DDEFAULT_INLINE=PSIM_INLINE_LOCALS    
-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN -DWITH_SMP=5        -DWITH_TRACE=1     
-DHAVE_TERMIOS_STRUCTURE -DHAVE_TERMIOS_CLINE -DHAVE_DEVZERO     -I.
-I/home/joel/test-gcc/gdb-cvs/src/sim/ppc
-I/home/joel/test-gcc/gdb-cvs/src/sim/ppc/../../include -I../../bfd
-I/home/joel/test-gcc/gdb-cvs/src/sim/ppc/../../bfd -I../../gdb
-I/home/joel/test-gcc/gdb-cvs/src/sim/ppc/../../gdb 
-I/home/joel/test-gcc/gdb-cvs/src/sim/ppc/../../gdb/config  -DHAVE_COMMON_FPU
-I../common -I/home/joel/test-gcc/gdb-cvs/src/sim/ppc/../common
/home/joel/test-gcc/gdb-cvs/src/sim/ppc/main.c
/home/joel/test-gcc/gdb-cvs/src/sim/ppc/hw_opic.c: In function
‘hw_opic_io_read_buffer’:
/home/joel/test-gcc/gdb-cvs/src/sim/ppc/hw_opic.c:1613:1: internal compiler
error: in set_value_range, at tree-vrp.c:383


-- 
           Summary: ICE in set_value_range, at tree-vrp.c:383 [regression]
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: joel at gcc dot gnu dot org
  GCC host triplet: i686-pc-linux-gnu


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


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

* [Bug c/40640] ICE in set_value_range, at tree-vrp.c:383 [regression]
  2009-07-03 15:21 [Bug c/40640] New: ICE in set_value_range, at tree-vrp.c:383 [regression] joel at gcc dot gnu dot org
@ 2009-07-03 15:25 ` joel at gcc dot gnu dot org
  2009-07-03 19:26 ` [Bug tree-optimization/40640] " rguenth at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: joel at gcc dot gnu dot org @ 2009-07-03 15:25 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from joel at gcc dot gnu dot org  2009-07-03 15:24 -------
Created an attachment (id=18135)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18135&action=view)
preprocessed test case (hw_opic.c

preprocessed version of gdb/sim/ppc/hw_opic.c

FAILS: gcc -O2 -c t.c 
PASSES: gcc -O1 -c t.c


-- 


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


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

* [Bug tree-optimization/40640] ICE in set_value_range, at tree-vrp.c:383 [regression]
  2009-07-03 15:21 [Bug c/40640] New: ICE in set_value_range, at tree-vrp.c:383 [regression] joel at gcc dot gnu dot org
  2009-07-03 15:25 ` [Bug c/40640] " joel at gcc dot gnu dot org
@ 2009-07-03 19:26 ` rguenth at gcc dot gnu dot org
  2009-07-03 19:42 ` [Bug tree-optimization/40640] [4.5 Regression] ICE in set_value_range, at tree-vrp.c:383 rguenth at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-07-03 19:26 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from rguenth at gcc dot gnu dot org  2009-07-03 19:26 -------
Reducing.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|c                           |tree-optimization


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


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

* [Bug tree-optimization/40640] [4.5 Regression] ICE in set_value_range, at tree-vrp.c:383
  2009-07-03 15:21 [Bug c/40640] New: ICE in set_value_range, at tree-vrp.c:383 [regression] joel at gcc dot gnu dot org
  2009-07-03 15:25 ` [Bug c/40640] " joel at gcc dot gnu dot org
  2009-07-03 19:26 ` [Bug tree-optimization/40640] " rguenth at gcc dot gnu dot org
@ 2009-07-03 19:42 ` rguenth at gcc dot gnu dot org
  2009-07-03 19:50 ` rguenth at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-07-03 19:42 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from rguenth at gcc dot gnu dot org  2009-07-03 19:42 -------
Confirmed.

enum { gcr0_8259_bit = 0x20000000, gcr0_reset_bit = 0x80000000 };
void decode_opic_address(int *);
void hw_opic_io_read_buffer(int index)
{
  unsigned reg = 0;
  decode_opic_address(&index);
  switch (index)
    {
    case 0:
      reg |= gcr0_8259_bit;
    }
  sim_io_printf_filtered2 (index, reg);
}


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
           Keywords|                            |ice-on-valid-code
      Known to work|                            |4.4.0
   Last reconfirmed|0000-00-00 00:00:00         |2009-07-03 19:42:25
               date|                            |
            Summary|ICE in set_value_range, at  |[4.5 Regression] ICE in
                   |tree-vrp.c:383 [regression] |set_value_range, at tree-
                   |                            |vrp.c:383
   Target Milestone|---                         |4.5.0


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


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

* [Bug tree-optimization/40640] [4.5 Regression] ICE in set_value_range, at tree-vrp.c:383
  2009-07-03 15:21 [Bug c/40640] New: ICE in set_value_range, at tree-vrp.c:383 [regression] joel at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2009-07-03 19:42 ` [Bug tree-optimization/40640] [4.5 Regression] ICE in set_value_range, at tree-vrp.c:383 rguenth at gcc dot gnu dot org
@ 2009-07-03 19:50 ` rguenth at gcc dot gnu dot org
  2009-07-03 20:05 ` rguenth at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-07-03 19:50 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from rguenth at gcc dot gnu dot org  2009-07-03 19:49 -------
switch-conversion triggers this, but it looks like a VRP issue after all. 
Mine.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |rguenth at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2009-07-03 19:42:25         |2009-07-03 19:49:58
               date|                            |


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


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

* [Bug tree-optimization/40640] [4.5 Regression] ICE in set_value_range, at tree-vrp.c:383
  2009-07-03 15:21 [Bug c/40640] New: ICE in set_value_range, at tree-vrp.c:383 [regression] joel at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2009-07-03 19:50 ` rguenth at gcc dot gnu dot org
@ 2009-07-03 20:05 ` rguenth at gcc dot gnu dot org
  2009-07-03 22:09 ` rguenth at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-07-03 20:05 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from rguenth at gcc dot gnu dot org  2009-07-03 20:04 -------
(gdb) call debug_tree (limit)
 <integer_cst 0xb7d5ac40 type <integer_type 0xb7d2aee0> constant 0>
(gdb) call vrp_val_is_max (limit)
$6 = 1 '\001'
(gdb) call vrp_val_is_min (limit)
$7 = 1 '\001'

err ...

(gdb) call debug_tree (0xb7d2aee0)
 <integer_type 0xb7d2aee0
    type <integer_type 0xb7ccd000 unsigned int public unsigned sizetype SI
        size <integer_cst 0xb7cbe4b4 constant 32>
        unit size <integer_cst 0xb7cbe2a0 constant 4>
        align 32 symtab 0 alias set -1 canonical type 0xb7ccd000 precision 32
min <integer_cst 0xb7cbe4d0 0> max <integer_cst 0xb7cbea64 -1>>
    public SI size <integer_cst 0xb7cbe4b4 32> unit size <integer_cst
0xb7cbe2a0 4>
    align 32 symtab 0 alias set -1 canonical type 0xb7d2aee0 precision 32 min
<integer_cst 0xb7cbe2bc 0> max <integer_cst 0xb7cbe2bc 0>>


hmm - single-valued integer subtypes.

I have a patch.


-- 


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


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

* [Bug tree-optimization/40640] [4.5 Regression] ICE in set_value_range, at tree-vrp.c:383
  2009-07-03 15:21 [Bug c/40640] New: ICE in set_value_range, at tree-vrp.c:383 [regression] joel at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2009-07-03 20:05 ` rguenth at gcc dot gnu dot org
@ 2009-07-03 22:09 ` rguenth at gcc dot gnu dot org
  2009-07-03 22:09 ` rguenth at gcc dot gnu dot org
  2009-07-04 16:10 ` hjl at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-07-03 22:09 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from rguenth at gcc dot gnu dot org  2009-07-03 22:09 -------
Fixed.


-- 

rguenth at gcc dot gnu dot org changed:

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


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


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

* [Bug tree-optimization/40640] [4.5 Regression] ICE in set_value_range, at tree-vrp.c:383
  2009-07-03 15:21 [Bug c/40640] New: ICE in set_value_range, at tree-vrp.c:383 [regression] joel at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2009-07-03 22:09 ` rguenth at gcc dot gnu dot org
@ 2009-07-03 22:09 ` rguenth at gcc dot gnu dot org
  2009-07-04 16:10 ` hjl at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-07-03 22:09 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from rguenth at gcc dot gnu dot org  2009-07-03 22:09 -------
Subject: Bug 40640

Author: rguenth
Date: Fri Jul  3 22:09:12 2009
New Revision: 149211

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=149211
Log:
2009-07-03  Richard Guenther  <rguenther@suse.de>

        PR tree-optimization/40640
        * tree-switch-conversion.c (build_arrays): Perform arithmetic
        in original type.

        * gcc.c-torture/compile/pr40640.c: New testcase.

Added:
    trunk/gcc/testsuite/gcc.c-torture/compile/pr40640.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-switch-conversion.c


-- 


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


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

* [Bug tree-optimization/40640] [4.5 Regression] ICE in set_value_range, at tree-vrp.c:383
  2009-07-03 15:21 [Bug c/40640] New: ICE in set_value_range, at tree-vrp.c:383 [regression] joel at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2009-07-03 22:09 ` rguenth at gcc dot gnu dot org
@ 2009-07-04 16:10 ` hjl at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: hjl at gcc dot gnu dot org @ 2009-07-04 16:10 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from hjl at gcc dot gnu dot org  2009-07-04 16:10 -------
Subject: Bug 40640

Author: hjl
Date: Sat Jul  4 16:10:28 2009
New Revision: 149231

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=149231
Log:
2009-07-04  H.J. Lu  <hongjiu.lu@intel.com>

        Backport from mainline:
        2009-07-03  Richard Guenther  <rguenther@suse.de>

        PR tree-optimization/40640
        * gcc.c-torture/compile/pr40640.c: New testcase.

Added:
    branches/gcc-4_4-branch/gcc/testsuite/gcc.c-torture/compile/pr40640.c
      - copied unchanged from r149230,
trunk/gcc/testsuite/gcc.c-torture/compile/pr40640.c
Modified:
    branches/gcc-4_4-branch/gcc/testsuite/ChangeLog


-- 


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


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

end of thread, other threads:[~2009-07-04 16:10 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-03 15:21 [Bug c/40640] New: ICE in set_value_range, at tree-vrp.c:383 [regression] joel at gcc dot gnu dot org
2009-07-03 15:25 ` [Bug c/40640] " joel at gcc dot gnu dot org
2009-07-03 19:26 ` [Bug tree-optimization/40640] " rguenth at gcc dot gnu dot org
2009-07-03 19:42 ` [Bug tree-optimization/40640] [4.5 Regression] ICE in set_value_range, at tree-vrp.c:383 rguenth at gcc dot gnu dot org
2009-07-03 19:50 ` rguenth at gcc dot gnu dot org
2009-07-03 20:05 ` rguenth at gcc dot gnu dot org
2009-07-03 22:09 ` rguenth at gcc dot gnu dot org
2009-07-03 22:09 ` rguenth at gcc dot gnu dot org
2009-07-04 16:10 ` hjl at gcc dot 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).