From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16625 invoked by alias); 14 Nov 2004 05:34:27 -0000 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 Received: (qmail 16603 invoked by uid 48); 14 Nov 2004 05:34:22 -0000 Date: Sun, 14 Nov 2004 05:34:00 -0000 From: "kazu at cs dot umass dot edu" To: gcc-bugs@gcc.gnu.org Message-ID: <20041114053417.18472.kazu@cs.umass.edu> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug tree-optimization/18472] New: TREE_OPERAND (t, 1) is referenced for t being GOTO_EXPR X-Bugzilla-Reason: CC X-SW-Source: 2004-11/txt/msg01706.txt.bz2 List-Id: tree-if-conv.c:tree_if_convert_stmt uses TREE_OPERAND (t, 1) for t being GOTO_EXPR like so: case GOTO_EXPR: /* Unconditional goto */ add_to_predicate_list (bb_for_stmt (TREE_OPERAND (t, 1)), cond); bsi_remove (bsi); cond = NULL_TREE; break; GOTO_EXPR has only one operand, so TREE_OPERAND (t, 1) is wrong. Also, nonlocal gotos are represented using __builtin_nonlocal_goto, computed gotos are represented using GOTO_EXPR, and all other gotos are represented implicitly. I don't think the code there is designed to handle computed gotos, but I could be wrong. -- Summary: TREE_OPERAND (t, 1) is referenced for t being GOTO_EXPR Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P2 Component: tree-optimization AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: kazu at cs dot umass dot edu CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18472