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]

fix middle-end/19486


Whee.  Incorrect conversion when we eliminated plain gotos from
the tree-cfg representation.


r~ 


        * tree-complex.c (expand_complex_div_wide): Set EDGE_FALLTHRU on
        edges leading to join block.

Index: tree-complex.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/tree-complex.c,v
retrieving revision 2.15
diff -u -p -d -r2.15 tree-complex.c
--- tree-complex.c	26 Nov 2004 03:55:03 -0000	2.15
+++ tree-complex.c	24 Jan 2005 02:28:38 -0000
@@ -212,8 +212,8 @@ expand_complex_div_wide (block_stmt_iter
       e->flags = EDGE_TRUE_VALUE;
       redirect_edge_succ (e, bb_true);
       make_edge (bb_cond, bb_false, EDGE_FALSE_VALUE);
-      make_edge (bb_true, bb_join, 0);
-      make_edge (bb_false, bb_join, 0);
+      make_edge (bb_true, bb_join, EDGE_FALLTHRU);
+      make_edge (bb_false, bb_join, EDGE_FALLTHRU);
 
       /* Update dominance info.  Note that bb_join's data was
          updated by split_block.  */


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