summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1996-01-04 04:44:47 +0000
committerjkh <jkh@FreeBSD.org>1996-01-04 04:44:47 +0000
commit4a90ebf4b4bfc6836e6f3bbfa7634541c5f3a723 (patch)
treed1eca4cd2dc38d8c423e16c6dccd83eb76bfdaa6 /gnu/usr.bin
parentfe185d60f1131bfe94527978a828a6b886b27ae5 (diff)
downloadFreeBSD-src-4a90ebf4b4bfc6836e6f3bbfa7634541c5f3a723.zip
FreeBSD-src-4a90ebf4b4bfc6836e6f3bbfa7634541c5f3a723.tar.gz
Work around optimizer strength reduction bug.
Submitted by: Richard Henderson <richard@atheist.tamu.edu> Obtained from: bug-gcc@prep.ai.mit.edu
Diffstat (limited to 'gnu/usr.bin')
-rw-r--r--gnu/usr.bin/cc/cc_int/loop.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gnu/usr.bin/cc/cc_int/loop.c b/gnu/usr.bin/cc/cc_int/loop.c
index 73037ae..1e65cde 100644
--- a/gnu/usr.bin/cc/cc_int/loop.c
+++ b/gnu/usr.bin/cc/cc_int/loop.c
@@ -6079,6 +6079,10 @@ maybe_eliminate_biv_1 (x, insn, bl, eliminate_p, where)
else
break;
+#if 0 /* XXX patch to correct strength-reduction problem from
+ * Richard Henderson <richard@atheist.tamu.edu> incorporated
+ * 3 Jan 1996 - jkh@FreeBSD.org
+ */
if (CONSTANT_P (arg))
{
/* First try to replace with any giv that has constant positive
@@ -6224,6 +6228,7 @@ maybe_eliminate_biv_1 (x, insn, bl, eliminate_p, where)
}
#endif
}
+#endif
/* If we get here, the biv can't be eliminated. */
return 0;
OpenPOWER on IntegriCloud