This is the mail archive of the gcc-bugs@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]

[Bug tree-optimization/15993] [lno] Compiler hangs at -O3


------- Additional Comments From rakdver at gcc dot gnu dot org  2004-06-15 23:22 -------
The following patch fixes the problem; I will commit it as obvious provided 
that it passes testing.

Index: tree-ssa-dom.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/tree-ssa-dom.c,v
retrieving revision 1.1.2.102.2.8
diff -c -3 -p -r1.1.2.102.2.8 tree-ssa-dom.c
*** tree-ssa-dom.c      14 Jun 2004 01:58:15 -0000      1.1.2.102.2.8
--- tree-ssa-dom.c      15 Jun 2004 23:19:33 -0000
*************** thread_across_edge (struct dom_walk_data
*** 931,937 ****
          edge taken_edge = find_taken_edge (e->dest, cached_lhs);
          basic_block dest = (taken_edge ? taken_edge->dest : NULL);

!         if (dest == e->src)
            return;

          /* If we have a known destination for the conditional, then
--- 931,937 ----
          edge taken_edge = find_taken_edge (e->dest, cached_lhs);
          basic_block dest = (taken_edge ? taken_edge->dest : NULL);

!         if (dest == e->dest)
            return;

          /* If we have a known destination for the conditional, then


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15993


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