This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/25568] [4.2 regression] RTL checking bootstrap failure on i686-unknown-linux-gnu
- From: "graham dot stott at btinternet dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Dec 2005 15:58:29 -0000
- Subject: [Bug middle-end/25568] [4.2 regression] RTL checking bootstrap failure on i686-unknown-linux-gnu
- References: <bug-25568-578@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from graham dot stott at btinternet dot com 2005-12-26 15:58 -------
Subject: Re: New: [4.2 regression] RTL checking bootstrap
failure on i686-unknown-linux-gnu
ghazi at gcc dot gnu dot org wrote:
> I'm getting an RTL checking bootstrap failure on i686-unknown-linux-gnu. The
> bootstrap dies in stage2 like so:
>
> /home/ghazi/tmpdisk/gcc-testing/42/build/./prev-gcc/xgcc
> -B/home/ghazi/tmpdisk/gcc-testing/42/build/./prev-gcc/
> -B/usr/local/i686-pc-linux-gnu/bin/ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\"
> -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\"
> -DPACKAGE=\"zlib\" -DVERSION=\"1.1.4\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1
> -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1
> -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1
> -DHAVE_STDLIB_H=1 -DHAVE_UNISTD_H=1 -DHAVE_GETPAGESIZE=1 -DHAVE_MMAP=1
> -DHAVE_MEMCPY=1 -DHAVE_STRERROR=1 -DHAVE_UNISTD_H=1 -I.
> -I../../egcc-SVN20051225/zlib -O2 -g -fomit-frame-pointer -c -o
> libz_a-deflate.o `test -f 'deflate.c' || echo
> '../../egcc-SVN20051225/zlib/'`deflate.c
> ../../egcc-SVN20051225/zlib/deflate.c: In function 'deflateInit2_':
> ../../egcc-SVN20051225/zlib/deflate.c:312: internal compiler error: RTL check:
> expected code 'const_int', have 'const_double' in simplify_shift_const_1, at
> combine.c:8923
>
> This is a regression.
>
>
The follow patch should fixit
Index: combine.c
===================================================================
--- combine.c (revision 109050)
+++ combine.c (working copy)
@@ -8919,6 +8919,7 @@
&& (new = simplify_const_binary_operation (ASHIFT, result_mode,
XEXP (varop, 1),
GEN_INT (count))) !=
0
+ && GET_CODE (new) == CONST_INT
&& merge_outer_ops (&outer_op, &outer_const, PLUS,
INTVAL (new), result_mode, &complement_p))
{
@@ -8937,6 +8938,7 @@
&& (new = simplify_const_binary_operation (code, result_mode,
XEXP (varop, 1),
GEN_INT (count))) !=
0
+ && GET_CODE (new) == CONST_INT
&& merge_outer_ops (&outer_op, &outer_const, XOR,
INTVAL (new), result_mode, &complement_p))
{
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25568