public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/37379] New: ICE compiling aermod.f90 with -ffast-math -floop-block -O2 -fgraphite
@ 2008-09-04 22:17 howarth at nitro dot med dot uc dot edu
2008-09-04 22:22 ` [Bug fortran/37379] " howarth at nitro dot med dot uc dot edu
` (9 more replies)
0 siblings, 10 replies; 12+ messages in thread
From: howarth at nitro dot med dot uc dot edu @ 2008-09-04 22:17 UTC (permalink / raw)
To: gcc-bugs
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1149 bytes --]
When compiling the aermod.f90 from the Polyhedron 2005 benchmarks with gfortran
using either...
gfortran -ffast-math -floop-block -O2 -fgraphite aermod.f90
or
gfortran -ffast-math -O2 -floop-strip-mine -fgraphite aermod.f90
results in the compiler error...
aermod.f90: In function vrtcbl:
aermod.f90:14521: internal compiler error: in instantiate_scev_1, at
tree-scalar-evolution.c:2220
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
This error doesn't occur when the -ffast-math flag is not used.
--
Summary: ICE compiling aermod.f90 with -ffast-math -floop-block -
O2 -fgraphite
Product: gcc
Version: 4.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: howarth at nitro dot med dot uc dot edu
GCC build triplet: i686-apple-darwin9
GCC host triplet: i686-apple-darwin9
GCC target triplet: i686-apple-darwin9
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37379
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug fortran/37379] ICE compiling aermod.f90 with -ffast-math -floop-block -O2 -fgraphite
2008-09-04 22:17 [Bug fortran/37379] New: ICE compiling aermod.f90 with -ffast-math -floop-block -O2 -fgraphite howarth at nitro dot med dot uc dot edu
@ 2008-09-04 22:22 ` howarth at nitro dot med dot uc dot edu
2008-09-04 22:25 ` howarth at nitro dot med dot uc dot edu
` (8 subsequent siblings)
9 siblings, 0 replies; 12+ messages in thread
From: howarth at nitro dot med dot uc dot edu @ 2008-09-04 22:22 UTC (permalink / raw)
To: gcc-bugs
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 501 bytes --]
------- Comment #1 from howarth at nitro dot med dot uc dot edu 2008-09-04 22:21 -------
gfortran -funsafe-loop-optimizations -floop-block -O2 -fgraphite aermod.f90
...ICEs with...
aermod.f90: In function ocalc:
aermod.f90:8312: internal compiler error: in expand_scalar_variables_expr, at
graphite.c:3168
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37379
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug fortran/37379] ICE compiling aermod.f90 with -ffast-math -floop-block -O2 -fgraphite
2008-09-04 22:17 [Bug fortran/37379] New: ICE compiling aermod.f90 with -ffast-math -floop-block -O2 -fgraphite howarth at nitro dot med dot uc dot edu
2008-09-04 22:22 ` [Bug fortran/37379] " howarth at nitro dot med dot uc dot edu
@ 2008-09-04 22:25 ` howarth at nitro dot med dot uc dot edu
2008-09-04 22:28 ` howarth at nitro dot med dot uc dot edu
` (7 subsequent siblings)
9 siblings, 0 replies; 12+ messages in thread
From: howarth at nitro dot med dot uc dot edu @ 2008-09-04 22:25 UTC (permalink / raw)
To: gcc-bugs
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 492 bytes --]
------- Comment #2 from howarth at nitro dot med dot uc dot edu 2008-09-04 22:23 -------
gfortran -fno-trapping-math -floop-block -O2 -fgraphite aermod.f90
...ICEs with...
aermod.f90: In function ocalc:
aermod.f90:8312: internal compiler error: in expand_scalar_variables_expr, at
graphite.c:3168
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37379
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug fortran/37379] ICE compiling aermod.f90 with -ffast-math -floop-block -O2 -fgraphite
2008-09-04 22:17 [Bug fortran/37379] New: ICE compiling aermod.f90 with -ffast-math -floop-block -O2 -fgraphite howarth at nitro dot med dot uc dot edu
2008-09-04 22:22 ` [Bug fortran/37379] " howarth at nitro dot med dot uc dot edu
2008-09-04 22:25 ` howarth at nitro dot med dot uc dot edu
@ 2008-09-04 22:28 ` howarth at nitro dot med dot uc dot edu
2008-09-04 22:32 ` howarth at nitro dot med dot uc dot edu
` (6 subsequent siblings)
9 siblings, 0 replies; 12+ messages in thread
From: howarth at nitro dot med dot uc dot edu @ 2008-09-04 22:28 UTC (permalink / raw)
To: gcc-bugs
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 491 bytes --]
------- Comment #3 from howarth at nitro dot med dot uc dot edu 2008-09-04 22:27 -------
gfortran -fno-signed-zeros -floop-block -O2 -fgraphite aermod.f90
...ICEs with...
aermod.f90: In function ocalc:
aermod.f90:8312: internal compiler error: in expand_scalar_variables_expr, at
graphite.c:3168
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37379
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug fortran/37379] ICE compiling aermod.f90 with -ffast-math -floop-block -O2 -fgraphite
2008-09-04 22:17 [Bug fortran/37379] New: ICE compiling aermod.f90 with -ffast-math -floop-block -O2 -fgraphite howarth at nitro dot med dot uc dot edu
` (2 preceding siblings ...)
2008-09-04 22:28 ` howarth at nitro dot med dot uc dot edu
@ 2008-09-04 22:32 ` howarth at nitro dot med dot uc dot edu
2008-09-04 22:34 ` howarth at nitro dot med dot uc dot edu
` (5 subsequent siblings)
9 siblings, 0 replies; 12+ messages in thread
From: howarth at nitro dot med dot uc dot edu @ 2008-09-04 22:32 UTC (permalink / raw)
To: gcc-bugs
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 492 bytes --]
------- Comment #4 from howarth at nitro dot med dot uc dot edu 2008-09-04 22:31 -------
gfortran -fassociative-math -floop-block -O2 -fgraphite aermod.f90
...ICEs with...
aermod.f90: In function ocalc:
aermod.f90:8312: internal compiler error: in expand_scalar_variables_expr, at
graphite.c:3168
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37379
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug fortran/37379] ICE compiling aermod.f90 with -ffast-math -floop-block -O2 -fgraphite
2008-09-04 22:17 [Bug fortran/37379] New: ICE compiling aermod.f90 with -ffast-math -floop-block -O2 -fgraphite howarth at nitro dot med dot uc dot edu
` (3 preceding siblings ...)
2008-09-04 22:32 ` howarth at nitro dot med dot uc dot edu
@ 2008-09-04 22:34 ` howarth at nitro dot med dot uc dot edu
2008-09-05 5:50 ` [Bug middle-end/37379] [graphite] " spop at gcc dot gnu dot org
` (4 subsequent siblings)
9 siblings, 0 replies; 12+ messages in thread
From: howarth at nitro dot med dot uc dot edu @ 2008-09-04 22:34 UTC (permalink / raw)
To: gcc-bugs
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 491 bytes --]
------- Comment #5 from howarth at nitro dot med dot uc dot edu 2008-09-04 22:33 -------
gfortran -freciprocal-math -floop-block -O2 -fgraphite aermod.f90
...ICEs with...
aermod.f90: In function ocalc:
aermod.f90:8312: internal compiler error: in expand_scalar_variables_expr, at
graphite.c:3168
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37379
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug middle-end/37379] [graphite] ICE compiling aermod.f90 with -ffast-math -floop-block -O2 -fgraphite
2008-09-04 22:17 [Bug fortran/37379] New: ICE compiling aermod.f90 with -ffast-math -floop-block -O2 -fgraphite howarth at nitro dot med dot uc dot edu
` (4 preceding siblings ...)
2008-09-04 22:34 ` howarth at nitro dot med dot uc dot edu
@ 2008-09-05 5:50 ` spop at gcc dot gnu dot org
2008-11-07 5:21 ` Sebastian Pop
2008-11-07 5:22 ` sebpop at gmail dot com
` (3 subsequent siblings)
9 siblings, 1 reply; 12+ messages in thread
From: spop at gcc dot gnu dot org @ 2008-09-05 5:50 UTC (permalink / raw)
To: gcc-bugs
--
spop 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 |2008-09-05 05:49:01
date| |
Summary|ICE compiling aermod.f90 |[graphite] ICE compiling
|with -ffast-math -floop- |aermod.f90 with -ffast-math
|block -O2 -fgraphite |-floop-block -O2 -fgraphite
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37379
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [Bug middle-end/37379] [graphite] ICE compiling aermod.f90 with -ffast-math -floop-block -O2 -fgraphite
2008-09-05 5:50 ` [Bug middle-end/37379] [graphite] " spop at gcc dot gnu dot org
@ 2008-11-07 5:21 ` Sebastian Pop
0 siblings, 0 replies; 12+ messages in thread
From: Sebastian Pop @ 2008-11-07 5:21 UTC (permalink / raw)
To: gcc-bugzilla; +Cc: gcc-bugs
Hi,
For the first part of the bug:
> aermod.f90:14521: internal compiler error: in instantiate_scev_1, at
> tree-scalar-evolution.c:2220
the bug was introduced by an automatic rewrite arount TREE_CODE_LENGTH
http://gcc.gnu.org/viewcvs?view=rev&revision=122018
The fix avoids the gcc_assert by returning "unknown scalar evolution".
The second part of the bug was already fixed:
> aermod.f90:8312: internal compiler error: in expand_scalar_variables_expr, at
> graphite.c:3168
I will apply the patch below once it finishes regstrap.
Sebastian
Index: tree-scalar-evolution.c
===================================================================
--- tree-scalar-evolution.c (revision 141661)
+++ tree-scalar-evolution.c (working copy)
@@ -2213,7 +2213,9 @@ instantiate_scev_1 (basic_block instanti
break;
}
- gcc_assert (!VL_EXP_CLASS_P (chrec));
+ if (VL_EXP_CLASS_P (chrec))
+ return chrec_dont_know;
+
switch (TREE_CODE_LENGTH (TREE_CODE (chrec)))
{
case 3:
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug middle-end/37379] [graphite] ICE compiling aermod.f90 with -ffast-math -floop-block -O2 -fgraphite
2008-09-04 22:17 [Bug fortran/37379] New: ICE compiling aermod.f90 with -ffast-math -floop-block -O2 -fgraphite howarth at nitro dot med dot uc dot edu
` (5 preceding siblings ...)
2008-09-05 5:50 ` [Bug middle-end/37379] [graphite] " spop at gcc dot gnu dot org
@ 2008-11-07 5:22 ` sebpop at gmail dot com
2008-11-07 5:23 ` spop at gcc dot gnu dot org
` (2 subsequent siblings)
9 siblings, 0 replies; 12+ messages in thread
From: sebpop at gmail dot com @ 2008-11-07 5:22 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from sebpop at gmail dot com 2008-11-07 05:21 -------
Subject: Re: [graphite] ICE compiling aermod.f90 with -ffast-math -floop-block
-O2 -fgraphite
Hi,
For the first part of the bug:
> aermod.f90:14521: internal compiler error: in instantiate_scev_1, at
> tree-scalar-evolution.c:2220
the bug was introduced by an automatic rewrite arount TREE_CODE_LENGTH
http://gcc.gnu.org/viewcvs?view=rev&revision=122018
The fix avoids the gcc_assert by returning "unknown scalar evolution".
The second part of the bug was already fixed:
> aermod.f90:8312: internal compiler error: in expand_scalar_variables_expr, at
> graphite.c:3168
I will apply the patch below once it finishes regstrap.
Sebastian
Index: tree-scalar-evolution.c
===================================================================
--- tree-scalar-evolution.c (revision 141661)
+++ tree-scalar-evolution.c (working copy)
@@ -2213,7 +2213,9 @@ instantiate_scev_1 (basic_block instanti
break;
}
- gcc_assert (!VL_EXP_CLASS_P (chrec));
+ if (VL_EXP_CLASS_P (chrec))
+ return chrec_dont_know;
+
switch (TREE_CODE_LENGTH (TREE_CODE (chrec)))
{
case 3:
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37379
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug middle-end/37379] [graphite] ICE compiling aermod.f90 with -ffast-math -floop-block -O2 -fgraphite
2008-09-04 22:17 [Bug fortran/37379] New: ICE compiling aermod.f90 with -ffast-math -floop-block -O2 -fgraphite howarth at nitro dot med dot uc dot edu
` (6 preceding siblings ...)
2008-11-07 5:22 ` sebpop at gmail dot com
@ 2008-11-07 5:23 ` spop at gcc dot gnu dot org
2008-11-07 18:04 ` spop at gcc dot gnu dot org
2008-11-07 18:05 ` spop at gcc dot gnu dot org
9 siblings, 0 replies; 12+ messages in thread
From: spop at gcc dot gnu dot org @ 2008-11-07 5:23 UTC (permalink / raw)
To: gcc-bugs
--
spop at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |spop at gcc dot gnu dot org
|dot org |
Status|NEW |ASSIGNED
Last reconfirmed|2008-09-05 05:49:01 |2008-11-07 05:22:17
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37379
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug middle-end/37379] [graphite] ICE compiling aermod.f90 with -ffast-math -floop-block -O2 -fgraphite
2008-09-04 22:17 [Bug fortran/37379] New: ICE compiling aermod.f90 with -ffast-math -floop-block -O2 -fgraphite howarth at nitro dot med dot uc dot edu
` (7 preceding siblings ...)
2008-11-07 5:23 ` spop at gcc dot gnu dot org
@ 2008-11-07 18:04 ` spop at gcc dot gnu dot org
2008-11-07 18:05 ` spop at gcc dot gnu dot org
9 siblings, 0 replies; 12+ messages in thread
From: spop at gcc dot gnu dot org @ 2008-11-07 18:04 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from spop at gcc dot gnu dot org 2008-11-07 18:03 -------
Fixed.
--
spop at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37379
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug middle-end/37379] [graphite] ICE compiling aermod.f90 with -ffast-math -floop-block -O2 -fgraphite
2008-09-04 22:17 [Bug fortran/37379] New: ICE compiling aermod.f90 with -ffast-math -floop-block -O2 -fgraphite howarth at nitro dot med dot uc dot edu
` (8 preceding siblings ...)
2008-11-07 18:04 ` spop at gcc dot gnu dot org
@ 2008-11-07 18:05 ` spop at gcc dot gnu dot org
9 siblings, 0 replies; 12+ messages in thread
From: spop at gcc dot gnu dot org @ 2008-11-07 18:05 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from spop at gcc dot gnu dot org 2008-11-07 18:04 -------
Subject: Bug 37379
Author: spop
Date: Fri Nov 7 18:03:04 2008
New Revision: 141682
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=141682
Log:
2008-11-07 Sebastian Pop <sebastian.pop@amd.com>
PR middle-end/37379
* tree-scalar-evolution.c (instantiate_scev_1): Return
chrec_dont_know for VL_EXP_CLASS_P.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/tree-scalar-evolution.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37379
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2008-11-07 18:05 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-09-04 22:17 [Bug fortran/37379] New: ICE compiling aermod.f90 with -ffast-math -floop-block -O2 -fgraphite howarth at nitro dot med dot uc dot edu
2008-09-04 22:22 ` [Bug fortran/37379] " howarth at nitro dot med dot uc dot edu
2008-09-04 22:25 ` howarth at nitro dot med dot uc dot edu
2008-09-04 22:28 ` howarth at nitro dot med dot uc dot edu
2008-09-04 22:32 ` howarth at nitro dot med dot uc dot edu
2008-09-04 22:34 ` howarth at nitro dot med dot uc dot edu
2008-09-05 5:50 ` [Bug middle-end/37379] [graphite] " spop at gcc dot gnu dot org
2008-11-07 5:21 ` Sebastian Pop
2008-11-07 5:22 ` sebpop at gmail dot com
2008-11-07 5:23 ` spop at gcc dot gnu dot org
2008-11-07 18:04 ` spop at gcc dot gnu dot org
2008-11-07 18:05 ` spop 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).