This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: optimization/9768: [3.2 regression] [HP-PA] ICE when optimizing inline code at -O2
- From: Randolph Chung <randolph at tausq dot org>
- To: ebotcazou at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org,nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
- Date: Thu, 20 Feb 2003 09:09:32 -0800
- Subject: Re: optimization/9768: [3.2 regression] [HP-PA] ICE when optimizing inline code at -O2
- References: <20030220080137.5044.qmail@sources.redhat.com>
- Reply-to: Randolph Chung <randolph at tausq dot org>
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/