This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[tree-ssa] THinko in yesterday's change
- From: law at redhat dot com
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 23 Jan 2003 17:46:21 -0700
- Subject: [tree-ssa] THinko in yesterday's change
- Reply-to: law at redhat dot com
* tree-cfg.c (make_exit_edges): Fix thinkos.
Index: tree-cfg.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/Attic/tree-cfg.c,v
retrieving revision 1.1.4.46
diff -c -3 -p -r1.1.4.46 tree-cfg.c
*** tree-cfg.c 22 Jan 2003 23:20:14 -0000 1.1.4.46
--- tree-cfg.c 24 Jan 2003 00:39:02 -0000
*************** make_exit_edges (bb)
*** 555,564 ****
/* If this is potentially a nonlocal goto, then this should also
create an edge to the exit block. */
! if ((GOTO_DESTINATION (last) == LABEL_DECL
&& (decl_function_context (GOTO_DESTINATION (last))
!= current_function_decl))
! || (GOTO_DESTINATION (last) != LABEL_DECL
&& DECL_CONTEXT (current_function_decl)))
make_edge (bb, EXIT_BLOCK_PTR, EDGE_ABNORMAL);
break;
--- 555,564 ----
/* If this is potentially a nonlocal goto, then this should also
create an edge to the exit block. */
! if ((TREE_CODE (GOTO_DESTINATION (last)) == LABEL_DECL
&& (decl_function_context (GOTO_DESTINATION (last))
!= current_function_decl))
! || (TREE_CODE (GOTO_DESTINATION (last)) != LABEL_DECL
&& DECL_CONTEXT (current_function_decl)))
make_edge (bb, EXIT_BLOCK_PTR, EDGE_ABNORMAL);
break;