* [Bug fortran/26444] gfortran does not compile cp2k
2006-02-23 15:45 [Bug fortran/26444] New: gfortran does not compile cp2k jv244 at cam dot ac dot uk
@ 2006-02-23 15:55 ` jv244 at cam dot ac dot uk
2006-02-23 18:37 ` jb at gcc dot gnu dot org
` (12 subsequent siblings)
13 siblings, 0 replies; 16+ messages in thread
From: jv244 at cam dot ac dot uk @ 2006-02-23 15:55 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from jv244 at cam dot ac dot uk 2006-02-23 15:55 -------
Ok, bugzilla kindly doesn't allow to attach anything more than 1Mb. If any of
the bugmasters can provide permanent space for a ~5Mb file (compressed) they
can write me.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26444
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug fortran/26444] gfortran does not compile cp2k
2006-02-23 15:45 [Bug fortran/26444] New: gfortran does not compile cp2k jv244 at cam dot ac dot uk
2006-02-23 15:55 ` [Bug fortran/26444] " jv244 at cam dot ac dot uk
@ 2006-02-23 18:37 ` jb at gcc dot gnu dot org
2006-02-23 19:25 ` Daniel Berlin
2006-02-23 18:56 ` jv244 at cam dot ac dot uk
` (11 subsequent siblings)
13 siblings, 1 reply; 16+ messages in thread
From: jb at gcc dot gnu dot org @ 2006-02-23 18:37 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from jb at gcc dot gnu dot org 2006-02-23 18:37 -------
I have the current CVS of cp2k, it fails with
gfortran -c -O3 -g -ffast-math -fomit-frame-pointer message_passing.f90
...
message_passing.f90: In function 'mp_perf_env_create':
message_passing.f90:58: internal compiler error: in add_virtual_operand, at
tree-ssa-operands.c:1867
Confirmed.
And yes, it seems cp2k is a good testsuite for modern Fortran features.
--
jb 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 |2006-02-23 18:37:53
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26444
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [Bug fortran/26444] gfortran does not compile cp2k
2006-02-23 18:37 ` jb at gcc dot gnu dot org
@ 2006-02-23 19:25 ` Daniel Berlin
0 siblings, 0 replies; 16+ messages in thread
From: Daniel Berlin @ 2006-02-23 19:25 UTC (permalink / raw)
To: gcc-bugzilla; +Cc: gcc-bugs
On Thu, 2006-02-23 at 18:37 +0000, jb at gcc dot gnu dot org wrote:
>
> ------- Comment #2 from jb at gcc dot gnu dot org 2006-02-23 18:37 -------
> I have the current CVS of cp2k, it fails with
>
> gfortran -c -O3 -g -ffast-math -fomit-frame-pointer message_passing.f90
> ...
> message_passing.f90: In function 'mp_perf_env_create':
> message_passing.f90:58: internal compiler error: in add_virtual_operand, at
> tree-ssa-operands.c:1867
>
> Confirmed.
>
> And yes, it seems cp2k is a good testsuite for modern Fortran features.
>
>
This assert means some pass changed TMT usage without the right update
flags.
Andrew, can you try to figure out what pass did this (it should be
relatively simple to see what the last pass touching the statement in
question is).
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug fortran/26444] gfortran does not compile cp2k
2006-02-23 15:45 [Bug fortran/26444] New: gfortran does not compile cp2k jv244 at cam dot ac dot uk
2006-02-23 15:55 ` [Bug fortran/26444] " jv244 at cam dot ac dot uk
2006-02-23 18:37 ` jb at gcc dot gnu dot org
@ 2006-02-23 18:56 ` jv244 at cam dot ac dot uk
2006-02-23 19:25 ` dberlin at dberlin dot org
` (10 subsequent siblings)
13 siblings, 0 replies; 16+ messages in thread
From: jv244 at cam dot ac dot uk @ 2006-02-23 18:56 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from jv244 at cam dot ac dot uk 2006-02-23 18:56 -------
which is in fact different from the bug I see. This is one reason I would
prefer to have a single file (the version in CVS will change rapidly, and
requires some additional setup which is avoided if we talk about a specific
file), so that we know what we're talking about.
I've added Andrew, I guess he might have an easy way to make the file
permanently available. (I can email it, but don't have permanent webspace).
--
jv244 at cam dot ac dot uk changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |pinskia at gcc dot gnu dot
| |org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26444
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug fortran/26444] gfortran does not compile cp2k
2006-02-23 15:45 [Bug fortran/26444] New: gfortran does not compile cp2k jv244 at cam dot ac dot uk
` (2 preceding siblings ...)
2006-02-23 18:56 ` jv244 at cam dot ac dot uk
@ 2006-02-23 19:25 ` dberlin at dberlin dot org
2006-02-23 19:47 ` dberlin at dberlin dot org
` (9 subsequent siblings)
13 siblings, 0 replies; 16+ messages in thread
From: dberlin at dberlin dot org @ 2006-02-23 19:25 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from dberlin at gcc dot gnu dot org 2006-02-23 19:25 -------
Subject: Re: gfortran does not compile cp2k
On Thu, 2006-02-23 at 18:37 +0000, jb at gcc dot gnu dot org wrote:
>
> ------- Comment #2 from jb at gcc dot gnu dot org 2006-02-23 18:37 -------
> I have the current CVS of cp2k, it fails with
>
> gfortran -c -O3 -g -ffast-math -fomit-frame-pointer message_passing.f90
> ...
> message_passing.f90: In function 'mp_perf_env_create':
> message_passing.f90:58: internal compiler error: in add_virtual_operand, at
> tree-ssa-operands.c:1867
>
> Confirmed.
>
> And yes, it seems cp2k is a good testsuite for modern Fortran features.
>
>
This assert means some pass changed TMT usage without the right update
flags.
Andrew, can you try to figure out what pass did this (it should be
relatively simple to see what the last pass touching the statement in
question is).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26444
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug fortran/26444] gfortran does not compile cp2k
2006-02-23 15:45 [Bug fortran/26444] New: gfortran does not compile cp2k jv244 at cam dot ac dot uk
` (3 preceding siblings ...)
2006-02-23 19:25 ` dberlin at dberlin dot org
@ 2006-02-23 19:47 ` dberlin at dberlin dot org
2006-02-23 21:03 ` jb at gcc dot gnu dot org
` (8 subsequent siblings)
13 siblings, 0 replies; 16+ messages in thread
From: dberlin at dberlin dot org @ 2006-02-23 19:47 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from dberlin at gcc dot gnu dot org 2006-02-23 19:25 -------
Subject: Re: gfortran does not compile cp2k
On Thu, 2006-02-23 at 18:37 +0000, jb at gcc dot gnu dot org wrote:
>
> ------- Comment #2 from jb at gcc dot gnu dot org 2006-02-23 18:37 -------
> I have the current CVS of cp2k, it fails with
>
> gfortran -c -O3 -g -ffast-math -fomit-frame-pointer message_passing.f90
> ...
> message_passing.f90: In function 'mp_perf_env_create':
> message_passing.f90:58: internal compiler error: in add_virtual_operand, at
> tree-ssa-operands.c:1867
>
> Confirmed.
>
> And yes, it seems cp2k is a good testsuite for modern Fortran features.
>
>
This assert means some pass changed TMT usage without the right update
flags.
Andrew, can you try to figure out what pass did this (it should be
relatively simple to see what the last pass touching the statement in
question is).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26444
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug fortran/26444] gfortran does not compile cp2k
2006-02-23 15:45 [Bug fortran/26444] New: gfortran does not compile cp2k jv244 at cam dot ac dot uk
` (4 preceding siblings ...)
2006-02-23 19:47 ` dberlin at dberlin dot org
@ 2006-02-23 21:03 ` jb at gcc dot gnu dot org
2006-02-24 17:46 ` pinskia at gcc dot gnu dot org
` (7 subsequent siblings)
13 siblings, 0 replies; 16+ messages in thread
From: jb at gcc dot gnu dot org @ 2006-02-23 21:03 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from jb at gcc dot gnu dot org 2006-02-23 20:18 -------
Created an attachment (id=10904)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10904&action=view)
Causes ICE when compiled with -O3
This is a self-contained example that show the tree bug. It doesn't appear with
-O2, you need -O3.
message_passing.f90: In function 'mp_perf_env_create':
message_passing.f90:462: internal compiler error: in add_virtual_operand, at
tree-ssa-operands.c:1867
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26444
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug fortran/26444] gfortran does not compile cp2k
2006-02-23 15:45 [Bug fortran/26444] New: gfortran does not compile cp2k jv244 at cam dot ac dot uk
` (5 preceding siblings ...)
2006-02-23 21:03 ` jb at gcc dot gnu dot org
@ 2006-02-24 17:46 ` pinskia at gcc dot gnu dot org
2006-02-24 17:48 ` pinskia at gcc dot gnu dot org
` (6 subsequent siblings)
13 siblings, 0 replies; 16+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-02-24 17:46 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from pinskia at gcc dot gnu dot org 2006-02-24 17:42 -------
I cannot reproduce this with "4.2.0 20060218".
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26444
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug fortran/26444] gfortran does not compile cp2k
2006-02-23 15:45 [Bug fortran/26444] New: gfortran does not compile cp2k jv244 at cam dot ac dot uk
` (6 preceding siblings ...)
2006-02-24 17:46 ` pinskia at gcc dot gnu dot org
@ 2006-02-24 17:48 ` pinskia at gcc dot gnu dot org
2006-02-24 17:53 ` pinskia at gcc dot gnu dot org
` (5 subsequent siblings)
13 siblings, 0 replies; 16+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-02-24 17:48 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from pinskia at gcc dot gnu dot org 2006-02-24 17:47 -------
I can reproduce this on the 20th though.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26444
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug fortran/26444] gfortran does not compile cp2k
2006-02-23 15:45 [Bug fortran/26444] New: gfortran does not compile cp2k jv244 at cam dot ac dot uk
` (7 preceding siblings ...)
2006-02-24 17:48 ` pinskia at gcc dot gnu dot org
@ 2006-02-24 17:53 ` pinskia at gcc dot gnu dot org
2006-02-24 17:53 ` pinskia at gcc dot gnu dot org
` (4 subsequent siblings)
13 siblings, 0 replies; 16+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-02-24 17:53 UTC (permalink / raw)
To: gcc-bugs
------- Comment #10 from pinskia at gcc dot gnu dot org 2006-02-24 17:53 -------
Note -O3 enables complete unrolling at the tree level, I think there might be
another related bug to this one. I bet it is failing in VRP2 also, just like
the other one.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26444
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug fortran/26444] gfortran does not compile cp2k
2006-02-23 15:45 [Bug fortran/26444] New: gfortran does not compile cp2k jv244 at cam dot ac dot uk
` (8 preceding siblings ...)
2006-02-24 17:53 ` pinskia at gcc dot gnu dot org
@ 2006-02-24 17:53 ` pinskia at gcc dot gnu dot org
2006-02-24 17:58 ` pinskia at gcc dot gnu dot org
` (3 subsequent siblings)
13 siblings, 0 replies; 16+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-02-24 17:53 UTC (permalink / raw)
To: gcc-bugs
------- Comment #9 from pinskia at gcc dot gnu dot org 2006-02-24 17:48 -------
So what this means I could not have caused this as the only patch after my 18th
GCC and my 20th GCC is not a patch which I committed that would have caused
this.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26444
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug fortran/26444] gfortran does not compile cp2k
2006-02-23 15:45 [Bug fortran/26444] New: gfortran does not compile cp2k jv244 at cam dot ac dot uk
` (9 preceding siblings ...)
2006-02-24 17:53 ` pinskia at gcc dot gnu dot org
@ 2006-02-24 17:58 ` pinskia at gcc dot gnu dot org
2006-02-24 18:16 ` [Bug tree-optimization/26444] [4.2 Regression] " pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
13 siblings, 0 replies; 16+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-02-24 17:58 UTC (permalink / raw)
To: gcc-bugs
------- Comment #11 from pinskia at gcc dot gnu dot org 2006-02-24 17:54 -------
(In reply to comment #10)
> Note -O3 enables complete unrolling at the tree level, I think there might be
> another related bug to this one. I bet it is failing in VRP2 also, just like
> the other one.
That would be PR 26443 by the way.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26444
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug tree-optimization/26444] [4.2 Regression] gfortran does not compile cp2k
2006-02-23 15:45 [Bug fortran/26444] New: gfortran does not compile cp2k jv244 at cam dot ac dot uk
` (10 preceding siblings ...)
2006-02-24 17:58 ` pinskia at gcc dot gnu dot org
@ 2006-02-24 18:16 ` pinskia at gcc dot gnu dot org
2006-03-01 12:39 ` [Bug tree-optimization/26444] [4.2 Regression] ICE in add_virtual_operand with -O3 martin at mpa-garching dot mpg dot de
2006-03-01 18:32 ` pinskia at gcc dot gnu dot org
13 siblings, 0 replies; 16+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-02-24 18:16 UTC (permalink / raw)
To: gcc-bugs
------- Comment #12 from pinskia at gcc dot gnu dot org 2006-02-24 18:14 -------
(In reply to comment #11)
> (In reply to comment #10)
> > Note -O3 enables complete unrolling at the tree level, I think there might be
> > another related bug to this one. I bet it is failing in VRP2 also, just like
> > the other one.
>
> That would be PR 26443 by the way.
And it fails in the same way PR 26443 fails as that it is ICE after VRP2.
Here is the "reduced" testcase (there are no complex types in there):
MODULE message_passing
TYPE mp_perf_type
CHARACTER ( LEN = 20 ) :: name
REAL :: time
END TYPE mp_perf_type
INTEGER, PARAMETER :: MAX_PERF = 12
TYPE mp_perf_env_type
INTEGER :: ref_count, id_nr
TYPE ( mp_perf_type ), DIMENSION ( MAX_PERF ) :: mp_perfs
END TYPE mp_perf_env_type
CHARACTER ( LEN = 20 ), PARAMETER :: sname ( MAX_PERF ) = &
(/"MP_Group ", "MP_Bcast ", "MP_Allreduce ", &
"MP_Gather ", "MP_Sync ", "MP_Alltoall ", &
"MP_SendRecv ", "MP_ISendRecv ", "MP_Wait ", &
"MP_comm_split ", "MP_ISend ", "MP_IRecv "/)
CONTAINS
SUBROUTINE mp_perf_env_create(perf_env)
TYPE(mp_perf_env_type), POINTER :: perf_env
perf_env%id_nr=last_mp_perf_env_id
DO i = 1, MAX_PERF
perf_env%mp_perfs(i) % name = sname(i)
perf_env%mp_perfs(i) % time = 0.0
END DO
END SUBROUTINE mp_perf_env_create
END MODULE message_passing
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
BugsThisDependsOn| |26443
Component|fortran |tree-optimization
Keywords| |ice-on-valid-code
Summary|gfortran does not compile |[4.2 Regression] gfortran
|cp2k |does not compile cp2k
Target Milestone|--- |4.2.0
Version|4.1.0 |4.2.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26444
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug tree-optimization/26444] [4.2 Regression] ICE in add_virtual_operand with -O3
2006-02-23 15:45 [Bug fortran/26444] New: gfortran does not compile cp2k jv244 at cam dot ac dot uk
` (11 preceding siblings ...)
2006-02-24 18:16 ` [Bug tree-optimization/26444] [4.2 Regression] " pinskia at gcc dot gnu dot org
@ 2006-03-01 12:39 ` martin at mpa-garching dot mpg dot de
2006-03-01 18:32 ` pinskia at gcc dot gnu dot org
13 siblings, 0 replies; 16+ messages in thread
From: martin at mpa-garching dot mpg dot de @ 2006-03-01 12:39 UTC (permalink / raw)
To: gcc-bugs
------- Comment #13 from martin at mpa-garching dot mpg dot de 2006-03-01 12:39 -------
It appears that this bug also prevents FFTW 3.1 from compiling.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26444
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug tree-optimization/26444] [4.2 Regression] ICE in add_virtual_operand with -O3
2006-02-23 15:45 [Bug fortran/26444] New: gfortran does not compile cp2k jv244 at cam dot ac dot uk
` (12 preceding siblings ...)
2006-03-01 12:39 ` [Bug tree-optimization/26444] [4.2 Regression] ICE in add_virtual_operand with -O3 martin at mpa-garching dot mpg dot de
@ 2006-03-01 18:32 ` pinskia at gcc dot gnu dot org
13 siblings, 0 replies; 16+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-03-01 18:32 UTC (permalink / raw)
To: gcc-bugs
------- Comment #14 from pinskia at gcc dot gnu dot org 2006-03-01 18:32 -------
Confirmed, this is fixed with the patch for PR 26443.
*** This bug has been marked as a duplicate of 26443 ***
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26444
^ permalink raw reply [flat|nested] 16+ messages in thread