public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/39041]  New: ICE on valid during vrp2
@ 2009-01-30 10:50 bernds_cb1 at t-online dot de
  2009-01-30 10:51 ` [Bug tree-optimization/39041] " bernds_cb1 at t-online dot de
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: bernds_cb1 at t-online dot de @ 2009-01-30 10:50 UTC (permalink / raw)
  To: gcc-bugs

The attached file causes an ICE with gcc-4.3.2 and gcc-4.3.3 on at least two
targets (ix86 Linux and Blackfin) when compiled with -O2.

bug.i: In function 'foo':
bug.i:18: internal compiler error: in get_addr_dereference_operands, at
tree-ssa-operands.c:1698

This happens during the vrp2 pass:

bernds@beaker /local/blackfin/b-4.3/gcc $ tail bug.i.115t.vrp2 
prephitmp.29_38: [0, 1]
SMT.36_57: VARYING



Substituing values and folding statements

Folded statement: pretmp.28_29 = *D.1312_16;
            into: pretmp.28_29 = *&cpumask.bits[0];


-- 
           Summary: ICE on valid during vrp2
           Product: gcc
           Version: 4.3.3
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: bernds_cb1 at t-online dot de
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


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


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

* [Bug tree-optimization/39041] ICE on valid during vrp2
  2009-01-30 10:50 [Bug tree-optimization/39041] New: ICE on valid during vrp2 bernds_cb1 at t-online dot de
@ 2009-01-30 10:51 ` bernds_cb1 at t-online dot de
  2009-01-30 13:39 ` rguenth at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: bernds_cb1 at t-online dot de @ 2009-01-30 10:51 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from bernds_cb1 at t-online dot de  2009-01-30 10:51 -------
Created an attachment (id=17212)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17212&action=view)
Testcase to reproduce the problem.


-- 


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


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

* [Bug tree-optimization/39041] ICE on valid during vrp2
  2009-01-30 10:50 [Bug tree-optimization/39041] New: ICE on valid during vrp2 bernds_cb1 at t-online dot de
  2009-01-30 10:51 ` [Bug tree-optimization/39041] " bernds_cb1 at t-online dot de
@ 2009-01-30 13:39 ` rguenth at gcc dot gnu dot org
  2009-01-30 13:47 ` [Bug tree-optimization/39041] [4.3 Regression] " 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-01-30 13:39 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from rguenth at gcc dot gnu dot org  2009-01-30 13:39 -------
Confirmed.  There's a type mismatch in the substituted statement:

pretmp.27_29 = *&cpumask.bits[0]

    arg 1 <indirect_ref 0x7ffff75267c0 type <integer_type 0x7ffff7e89540 int>

        arg 0 <addr_expr 0x7ffff752a180 type <pointer_type 0x7ffff7f71f00>
            constant invariant
            arg 0 <array_ref 0x7ffff7514730 type <integer_type 0x7ffff7e89600
unsigned int>

                arg 0 <component_ref 0x7ffff75147d0 type <array_type
0x7ffff7f71e40>
                    arg 0 <var_decl 0x7ffff7f3c8c0 cpumask> arg 1 <field_decl
0x7ffff7f3c820 bits>>
                arg 1 <integer_cst 0x7ffff7e79c00 constant invariant 0>>>>>

we have int and unsigned int.  The INDIRECT_REF has the wrong type.

forwprop causes this and creates

  int * a;
...
  a_15 = &cpumask.bits[D.1587_13];


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rguenth at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2009-01-30 13:39:10
               date|                            |


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


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

* [Bug tree-optimization/39041] [4.3 Regression] ICE on valid during vrp2
  2009-01-30 10:50 [Bug tree-optimization/39041] New: ICE on valid during vrp2 bernds_cb1 at t-online dot de
  2009-01-30 10:51 ` [Bug tree-optimization/39041] " bernds_cb1 at t-online dot de
  2009-01-30 13:39 ` rguenth at gcc dot gnu dot org
@ 2009-01-30 13:47 ` rguenth at gcc dot gnu dot org
  2009-01-30 13:47 ` [Bug tree-optimization/39041] " 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-01-30 13:47 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from rguenth at gcc dot gnu dot org  2009-01-30 13:47 -------
4.2 works, the problem is latent in 4.4


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-valid-code
      Known to work|                            |4.2.4
            Summary|ICE on valid during vrp2    |[4.3 Regression] ICE on
                   |                            |valid during vrp2
   Target Milestone|---                         |4.3.4


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


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

* [Bug tree-optimization/39041] ICE on valid during vrp2
  2009-01-30 10:50 [Bug tree-optimization/39041] New: ICE on valid during vrp2 bernds_cb1 at t-online dot de
                   ` (2 preceding siblings ...)
  2009-01-30 13:47 ` [Bug tree-optimization/39041] [4.3 Regression] " rguenth at gcc dot gnu dot org
