From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7792 invoked by alias); 17 Sep 2006 08:00:02 -0000 Received: (qmail 7233 invoked by uid 48); 17 Sep 2006 07:59:49 -0000 Date: Sun, 17 Sep 2006 08:00:00 -0000 Message-ID: <20060917075949.7232.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug tree-optimization/20514] hoisting of label out of jumptable would take place at cse, should happen at trees In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "pinskia at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2006-09/txt/msg01588.txt.bz2 List-Id: ------- Comment #5 from pinskia at gcc dot gnu dot org 2006-09-17 07:59 ------- (In reply to comment #2) > Two things, we just don't jump thread. The testcase mentioned in comment #2 is fixed but we still don't make an infinite loop for the orginal case: :; switch (i_lsm.25) { case 0 ... 1: goto ; case 2 ... 3: goto ; case 5: goto ; default : goto ; } :; i_lsm.25 = 4; goto (); ... Which is obvious an infinite loop but we still go through the switch every time. -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed|2006-01-21 03:00:56 |2006-09-17 07:59:49 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20514