public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/23433] New: ICE: tree check: expected real_cst, have integer_cst in const_binop, at fold-const.c:1512
@ 2005-08-17 7:09 micis at gmx dot de
2005-08-17 7:25 ` [Bug tree-optimization/23433] " micis at gmx dot de
` (9 more replies)
0 siblings, 10 replies; 11+ messages in thread
From: micis at gmx dot de @ 2005-08-17 7:09 UTC (permalink / raw)
To: gcc-bugs
When I compile qt334 with the actual snapshot of gcc41 (20050813) I get an ICE
with -O3 -funsafe-math-optimizations. This ICE is new, the snapshot from last
week is working.
Michael Cieslinski
g++41k -c -O3 -funsafe-math-optimizations -o gllandscape.o gllandscape.ii
opengl/gllandscape.cpp: In member function 'void
GLLandscape::calculateVertexNormals()':
opengl/gllandscape.cpp:457: internal compiler error: tree check: expected
real_cst, have integer_cst in const_binop, at fold-const.c:1512
Please submit a full bug report, with preprocessed source if appropriate.
g++41k -v
Using built-in specs.
Target: x86_64-unknown-linux-gnu
Configured with: ../gcc-4.1-20050813/configure --prefix=/usr/local/gcc41k --
program-suffix=41k --with-arch=opteron --enable-languages=c,c++ --enable-
checking
Thread model: posix
gcc version 4.1.0 20050813 (experimental)
--
Summary: ICE: tree check: expected real_cst, have integer_cst in
const_binop, at fold-const.c:1512
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: tree-optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: micis at gmx dot de
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: x86_64-unknown-linux-gnu
GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23433
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug tree-optimization/23433] ICE: tree check: expected real_cst, have integer_cst in const_binop, at fold-const.c:1512
2005-08-17 7:09 [Bug tree-optimization/23433] New: ICE: tree check: expected real_cst, have integer_cst in const_binop, at fold-const.c:1512 micis at gmx dot de
@ 2005-08-17 7:25 ` micis at gmx dot de
2005-08-17 10:38 ` belyshev at depni dot sinp dot msu dot ru
` (8 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: micis at gmx dot de @ 2005-08-17 7:25 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From micis at gmx dot de 2005-08-17 07:09 -------
Created an attachment (id=9510)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=9510&action=view)
preprocessed source
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23433
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug tree-optimization/23433] ICE: tree check: expected real_cst, have integer_cst in const_binop, at fold-const.c:1512
2005-08-17 7:09 [Bug tree-optimization/23433] New: ICE: tree check: expected real_cst, have integer_cst in const_binop, at fold-const.c:1512 micis at gmx dot de
2005-08-17 7:25 ` [Bug tree-optimization/23433] " micis at gmx dot de
@ 2005-08-17 10:38 ` belyshev at depni dot sinp dot msu dot ru
2005-08-17 10:48 ` micis at gmx dot de
` (7 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: belyshev at depni dot sinp dot msu dot ru @ 2005-08-17 10:38 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From belyshev at depni dot sinp dot msu dot ru 2005-08-17 10:21 -------
I could not reproduce this one, can you try current cvs HEAD ?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23433
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug tree-optimization/23433] ICE: tree check: expected real_cst, have integer_cst in const_binop, at fold-const.c:1512
2005-08-17 7:09 [Bug tree-optimization/23433] New: ICE: tree check: expected real_cst, have integer_cst in const_binop, at fold-const.c:1512 micis at gmx dot de
2005-08-17 7:25 ` [Bug tree-optimization/23433] " micis at gmx dot de
2005-08-17 10:38 ` belyshev at depni dot sinp dot msu dot ru
@ 2005-08-17 10:48 ` micis at gmx dot de
2005-08-17 11:30 ` reichelt at gcc dot gnu dot org
` (6 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: micis at gmx dot de @ 2005-08-17 10:48 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From micis at gmx dot de 2005-08-17 10:38 -------
Sorry I can't. I sit behind a firewall with only http/https enabled, ssh is
blocked.
Michael
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23433
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug tree-optimization/23433] ICE: tree check: expected real_cst, have integer_cst in const_binop, at fold-const.c:1512
2005-08-17 7:09 [Bug tree-optimization/23433] New: ICE: tree check: expected real_cst, have integer_cst in const_binop, at fold-const.c:1512 micis at gmx dot de
` (2 preceding siblings ...)
2005-08-17 10:48 ` micis at gmx dot de
@ 2005-08-17 11:30 ` reichelt at gcc dot gnu dot org
2005-08-17 16:06 ` micis at gmx dot de
` (5 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2005-08-17 11:30 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From reichelt at gcc dot gnu dot org 2005-08-17 11:23 -------
This is most probably a duplicate of PR23391.
So I'm closing it now.
You might want to test the patch there to see if it fixes your problem.
If it is not fixed, please reopen the bug.
*** This bug has been marked as a duplicate of 23391 ***
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |reichelt at gcc dot gnu dot
| |org
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23433
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug tree-optimization/23433] ICE: tree check: expected real_cst, have integer_cst in const_binop, at fold-const.c:1512
2005-08-17 7:09 [Bug tree-optimization/23433] New: ICE: tree check: expected real_cst, have integer_cst in const_binop, at fold-const.c:1512 micis at gmx dot de
` (3 preceding siblings ...)
2005-08-17 11:30 ` reichelt at gcc dot gnu dot org
@ 2005-08-17 16:06 ` micis at gmx dot de
2005-08-17 16:10 ` pinskia at gcc dot gnu dot org
` (4 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: micis at gmx dot de @ 2005-08-17 16:06 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From micis at gmx dot de 2005-08-17 15:59 -------
I reopen the bug because there is an other source file with the same ICE which
is not fixed by http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23391#c5
--
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |UNCONFIRMED
Resolution|DUPLICATE |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23433
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug tree-optimization/23433] ICE: tree check: expected real_cst, have integer_cst in const_binop, at fold-const.c:1512
2005-08-17 7:09 [Bug tree-optimization/23433] New: ICE: tree check: expected real_cst, have integer_cst in const_binop, at fold-const.c:1512 micis at gmx dot de
` (4 preceding siblings ...)
2005-08-17 16:06 ` micis at gmx dot de
@ 2005-08-17 16:10 ` pinskia at gcc dot gnu dot org
2005-08-17 16:28 ` [Bug tree-optimization/23433] [4.1 Regression] " 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-17 16:10 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-08-17 16:06 -------
Reducing.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23433
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug tree-optimization/23433] [4.1 Regression] ICE: tree check: expected real_cst, have integer_cst in const_binop, at fold-const.c:1512
2005-08-17 7:09 [Bug tree-optimization/23433] New: ICE: tree check: expected real_cst, have integer_cst in const_binop, at fold-const.c:1512 micis at gmx dot de
` (5 preceding siblings ...)
2005-08-17 16:10 ` pinskia at gcc dot gnu dot org
@ 2005-08-17 16:28 ` pinskia at gcc dot gnu dot org
2005-08-17 23:49 ` sebastian dot pop at cri dot ensmp dot fr
` (2 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-17 16:28 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-08-17 16:25 -------
Confirmed reduced testcase:
double transport_sumexp(int numexp)
{
int k,j;
double xk1 = 1.0;
for(k=1; k<=numexp;k++)
for(j=1;j<=3;j++)
xk1 += 1.0;
return xk1;
}
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |spop at gcc dot gnu dot org
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
GCC build triplet|x86_64-unknown-linux-gnu |
GCC host triplet|x86_64-unknown-linux-gnu |
GCC target triplet|x86_64-unknown-linux-gnu |
Keywords| |ice-on-valid-code
Last reconfirmed|0000-00-00 00:00:00 |2005-08-17 16:25:04
date| |
Summary|ICE: tree check: expected |[4.1 Regression] ICE: tree
|real_cst, have integer_cst |check: expected real_cst,
|in const_binop, at fold- |have integer_cst in
|const.c:1512 |const_binop, at fold-
| |const.c:1512
Target Milestone|--- |4.1.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23433
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug tree-optimization/23433] [4.1 Regression] ICE: tree check: expected real_cst, have integer_cst in const_binop, at fold-const.c:1512
2005-08-17 7:09 [Bug tree-optimization/23433] New: ICE: tree check: expected real_cst, have integer_cst in const_binop, at fold-const.c:1512 micis at gmx dot de
` (6 preceding siblings ...)
2005-08-17 16:28 ` [Bug tree-optimization/23433] [4.1 Regression] " pinskia at gcc dot gnu dot org
@ 2005-08-17 23:49 ` sebastian dot pop at cri dot ensmp dot fr
2005-08-21 11:06 ` cvs-commit at gcc dot gnu dot org
2005-08-21 14:53 ` pinskia at gcc dot gnu dot org
9 siblings, 0 replies; 11+ messages in thread
From: sebastian dot pop at cri dot ensmp dot fr @ 2005-08-17 23:49 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From sebastian dot pop at cri dot ensmp dot fr 2005-08-17 23:23 -------
Subject: Re: [4.1 Regression] ICE: tree check: expected real_cst, have integer_cst in const_binop, at fold-const.c:1512
I'm testing this patch on amd64 and i686. I will commit it once
validated.
Index: tree-chrec.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/tree-chrec.c,v
retrieving revision 2.24
diff -d -u -p -r2.24 tree-chrec.c
--- tree-chrec.c 15 Aug 2005 12:26:07 -0000 2.24
+++ tree-chrec.c 17 Aug 2005 23:01:09 -0000
@@ -539,6 +539,9 @@ chrec_apply (unsigned var,
if (dump_file && (dump_flags & TDF_DETAILS))
fprintf (dump_file, "(chrec_apply \n");
+ if (TREE_CODE (x) == INTEGER_CST && SCALAR_FLOAT_TYPE_P (type))
+ x = build_real_from_int_cst (type, x);
+
if (evolution_function_is_affine_p (chrec))
{
/* "{a, +, b} (x)" -> "a + b*x". */
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23433
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug tree-optimization/23433] [4.1 Regression] ICE: tree check: expected real_cst, have integer_cst in const_binop, at fold-const.c:1512
2005-08-17 7:09 [Bug tree-optimization/23433] New: ICE: tree check: expected real_cst, have integer_cst in const_binop, at fold-const.c:1512 micis at gmx dot de
` (7 preceding siblings ...)
2005-08-17 23:49 ` sebastian dot pop at cri dot ensmp dot fr
@ 2005-08-21 11:06 ` cvs-commit at gcc dot gnu dot org
2005-08-21 14:53 ` 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-08-21 11:06 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-08-21 10:59 -------
Subject: Bug 23433
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: spop@gcc.gnu.org 2005-08-21 10:59:15
Modified files:
gcc : ChangeLog tree-chrec.c
Added files:
gcc/testsuite/gcc.dg/tree-ssa: pr23433.c
Log message:
PR tree-optimization/23433
* tree-chrec.c (chrec_apply): Translate INTEGER_CST to a
REAL_CST when the type is SCALAR_FLOAT_TYPE_P.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.9793&r2=2.9794
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree-chrec.c.diff?cvsroot=gcc&r1=2.24&r2=2.25
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/tree-ssa/pr23433.c.diff?cvsroot=gcc&r1=NONE&r2=1.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23433
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug tree-optimization/23433] [4.1 Regression] ICE: tree check: expected real_cst, have integer_cst in const_binop, at fold-const.c:1512
2005-08-17 7:09 [Bug tree-optimization/23433] New: ICE: tree check: expected real_cst, have integer_cst in const_binop, at fold-const.c:1512 micis at gmx dot de
` (8 preceding siblings ...)
2005-08-21 11:06 ` cvs-commit at gcc dot gnu dot org
@ 2005-08-21 14:53 ` pinskia at gcc dot gnu dot org
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-21 14:53 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-08-21 14:53 -------
Fixed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23433
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2005-08-21 14:53 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-17 7:09 [Bug tree-optimization/23433] New: ICE: tree check: expected real_cst, have integer_cst in const_binop, at fold-const.c:1512 micis at gmx dot de
2005-08-17 7:25 ` [Bug tree-optimization/23433] " micis at gmx dot de
2005-08-17 10:38 ` belyshev at depni dot sinp dot msu dot ru
2005-08-17 10:48 ` micis at gmx dot de
2005-08-17 11:30 ` reichelt at gcc dot gnu dot org
2005-08-17 16:06 ` micis at gmx dot de
2005-08-17 16:10 ` pinskia at gcc dot gnu dot org
2005-08-17 16:28 ` [Bug tree-optimization/23433] [4.1 Regression] " pinskia at gcc dot gnu dot org
2005-08-17 23:49 ` sebastian dot pop at cri dot ensmp dot fr
2005-08-21 11:06 ` cvs-commit at gcc dot gnu dot org
2005-08-21 14:53 ` pinskia 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).