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/tree-profiling] Obvious fix to disband_implicit_edges


Hi,
bootstrapped/regtested i686-pc-gnu-linux on tree-profiling-branch.  I
will commit it as obvious to both branches once testing pass.

2004-02-19  Jan Hubicka  <jh@suse.cz>
	* tree-cfg.c (disband_implicit_edges): Set fallthru edges correctly.
Index: tree-cfg.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/Attic/tree-cfg.c,v
retrieving revision 1.1.4.269
diff -c -3 -p -r1.1.4.269 tree-cfg.c
*** tree-cfg.c	16 Feb 2004 12:35:58 -0000	1.1.4.269
--- tree-cfg.c	19 Feb 2004 21:53:05 -0000
*************** disband_implicit_edges (void)
*** 2291,2296 ****
--- 2291,2297 ----
  		COND_EXPR_ELSE (stmt) = build_empty_stmt ();
  	      else
  		abort ();
+ 	      e->flags |= EDGE_FALLTHRU;
  	    }
  
  	  continue;
*************** disband_implicit_edges (void)
*** 2341,2346 ****
--- 2342,2348 ----
        bsi_insert_after (&last,
  			build1 (GOTO_EXPR, void_type_node, label),
  			BSI_NEW_STMT);
+       e->flags &= ~EDGE_FALLTHRU;
      }
  
    factored_computed_goto = NULL;


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