This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[tree-ssa] THinko in yesterday's change


	* 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;



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]