This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Regressions for gcc.c-torture/compile/961203-1.c gcc.dg/20020219-1.c on 64-x-32 with PR32563 sign/sizetype fix
- From: Hans-Peter Nilsson <hans-peter dot nilsson at axis dot com>
- To: rguenther at suse dot de
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Thu, 23 Aug 2007 13:05:37 +0200
- Subject: Regressions for gcc.c-torture/compile/961203-1.c gcc.dg/20020219-1.c on 64-x-32 with PR32563 sign/sizetype fix
> Date: Tue, 21 Aug 2007 13:59:16 +0200 (CEST)
> From: Richard Guenther <rguenther@suse.de>
> PR middle-end/32563
> * tree.c (host_integerp): Treat sizetype as signed as it is
> sign-extended.
> Index: tree.c
> ===================================================================
> *** tree.c (revision 127658)
> --- tree.c (working copy)
> *************** host_integerp (const_tree t, int pos)
> *** 4936,4942 ****
> && (HOST_WIDE_INT) TREE_INT_CST_LOW (t) >= 0)
> || (! pos && TREE_INT_CST_HIGH (t) == -1
> && (HOST_WIDE_INT) TREE_INT_CST_LOW (t) < 0
> ! && !TYPE_UNSIGNED (TREE_TYPE (t)))
> || (pos && TREE_INT_CST_HIGH (t) == 0)));
> }
>
> --- 4936,4943 ----
> && (HOST_WIDE_INT) TREE_INT_CST_LOW (t) >= 0)
> || (! pos && TREE_INT_CST_HIGH (t) == -1
> && (HOST_WIDE_INT) TREE_INT_CST_LOW (t) < 0
> ! && (!TYPE_UNSIGNED (TREE_TYPE (t))
> ! || TYPE_IS_SIZETYPE (TREE_TYPE (t))))
> || (pos && TREE_INT_CST_HIGH (t) == 0)));
> }
This patch (r127688) caused these regressions for cris-elf, when
hosted on amd64:
Running /tmp/hpautotest-gcc1/gcc/gcc/testsuite/gcc.c-torture/compile/compile.exp ...
FAIL: gcc.c-torture/compile/961203-1.c -O2 (internal compiler error)
FAIL: gcc.c-torture/compile/961203-1.c -O2 (test for excess errors)
FAIL: gcc.c-torture/compile/961203-1.c -O3 -fomit-frame-pointer (internal compiler error)
FAIL: gcc.c-torture/compile/961203-1.c -O3 -fomit-frame-pointer (test for excess errors)
FAIL: gcc.c-torture/compile/961203-1.c -O3 -g (internal compiler error)
FAIL: gcc.c-torture/compile/961203-1.c -O3 -g (test for excess errors)
FAIL: gcc.c-torture/compile/961203-1.c -Os (internal compiler error)
FAIL: gcc.c-torture/compile/961203-1.c -Os (test for excess errors)
...
Running /tmp/hpautotest-gcc1/gcc/gcc/testsuite/gcc.dg/dg.exp ...
FAIL: gcc.dg/20020219-1.c execution test
With this in gcc.log:
Executing on host: /tmp/hpautotest-gcc1/cris-elf/gccobj/gcc/xgcc -B/tmp/hpautotest-gcc1/cris-elf/gccobj/gcc/ -O2 -w -fno-show-column -c -isystem /tmp/hpautotest-gcc1/cris-elf/gccobj/cris-elf/./newlib/targ-include -isystem /tmp/hpautotest-gcc1/gcc/newlib/libc/include -o 961203-1.o /tmp/hpautotest-gcc1/gcc/gcc/testsuite/gcc.c-torture/compile/961203-1.c (timeout = 300)
/tmp/hpautotest-gcc1/gcc/gcc/testsuite/gcc.c-torture/compile/961203-1.c: In function 'main':
/tmp/hpautotest-gcc1/gcc/gcc/testsuite/gcc.c-torture/compile/961203-1.c:19: error: unrecognizable insn:
(insn 6 5 7 3 /tmp/hpautotest-gcc1/gcc/gcc/testsuite/gcc.c-torture/compile/961203-1.c:17 (set (reg:SI 30)
(const_int 2305843008979861504 [0x1ffffffff2100000])) -1 (nil))
/tmp/hpautotest-gcc1/gcc/gcc/testsuite/gcc.c-torture/compile/961203-1.c:19: internal compiler error: in extract_insn, at recog.c:1990
and:
core: 4 byte read to unmapped address 0xe00010d4 at 0x144
program stopped with signal 11.
FAIL: gcc.dg/20020219-1.c execution test
Perhaps an exposed bug; a host_integerp where there should have
been a target_integerp somewhere (well, you know what I mean)...
brgds, H-P