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]

Re: optimization/9768: [3.2 regression] [HP-PA] ICE when optimizing inline code at -O2


This patch "fixes" the problem, but I don't know if it's correct. 3.3
has a similar check

legolas[9:08] gcc% diff -u bb-reorder.c.orig bb-reorder.c
--- bb-reorder.c.orig   2003-02-20 09:04:47.000000000 -0800
+++ bb-reorder.c        2003-02-20 09:05:21.000000000 -0800
@@ -205,7 +205,7 @@
            e_taken = e;
        }

-      next = (taken ? e_taken : e_fall)->dest;
+      next = ((taken && e_taken) ? e_taken : e_fall)->dest;
     }

   /* In the absence of a prediction, disturb things as little as possible


-- 
Randolph Chung
Debian GNU/Linux Developer, hppa/ia64 ports
http://www.tausq.org/


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