public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/35869]  New: ICE in calc_dfs_tree at -O2 -gnatp after VRP optimization
@ 2008-04-08  9:25 ebotcazou at gcc dot gnu dot org
  2008-04-08  9:29 ` [Bug tree-optimization/35869] " ebotcazou at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2008-04-08  9:25 UTC (permalink / raw)
  To: gcc-bugs

The to-be-attached Ada testcase exhibits a problem with the switch statement
optimization recently added to VRP:

        PR tree-optimization/14495
        PR tree-optimization/34793
        * tree-vrp.c (struct switch_update): New structure.
        (to_remove_edges, to_update_switch_stmts): New VECs.
        (simplify_switch_using_ranges): New function.  Remove not taken
        case labels and edges.
        (simplify_stmt_using_ranges): Call it.
        (identify_jump_threads): Mark edges we have queued for removal
        so we don't thread them.
        (execute_vrp): Remove edges queued for removal, update SWITCH_STMT
        case label vector.
        * tree-cfg.c (group_case_labels): Deal with missing default label.
        (tree_verify_flow_info): Allow missing default label.
        * stmt.c (emit_case_bit_tests): Deal with NULL default_label.
        (emit_case_nodes): Likewise.
        (expand_case): Do not rely on the default label to be present.
        * expr.c (try_casesi): Deal with NULL default_label.
        (do_tablejump): Likewise.

Quick analysis posted at
  http://gcc.gnu.org/ml/gcc-patches/2008-04/msg00558.html


-- 
           Summary: ICE in calc_dfs_tree at -O2 -gnatp after VRP
                    optimization
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ebotcazou at gcc dot gnu dot org
GCC target triplet: i?86-*-*


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


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

* [Bug tree-optimization/35869] ICE in calc_dfs_tree at -O2 -gnatp after VRP optimization
  2008-04-08  9:25 [Bug tree-optimization/35869] New: ICE in calc_dfs_tree at -O2 -gnatp after VRP optimization ebotcazou at gcc dot gnu dot org
@ 2008-04-08  9:29 ` ebotcazou at gcc dot gnu dot org
  2008-04-08  9:57 ` rguenth at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2008-04-08  9:29 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from ebotcazou at gcc dot gnu dot org  2008-04-08 09:28 -------
Created an attachment (id=15446)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15446&action=view)
Testcase.

To be compiled at -O2 -gnatp for x86 targets.


-- 


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


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

* [Bug tree-optimization/35869] ICE in calc_dfs_tree at -O2 -gnatp after VRP optimization
  2008-04-08  9:25 [Bug tree-optimization/35869] New: ICE in calc_dfs_tree at -O2 -gnatp after VRP optimization ebotcazou at gcc dot gnu dot org
  2008-04-08  9:29 ` [Bug tree-optimization/35869] " ebotcazou at gcc dot gnu dot org
@ 2008-04-08  9:57 ` rguenth at gcc dot gnu dot org
  2008-04-10 10:32 ` rguenth at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-04-08  9:57 UTC (permalink / raw)
  To: gcc-bugs



-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|rguenther at suse dot de    |
         AssignedTo|unassigned at gcc dot gnu   |rguenth at gcc dot gnu dot
                   |dot org                     |org
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2008-04-08 09:56:22
               date|                            |


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


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

* [Bug tree-optimization/35869] ICE in calc_dfs_tree at -O2 -gnatp after VRP optimization
  2008-04-08  9:25 [Bug tree-optimization/35869] New: ICE in calc_dfs_tree at -O2 -gnatp after VRP optimization ebotcazou at gcc dot gnu dot org
  2008-04-08  9:29 ` [Bug tree-optimization/35869] " ebotcazou at gcc dot gnu dot org
  2008-04-08  9:57 ` rguenth at gcc dot gnu dot org
@ 2008-04-10 10:32 ` rguenth at gcc dot gnu dot org
  2008-04-11 14:15 ` rguenth at gcc dot gnu dot org
  2008-04-11 14:15 ` rguenth at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-04-10 10:32 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from rguenth at gcc dot gnu dot org  2008-04-10 10:31 -------
*** Bug 35894 has been marked as a duplicate of this bug. ***


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |marcus at jet dot franken
                   |                            |dot de


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


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

* [Bug tree-optimization/35869] ICE in calc_dfs_tree at -O2 -gnatp after VRP optimization
  2008-04-08  9:25 [Bug tree-optimization/35869] New: ICE in calc_dfs_tree at -O2 -gnatp after VRP optimization ebotcazou at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2008-04-11 14:15 ` rguenth at gcc dot gnu dot org
@ 2008-04-11 14:15 ` rguenth at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-04-11 14:15 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from rguenth at gcc dot gnu dot org  2008-04-11 14:14 -------
Subject: Bug 35869

Author: rguenth
Date: Fri Apr 11 14:14:04 2008
New Revision: 134197

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=134197
Log:
2008-04-11  Richard Guenther  <rguenther@suse.de>

        PR tree-optimization/35869
        * tree-vrp.c (execute_vrp): Move switch statement update after
        jump threading.  Schedule another cfg cleanup run.

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

Added:
    trunk/gcc/testsuite/gcc.c-torture/compile/pr35869.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-vrp.c


-- 


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


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

* [Bug tree-optimization/35869] ICE in calc_dfs_tree at -O2 -gnatp after VRP optimization
  2008-04-08  9:25 [Bug tree-optimization/35869] New: ICE in calc_dfs_tree at -O2 -gnatp after VRP optimization ebotcazou at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2008-04-10 10:32 ` rguenth at gcc dot gnu dot org
@ 2008-04-11 14:15 ` rguenth at gcc dot gnu dot org
  2008-04-11 14:15 ` rguenth at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-04-11 14:15 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from rguenth at gcc dot gnu dot org  2008-04-11 14:14 -------
Fixed.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.4.0


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


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

end of thread, other threads:[~2008-04-11 14:15 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-08  9:25 [Bug tree-optimization/35869] New: ICE in calc_dfs_tree at -O2 -gnatp after VRP optimization ebotcazou at gcc dot gnu dot org
2008-04-08  9:29 ` [Bug tree-optimization/35869] " ebotcazou at gcc dot gnu dot org
2008-04-08  9:57 ` rguenth at gcc dot gnu dot org
2008-04-10 10:32 ` rguenth at gcc dot gnu dot org
2008-04-11 14:15 ` rguenth at gcc dot gnu dot org
2008-04-11 14:15 ` rguenth 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).