This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/25315] [4.2 regression] testsuite failure:27_io/basic_ostream/inserters_character/char/9555-oc.cc wchar_t/9555-oc.cc exec
- From: "amodra at bigpond dot net dot au" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Jan 2006 13:00:42 -0000
- Subject: [Bug tree-optimization/25315] [4.2 regression] testsuite failure:27_io/basic_ostream/inserters_character/char/9555-oc.cc wchar_t/9555-oc.cc exec
- References: <bug-25315-507@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #7 from amodra at bigpond dot net dot au 2006-01-22 13:00 -------
Dan Berlin suggested this patch on irc. (At least, this is how I remember the
sugestion..) Bootstrapped and reg tested powerpc64-linux. Cures the problem.
Index: gcc/tree-ssa-pre.c
===================================================================
--- gcc/tree-ssa-pre.c (revision 110074)
+++ gcc/tree-ssa-pre.c (working copy)
@@ -2745,6 +2745,8 @@ insert_extra_phis (basic_block block, ba
FOR_EACH_EDGE (e, ei, block->preds)
{
+ if (e->flags & EDGE_ABNORMAL)
+ return;
if (first)
{
bitmap_set_copy (tempset, AVAIL_OUT (e->src));
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25315