public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/40669] [4.3/4.4/4.5 Regression] ICE in gimple_assign_set_rhs1 from eliminate_tail_call
2009-07-07 8:55 [Bug middle-end/40669] New: [4.3/4.4/4.5 Regression] ICE in gimple_assign_set_rhs1 from eliminate_tail_call jakub at gcc dot gnu dot org
@ 2009-07-07 8:55 ` jakub at gcc dot gnu dot org
2009-07-07 9:15 ` rguenth at gcc dot gnu dot org
` (9 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: jakub at gcc dot gnu dot org @ 2009-07-07 8:55 UTC (permalink / raw)
To: gcc-bugs
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.4.1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40669
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug middle-end/40669] New: [4.3/4.4/4.5 Regression] ICE in gimple_assign_set_rhs1 from eliminate_tail_call
@ 2009-07-07 8:55 jakub at gcc dot gnu dot org
2009-07-07 8:55 ` [Bug middle-end/40669] " jakub at gcc dot gnu dot org
` (10 more replies)
0 siblings, 11 replies; 12+ messages in thread
From: jakub at gcc dot gnu dot org @ 2009-07-07 8:55 UTC (permalink / raw)
To: gcc-bugs
double _Complex
test (int d, int t, double *x, double *y, double *z, int n,
double _Complex (*fnp) (double))
{
int m = n / 2;
double min = y[t], max = z[t], med = x[m * d + t];
double _Complex result = 0.0;
if (n == 0)
return 0.0;
if (min > med)
result += test (d, (t + 1) % d, x + (m + 1) * d, y, z, n - m - 1, fnp);
else if (max < med)
result += test (d, (t + 1) % d, x, y, z, m, fnp);
else
{
result += fnp (y[0] + x[m]);
result += test (d, (t + 1) % d, x + (m + 1) * d, y, z, n - m - 1, fnp);
}
return result;
}
ICEs at -O2 -ffast-math on x86_64-linux, in 4.4/4.5 with:
x.i: In function 'test':
x.i:22:1: internal compiler error: in gimple_assign_set_rhs1, at gimple.h:1683
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
and in 4.3 with:
x.i: In function 'test':
x.i:4: internal compiler error: in set_ssa_val_to, at tree-ssa-sccvn.c:1071
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
Compiles just fine with 4.1 and 4.2.
--
Summary: [4.3/4.4/4.5 Regression] ICE in gimple_assign_set_rhs1
from eliminate_tail_call
Product: gcc
Version: 4.4.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P3
Component: middle-end
AssignedTo: jakub at gcc dot gnu dot org
ReportedBy: jakub at gcc dot gnu dot org
GCC target triplet: x86_64-linux
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40669
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug middle-end/40669] [4.3/4.4/4.5 Regression] ICE in gimple_assign_set_rhs1 from eliminate_tail_call
2009-07-07 8:55 [Bug middle-end/40669] New: [4.3/4.4/4.5 Regression] ICE in gimple_assign_set_rhs1 from eliminate_tail_call jakub at gcc dot gnu dot org
2009-07-07 8:55 ` [Bug middle-end/40669] " jakub at gcc dot gnu dot org
@ 2009-07-07 9:15 ` rguenth at gcc dot gnu dot org
2009-07-07 9:23 ` rguenth at gcc dot gnu dot org
` (8 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-07-07 9:15 UTC (permalink / raw)
To: gcc-bugs
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1197 bytes --]
------- Comment #1 from rguenth at gcc dot gnu dot org 2009-07-07 09:15 -------
With my local 4.3 copy it prints
t.i: In function test:
t.i:22: error: PHI def is not a GIMPLE value
add_acc.0_64 = PHI <COMPLEX_EXPR <0.0, 0.0>(0), add_acc.0_60(7),
add_acc.0_64(6), add_acc.0_64(4)>
COMPLEX_EXPR <0.0, 0.0>;
t.i:22: error: invalid operand to binary operator
add_acc.0_64
t.i:22: error: invalid operand to binary operator
add_acc.0_64
t.i:22: internal compiler error: verify_stmts failed
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
which is because COMPLEX_EXPR <0.0, 0.0> should be COMPLEX_CST <0.0, 0.0> to
be valid. Didn't I fix that lately....
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2009-07-07 09:15:44
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40669
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug middle-end/40669] [4.3/4.4/4.5 Regression] ICE in gimple_assign_set_rhs1 from eliminate_tail_call
2009-07-07 8:55 [Bug middle-end/40669] New: [4.3/4.4/4.5 Regression] ICE in gimple_assign_set_rhs1 from eliminate_tail_call jakub at gcc dot gnu dot org
2009-07-07 8:55 ` [Bug middle-end/40669] " jakub at gcc dot gnu dot org
2009-07-07 9:15 ` rguenth at gcc dot gnu dot org
@ 2009-07-07 9:23 ` rguenth at gcc dot gnu dot org
2009-07-07 9:46 ` jakub at gcc dot gnu dot org
` (7 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-07-07 9:23 UTC (permalink / raw)
To: gcc-bugs
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 598 bytes --]
------- Comment #2 from rguenth at gcc dot gnu dot org 2009-07-07 09:23 -------
Yeah, PR40328. Then we are left with
t.i: In function test:
t.i:22: error: invalid operand to binary operator
add_acc.0_64
t.i:22: error: invalid operand to binary operator
add_acc.0_64
t.i:22: internal compiler error: verify_stmts failed
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
which means the decl doesn't have DECL_GIMPLE_REG_P set.
I'll take care of 4.3.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40669
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug middle-end/40669] [4.3/4.4/4.5 Regression] ICE in gimple_assign_set_rhs1 from eliminate_tail_call
2009-07-07 8:55 [Bug middle-end/40669] New: [4.3/4.4/4.5 Regression] ICE in gimple_assign_set_rhs1 from eliminate_tail_call jakub at gcc dot gnu dot org
` (2 preceding siblings ...)
2009-07-07 9:23 ` rguenth at gcc dot gnu dot org
@ 2009-07-07 9:46 ` jakub at gcc dot gnu dot org
2009-07-07 9:59 ` rguenth at gcc dot gnu dot org
` (6 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: jakub at gcc dot gnu dot org @ 2009-07-07 9:46 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from jakub at gcc dot gnu dot org 2009-07-07 09:46 -------
Created an attachment (id=18150)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18150&action=view)
gcc45-pr40669.patch
Patch I'm going to bootstrap/regtest.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40669
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug middle-end/40669] [4.3/4.4/4.5 Regression] ICE in gimple_assign_set_rhs1 from eliminate_tail_call
2009-07-07 8:55 [Bug middle-end/40669] New: [4.3/4.4/4.5 Regression] ICE in gimple_assign_set_rhs1 from eliminate_tail_call jakub at gcc dot gnu dot org
` (3 preceding siblings ...)
2009-07-07 9:46 ` jakub at gcc dot gnu dot org
@ 2009-07-07 9:59 ` rguenth at gcc dot gnu dot org
2009-07-07 10:01 ` rguenth at gcc dot gnu dot org
` (5 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-07-07 9:59 UTC (permalink / raw)
To: gcc-bugs
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |rguenth at gcc dot gnu dot
| |org
Status|NEW |ASSIGNED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40669
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug middle-end/40669] [4.3/4.4/4.5 Regression] ICE in gimple_assign_set_rhs1 from eliminate_tail_call
2009-07-07 8:55 [Bug middle-end/40669] New: [4.3/4.4/4.5 Regression] ICE in gimple_assign_set_rhs1 from eliminate_tail_call jakub at gcc dot gnu dot org
` (4 preceding siblings ...)
2009-07-07 9:59 ` rguenth at gcc dot gnu dot org
@ 2009-07-07 10:01 ` rguenth at gcc dot gnu dot org
2009-07-07 12:19 ` jakub at gcc dot gnu dot org
` (4 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-07-07 10:01 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from rguenth at gcc dot gnu dot org 2009-07-07 10:01 -------
4.4 will need a backport of PR40328 as well. Your attached patch is ok.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
BugsThisDependsOn| |40328
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40669
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug middle-end/40669] [4.3/4.4/4.5 Regression] ICE in gimple_assign_set_rhs1 from eliminate_tail_call
2009-07-07 8:55 [Bug middle-end/40669] New: [4.3/4.4/4.5 Regression] ICE in gimple_assign_set_rhs1 from eliminate_tail_call jakub at gcc dot gnu dot org
` (5 preceding siblings ...)
2009-07-07 10:01 ` rguenth at gcc dot gnu dot org
@ 2009-07-07 12:19 ` jakub at gcc dot gnu dot org
2009-07-07 12:45 ` rguenth at gcc dot gnu dot org
` (3 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: jakub at gcc dot gnu dot org @ 2009-07-07 12:19 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from jakub at gcc dot gnu dot org 2009-07-07 12:18 -------
Subject: Bug 40669
Author: jakub
Date: Tue Jul 7 12:18:38 2009
New Revision: 149319
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=149319
Log:
PR middle-end/40669
* tree-tailcall.c (adjust_return_value_with_ops,
create_tailcall_accumulator): Set DECL_GIMPLE_REG_P on the temporary
if it has complex or vector type.
* gcc.dg/pr40669.c: New test.
Added:
trunk/gcc/testsuite/gcc.dg/pr40669.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree-tailcall.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40669
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug middle-end/40669] [4.3/4.4/4.5 Regression] ICE in gimple_assign_set_rhs1 from eliminate_tail_call
2009-07-07 8:55 [Bug middle-end/40669] New: [4.3/4.4/4.5 Regression] ICE in gimple_assign_set_rhs1 from eliminate_tail_call jakub at gcc dot gnu dot org
` (6 preceding siblings ...)
2009-07-07 12:19 ` jakub at gcc dot gnu dot org
@ 2009-07-07 12:45 ` rguenth at gcc dot gnu dot org
2009-07-07 13:59 ` rguenth at gcc dot gnu dot org
` (2 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-07-07 12:45 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from rguenth at gcc dot gnu dot org 2009-07-07 12:44 -------
Subject: Bug 40669
Author: rguenth
Date: Tue Jul 7 12:44:32 2009
New Revision: 149321
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=149321
Log:
2009-07-07 Richard Guenther <rguenther@suse.de>
PR middle-end/40328
PR tree-optimization/40669
* tree-tailcall.c (adjust_accumulator_values): Properly
set DECL_GIMPLE_REG_P.
(adjust_return_value): Likewise.
(tree_optimize_tail_calls_1): Likewise.
* fold-const.c (fold_convert): Fold the built COMPLEX_EXPR.
* gcc.dg/pr40669.c: New testcase.
* gcc.dg/torture/pr40328.c: Likewise.
Added:
branches/gcc-4_3-branch/gcc/testsuite/gcc.dg/pr40669.c
branches/gcc-4_3-branch/gcc/testsuite/gcc.dg/torture/pr40328.c
Modified:
branches/gcc-4_3-branch/gcc/ChangeLog
branches/gcc-4_3-branch/gcc/fold-const.c
branches/gcc-4_3-branch/gcc/testsuite/ChangeLog
branches/gcc-4_3-branch/gcc/tree-tailcall.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40669
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug middle-end/40669] [4.3/4.4/4.5 Regression] ICE in gimple_assign_set_rhs1 from eliminate_tail_call
2009-07-07 8:55 [Bug middle-end/40669] New: [4.3/4.4/4.5 Regression] ICE in gimple_assign_set_rhs1 from eliminate_tail_call jakub at gcc dot gnu dot org
` (7 preceding siblings ...)
2009-07-07 12:45 ` rguenth at gcc dot gnu dot org
@ 2009-07-07 13:59 ` rguenth at gcc dot gnu dot org
2009-07-07 14:08 ` jakub at gcc dot gnu dot org
2009-07-07 14:09 ` jakub at gcc dot gnu dot org
10 siblings, 0 replies; 12+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-07-07 13:59 UTC (permalink / raw)
To: gcc-bugs
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to fail| |4.3.3 4.4.0
Known to work| |4.3.4 4.5.0
Target Milestone|4.4.1 |4.3.4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40669
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug middle-end/40669] [4.3/4.4/4.5 Regression] ICE in gimple_assign_set_rhs1 from eliminate_tail_call
2009-07-07 8:55 [Bug middle-end/40669] New: [4.3/4.4/4.5 Regression] ICE in gimple_assign_set_rhs1 from eliminate_tail_call jakub at gcc dot gnu dot org
` (8 preceding siblings ...)
2009-07-07 13:59 ` rguenth at gcc dot gnu dot org
@ 2009-07-07 14:08 ` jakub at gcc dot gnu dot org
2009-07-07 14:09 ` jakub at gcc dot gnu dot org
10 siblings, 0 replies; 12+ messages in thread
From: jakub at gcc dot gnu dot org @ 2009-07-07 14:08 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from jakub at gcc dot gnu dot org 2009-07-07 14:07 -------
Subject: Bug 40669
Author: jakub
Date: Tue Jul 7 14:07:19 2009
New Revision: 149329
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=149329
Log:
PR middle-end/40669
* tree-tailcall.c (adjust_return_value_with_ops,
create_tailcall_accumulator): Set DECL_GIMPLE_REG_P on the temporary
if it has complex or vector type.
Backport from mainline:
2009-06-03 Richard Guenther <rguenther@suse.de>
PR middle-end/40328
* fold-const.c (fold_convert): Fold the build COMPLEX_EXPR.
* gcc.dg/pr40669.c: New test.
Added:
branches/gcc-4_4-branch/gcc/testsuite/gcc.dg/pr40669.c
Modified:
branches/gcc-4_4-branch/gcc/ChangeLog
branches/gcc-4_4-branch/gcc/fold-const.c
branches/gcc-4_4-branch/gcc/testsuite/ChangeLog
branches/gcc-4_4-branch/gcc/tree-tailcall.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40669
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug middle-end/40669] [4.3/4.4/4.5 Regression] ICE in gimple_assign_set_rhs1 from eliminate_tail_call
2009-07-07 8:55 [Bug middle-end/40669] New: [4.3/4.4/4.5 Regression] ICE in gimple_assign_set_rhs1 from eliminate_tail_call jakub at gcc dot gnu dot org
` (9 preceding siblings ...)
2009-07-07 14:08 ` jakub at gcc dot gnu dot org
@ 2009-07-07 14:09 ` jakub at gcc dot gnu dot org
10 siblings, 0 replies; 12+ messages in thread
From: jakub at gcc dot gnu dot org @ 2009-07-07 14:09 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from jakub at gcc dot gnu dot org 2009-07-07 14:09 -------
Fixed.
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Known to work|4.3.4 4.5.0 |4.3.4 4.4.1 4.5.0
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40669
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2009-07-07 14:09 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-07 8:55 [Bug middle-end/40669] New: [4.3/4.4/4.5 Regression] ICE in gimple_assign_set_rhs1 from eliminate_tail_call jakub at gcc dot gnu dot org
2009-07-07 8:55 ` [Bug middle-end/40669] " jakub at gcc dot gnu dot org
2009-07-07 9:15 ` rguenth at gcc dot gnu dot org
2009-07-07 9:23 ` rguenth at gcc dot gnu dot org
2009-07-07 9:46 ` jakub at gcc dot gnu dot org
2009-07-07 9:59 ` rguenth at gcc dot gnu dot org
2009-07-07 10:01 ` rguenth at gcc dot gnu dot org
2009-07-07 12:19 ` jakub at gcc dot gnu dot org
2009-07-07 12:45 ` rguenth at gcc dot gnu dot org
2009-07-07 13:59 ` rguenth at gcc dot gnu dot org
2009-07-07 14:08 ` jakub at gcc dot gnu dot org
2009-07-07 14:09 ` jakub at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).