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/25315] [4.2 regression] testsuite failure:27_io/basic_ostream/inserters_character/char/9555-oc.cc wchar_t/9555-oc.cc exec



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


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