@ 2009-01-30 13:47 ` rguenth at gcc dot gnu dot org
  2009-01-30 22:09 ` [Bug tree-optimization/39041] [4.3 Regression] " 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-01-30 13:47 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from rguenth at gcc dot gnu dot org  2009-01-30 13:46 -------
I have a patch.


-- 

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-01-30 13:39:10         |2009-01-30 13:46:55
               date|                            |


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


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

* [Bug tree-optimization/39041] [4.3 Regression] ICE on valid during vrp2
  2009-01-30 10:50 [Bug tree-optimization/39041] New: ICE on valid during vrp2 bernds_cb1 at t-online dot de
                   ` (3 preceding siblings ...)
  2009-01-30 13:47 ` [Bug tree-optimization/39041] " rguenth at gcc dot gnu dot org
@ 2009-01-30 22:09 ` rguenth at gcc dot gnu dot org
  2009-01-30 22:15 ` 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-01-30 22:09 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from rguenth at gcc dot gnu dot org  2009-01-30 22:09 -------
Subject: Bug 39041

Author: rguenth
Date: Fri Jan 30 22:09:15 2009
New Revision: 143808

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

        PR tree-optimization/39041
        * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
        Propagate variable indices only if the types match for this stmt.

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

Added:
    trunk/gcc/testsuite/gcc.c-torture/compile/pr39041.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-ssa-forwprop.c


-- 


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


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

* [Bug tree-optimization/39041] [4.3 Regression] ICE on valid during vrp2
  2009-01-30 10:50 [Bug tree-optimization/39041] New: ICE on valid during vrp2 bernds_cb1 at t-online dot de
                   ` (5 preceding siblings ...)
  2009-01-30 22:15 ` rguenth at gcc dot gnu dot org
@ 2009-01-30 22:15 ` rguenth at gcc dot gnu dot org
  2009-02-06  2:47 ` pinskia at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-01-30 22:15 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from rguenth at gcc dot gnu dot org  2009-01-30 22:14 -------
Subject: Bug 39041

Author: rguenth
Date: Fri Jan 30 22:14:39 2009
New Revision: 143809

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

        PR tree-optimization/39041
        * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
        Propagate variable indices only if the types match for this stmt.

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

Added:
    branches/gcc-4_3-branch/gcc/testsuite/gcc.c-torture/compile/pr39041.c
Modified:
    branches/gcc-4_3-branch/gcc/ChangeLog
    branches/gcc-4_3-branch/gcc/testsuite/ChangeLog
    branches/gcc-4_3-branch/gcc/tree-ssa-forwprop.c


-- 


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


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

* [Bug tree-optimization/39041] [4.3 Regression] ICE on valid during vrp2
  2009-01-30 10:50 [Bug tree-optimization/39041] New: ICE on valid during vrp2 bernds_cb1 at t-online dot de
                   ` (4 preceding siblings ...)
  2009-01-30 22:09 ` [Bug tree-optimization/39041] [4.3 Regression] " rguenth at gcc dot gnu dot org
@ 2009-01-30 22:15 ` rguenth at gcc dot gnu dot org
  2009-01-30 22:15 ` rguenth at gcc dot gnu dot org
  2009-02-06  2:47 ` pinskia at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-01-30 22:15 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from rguenth at gcc dot gnu dot org  2009-01-30 22:15 -------
Fixed.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
      Known to fail|                            |4.3.3
      Known to work|4.2.4                       |4.2.4 4.3.4 4.4.0
         Resolution|                            |FIXED


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


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

* [Bug tree-optimization/39041] [4.3 Regression] ICE on valid during vrp2
  2009-01-30 10:50 [Bug tree-optimization/39041] New: ICE on valid during vrp2 bernds_cb1 at t-online dot de
                   ` (6 preceding siblings ...)
  2009-01-30 22:15 ` rguenth at gcc dot gnu dot org
@ 2009-02-06  2:47 ` pinskia at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2009-02-06  2:47 UTC (permalink / raw)
  To: gcc-bugs



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|major                       |normal


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


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

end of thread, other threads:[~2009-02-06  2:47 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-30 10:50 [Bug tree-optimization/39041] New: ICE on valid during vrp2 bernds_cb1 at t-online dot de
2009-01-30 10:51 ` [Bug tree-optimization/39041] " bernds_cb1 at t-online dot de
2009-01-30 13:39 ` rguenth at gcc dot gnu dot org
2009-01-30 13:47 ` [Bug tree-optimization/39041] [4.3 Regression] " rguenth at gcc dot gnu dot org
2009-01-30 13:47 ` [Bug tree-optimization/39041] " rguenth at gcc dot gnu dot org
2009-01-30 22:09 ` [Bug tree-optimization/39041] [4.3 Regression] " rguenth at gcc dot gnu dot org
2009-01-30 22:15 ` rguenth at gcc dot gnu dot org
2009-01-30 22:15 ` rguenth at gcc dot gnu dot org
2009-02-06  2:47 ` pinskia 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).