public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/18472] New: TREE_OPERAND (t, 1) is referenced for t being GOTO_EXPR
@ 2004-11-14  5:34 kazu at cs dot umass dot edu
  2004-11-14  5:46 ` [Bug tree-optimization/18472] " kazu at cs dot umass dot edu
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: kazu at cs dot umass dot edu @ 2004-11-14  5:34 UTC (permalink / raw)
  To: gcc-bugs

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


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

end of thread, other threads:[~2005-05-11 18:30 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-14  5:34 [Bug tree-optimization/18472] New: TREE_OPERAND (t, 1) is referenced for t being GOTO_EXPR kazu at cs dot umass dot edu
2004-11-14  5:46 ` [Bug tree-optimization/18472] " kazu at cs dot umass dot edu
2004-11-14 17:12 ` pinskia at gcc dot gnu dot org
2005-05-11 15:46 ` kazu at cs dot umass dot edu
2005-05-11 18:27 ` cvs-commit at gcc dot gnu dot org
2005-05-11 18:30 ` kazu at cs dot umass dot edu

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).