* [Bug target/23454] [4.0 regression] ICE in invert_exp_1, at jump.c:1719
2005-08-18 7:56 [Bug target/23454] New: [4.0 regression] ICE in invert_exp_1, at jump.c:1719 debian-gcc at lists dot debian dot org
@ 2005-08-18 7:57 ` debian-gcc at lists dot debian dot org
2005-08-18 7:57 ` debian-gcc at lists dot debian dot org
` (8 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: debian-gcc at lists dot debian dot org @ 2005-08-18 7:57 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |ice-on-valid-code
Known to fail| |4.0.2
Known to work| |3.4.4 4.1.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23454
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug target/23454] [4.0 regression] ICE in invert_exp_1, at jump.c:1719
2005-08-18 7:56 [Bug target/23454] New: [4.0 regression] ICE in invert_exp_1, at jump.c:1719 debian-gcc at lists dot debian dot org
2005-08-18 7:57 ` [Bug target/23454] " debian-gcc at lists dot debian dot org
@ 2005-08-18 7:57 ` debian-gcc at lists dot debian dot org
2005-08-18 12:17 ` pinskia at gcc dot gnu dot org
` (7 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: debian-gcc at lists dot debian dot org @ 2005-08-18 7:57 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From debian-gcc at lists dot debian dot org 2005-08-18 07:57 -------
Created an attachment (id=9527)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=9527&action=view)
preprocessed source
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23454
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug target/23454] [4.0 regression] ICE in invert_exp_1, at jump.c:1719
2005-08-18 7:56 [Bug target/23454] New: [4.0 regression] ICE in invert_exp_1, at jump.c:1719 debian-gcc at lists dot debian dot org
2005-08-18 7:57 ` [Bug target/23454] " debian-gcc at lists dot debian dot org
2005-08-18 7:57 ` debian-gcc at lists dot debian dot org
@ 2005-08-18 12:17 ` pinskia at gcc dot gnu dot org
2005-08-18 12:32 ` pinskia at gcc dot gnu dot org
` (6 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-18 12:17 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |pinskia at gcc dot gnu dot
| |org
Target Milestone|--- |4.0.2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23454
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug target/23454] [4.0 regression] ICE in invert_exp_1, at jump.c:1719
2005-08-18 7:56 [Bug target/23454] New: [4.0 regression] ICE in invert_exp_1, at jump.c:1719 debian-gcc at lists dot debian dot org
` (2 preceding siblings ...)
2005-08-18 12:17 ` pinskia at gcc dot gnu dot org
@ 2005-08-18 12:32 ` pinskia at gcc dot gnu dot org
2005-08-18 12:34 ` [Bug rtl-optimization/23454] " pinskia at gcc dot gnu dot org
` (5 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-18 12:32 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-08-18 12:17 -------
This is most likely latent on the mainline.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23454
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug rtl-optimization/23454] [4.0 regression] ICE in invert_exp_1, at jump.c:1719
2005-08-18 7:56 [Bug target/23454] New: [4.0 regression] ICE in invert_exp_1, at jump.c:1719 debian-gcc at lists dot debian dot org
` (3 preceding siblings ...)
2005-08-18 12:32 ` pinskia at gcc dot gnu dot org
@ 2005-08-18 12:34 ` pinskia at gcc dot gnu dot org
2005-08-18 19:13 ` pinskia at gcc dot gnu dot org
` (4 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-18 12:34 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-08-18 12:32 -------
Here is the backtrace:
#0 fancy_abort (file=0x5e7648 "../../gcc/jump.c", line=1719, function=0x5e76ec "invert_exp_1") at ../
../gcc/diagnostic.c:556
#1 0x003a72d4 in invert_exp_1 (insn=0x2b8923c) at ../../gcc/jump.c:1719
#2 0x003a7308 in invert_exp (insn=0x2b8923c) at ../../gcc/jump.c:1730
#3 0x003a73f4 in invert_jump (jump=0x2b8923c, nlabel=0x2b985e8, delete_unused=1) at ../../gcc/
jump.c:1766
#4 0x00561f38 in relax_delay_slots (first=0x2b7e380) at ../../gcc/reorg.c:3404
#5 0x00562aac in dbr_schedule (first=0x2b7e380, file=0x0) at ../../gcc/reorg.c:3667
#6 0x00491f60 in rest_of_handle_delay_slots () at ../../gcc/passes.c:352
So this is rtl opt bug and not a target one. This is most likely also reproduciable on MIPS.
Reducing.
--
What |Removed |Added
----------------------------------------------------------------------------
Component|target |rtl-optimization
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23454
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug rtl-optimization/23454] [4.0 regression] ICE in invert_exp_1, at jump.c:1719
2005-08-18 7:56 [Bug target/23454] New: [4.0 regression] ICE in invert_exp_1, at jump.c:1719 debian-gcc at lists dot debian dot org
` (4 preceding siblings ...)
2005-08-18 12:34 ` [Bug rtl-optimization/23454] " pinskia at gcc dot gnu dot org
@ 2005-08-18 19:13 ` pinskia at gcc dot gnu dot org
2005-08-23 11:45 ` pinskia at gcc dot gnu dot org
` (3 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-18 19:13 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-08-18 18:10 -------
Confirmed, a reduced testcase:
void tree_insert();
int empty, nulls;
char found;
long long min_arg, max_arg;
static inline int compare_longlong(const long long s, const long long t) {
return ((s < t) ? -1 : s > t ? 1 : 0);
}
int num1();
int null_value;
void add(int room_in_tree)
{
long long num = num1();
if (null_value)
{
nulls++;
return;
}
if (num == 0)
empty++;
if (room_in_tree)
tree_insert();
if (!found)
found = 1;
else if (num != 0)
{
if (compare_longlong(num, min_arg) < 0)
min_arg = num;
if (compare_longlong(num, max_arg) > 0)
max_arg = num;
}
}
----
This one fails at -O2.
This also might fail on the mainline with -O2 -fno-tree-vrp.
Also this one might fail in 3.4.x also but I have not tested it there or on the mainline yet.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2005-08-18 18:10:45
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23454
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug rtl-optimization/23454] [4.0 regression] ICE in invert_exp_1, at jump.c:1719
2005-08-18 7:56 [Bug target/23454] New: [4.0 regression] ICE in invert_exp_1, at jump.c:1719 debian-gcc at lists dot debian dot org
` (5 preceding siblings ...)
2005-08-18 19:13 ` pinskia at gcc dot gnu dot org
@ 2005-08-23 11:45 ` pinskia at gcc dot gnu dot org
2005-09-03 18:50 ` cvs-commit at gcc dot gnu dot org
` (2 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-23 11:45 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-08-23 11:42 -------
*** Bug 23526 has been marked as a duplicate of this bug. ***
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |georg dot oppenberg at deu
| |dot mci dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23454
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug rtl-optimization/23454] [4.0 regression] ICE in invert_exp_1, at jump.c:1719
2005-08-18 7:56 [Bug target/23454] New: [4.0 regression] ICE in invert_exp_1, at jump.c:1719 debian-gcc at lists dot debian dot org
` (6 preceding siblings ...)
2005-08-23 11:45 ` pinskia at gcc dot gnu dot org
@ 2005-09-03 18:50 ` cvs-commit at gcc dot gnu dot org
2005-09-03 19:10 ` cvs-commit at gcc dot gnu dot org
2005-09-03 19:14 ` pinskia at gcc dot gnu dot org
9 siblings, 0 replies; 11+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-09-03 18:50 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-09-03 18:50 -------
Subject: Bug 23454
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: jakub@gcc.gnu.org 2005-09-03 18:49:52
Modified files:
gcc : ChangeLog reorg.c
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/g++.dg/opt: pr23454.C
Log message:
PR rtl-optimization/23454
* reorg.c (relax_delay_slots): Only call invert_jump if any_condjump_p
is true.
* g++.dg/opt/pr23454.C: New test.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.9890&r2=2.9891
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/reorg.c.diff?cvsroot=gcc&r1=1.110&r2=1.111
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.6000&r2=1.6001
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/opt/pr23454.C.diff?cvsroot=gcc&r1=NONE&r2=1.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23454
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug rtl-optimization/23454] [4.0 regression] ICE in invert_exp_1, at jump.c:1719
2005-08-18 7:56 [Bug target/23454] New: [4.0 regression] ICE in invert_exp_1, at jump.c:1719 debian-gcc at lists dot debian dot org
` (7 preceding siblings ...)
2005-09-03 18:50 ` cvs-commit at gcc dot gnu dot org
@ 2005-09-03 19:10 ` cvs-commit at gcc dot gnu dot org
2005-09-03 19:14 ` pinskia at gcc dot gnu dot org
9 siblings, 0 replies; 11+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-09-03 19:10 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-09-03 19:10 -------
Subject: Bug 23454
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-4_0-branch
Changes by: jakub@gcc.gnu.org 2005-09-03 19:09:59
Modified files:
gcc : ChangeLog reorg.c
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/g++.dg/opt: pr23454.C
Log message:
PR rtl-optimization/23454
* reorg.c (relax_delay_slots): Only call invert_jump if any_condjump_p
is true.
* g++.dg/opt/pr23454.C: New test.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=2.7592.2.408&r2=2.7592.2.409
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/reorg.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.104&r2=1.104.8.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.5084.2.370&r2=1.5084.2.371
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/opt/pr23454.C.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=NONE&r2=1.1.2.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23454
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug rtl-optimization/23454] [4.0 regression] ICE in invert_exp_1, at jump.c:1719
2005-08-18 7:56 [Bug target/23454] New: [4.0 regression] ICE in invert_exp_1, at jump.c:1719 debian-gcc at lists dot debian dot org
` (8 preceding siblings ...)
2005-09-03 19:10 ` cvs-commit at gcc dot gnu dot org
@ 2005-09-03 19:14 ` pinskia at gcc dot gnu dot org
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-09-03 19:14 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-09-03 19:14 -------
Fixed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23454
^ permalink raw reply [flat|nested] 11+ messages in thread