public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/25219] New: [GOMP] ICE with SAVE attribute and (FIRST|LAST)PRIVATE
@ 2005-12-02 8:15 rofi at ya dot com
2005-12-02 8:19 ` [Bug fortran/25219] " rofi at ya dot com
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: rofi at ya dot com @ 2005-12-02 8:15 UTC (permalink / raw)
To: gcc-bugs
When -fopenmp is enabled, SAVE attribute causes an ICE when the entity is
referenced in a FIRSTPRIVATE or LASTPRIVATE clause, e.g.:
PROGRAM p
IMPLICIT NONE
! This can be SAVE :: K and gfortran will ICE too
SAVE
INTEGER :: K, I
K = 3
! These two can be replaced with
! !$OMP PARALLEL DO LASTPRIVATE(K) and will ICE too
!$OMP PARALLEL
!$OMP DO LASTPRIVATE(K)
DO I = 1, 100
K = I
END DO
!$OMP END DO
!$OMP END PARALLEL
PRINT *, K
END PROGRAM p
--
Summary: [GOMP] ICE with SAVE attribute and (FIRST|LAST)PRIVATE
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: rofi at ya dot com
GCC build triplet: powerpc-unknown-linux-gnu
GCC host triplet: powerpc-unknown-linux-gnu
GCC target triplet: powerpc-unknown-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25219
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug fortran/25219] [GOMP] ICE with SAVE attribute and (FIRST|LAST)PRIVATE
2005-12-02 8:15 [Bug fortran/25219] New: [GOMP] ICE with SAVE attribute and (FIRST|LAST)PRIVATE rofi at ya dot com
@ 2005-12-02 8:19 ` rofi at ya dot com
2005-12-02 8:21 ` rofi at ya dot com
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: rofi at ya dot com @ 2005-12-02 8:19 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from rofi at ya dot com 2005-12-02 08:19 -------
Sorry, I got wrong when working with my test files.
With !$OMP PARALLEL DO LASTPRIVATE(K) it does not ICE.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25219
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug fortran/25219] [GOMP] ICE with SAVE attribute and (FIRST|LAST)PRIVATE
2005-12-02 8:15 [Bug fortran/25219] New: [GOMP] ICE with SAVE attribute and (FIRST|LAST)PRIVATE rofi at ya dot com
2005-12-02 8:19 ` [Bug fortran/25219] " rofi at ya dot com
@ 2005-12-02 8:21 ` rofi at ya dot com
2006-01-16 17:40 ` jakub at gcc dot gnu dot org
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: rofi at ya dot com @ 2005-12-02 8:21 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from rofi at ya dot com 2005-12-02 08:21 -------
Created an attachment (id=10388)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10388&action=view)
Small testcase that ICEs
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25219
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug fortran/25219] [GOMP] ICE with SAVE attribute and (FIRST|LAST)PRIVATE
2005-12-02 8:15 [Bug fortran/25219] New: [GOMP] ICE with SAVE attribute and (FIRST|LAST)PRIVATE rofi at ya dot com
2005-12-02 8:19 ` [Bug fortran/25219] " rofi at ya dot com
2005-12-02 8:21 ` rofi at ya dot com
@ 2006-01-16 17:40 ` jakub at gcc dot gnu dot org
2006-01-16 18:18 ` dnovillo at redhat dot com
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: jakub at gcc dot gnu dot org @ 2006-01-16 17:40 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from jakub at gcc dot gnu dot org 2006-01-16 17:40 -------
This is not Fortran specific,
int main (void)
{
static int i;
static int k;
k = 3;
#pragma omp parallel
#pragma omp for private(i) lastprivate(k)
for (i = 1; i <= 100; i = i + 1)
k = i;
__builtin_printf ("%d\n", k);
return 0;
}
ICEs the same. I can't reproduce this in the Fedora Core gcc though,
so I think this got fixed by
http://gcc.gnu.org/ml/gcc-patches/2005-12/msg01192.html
Dunno about its status, Diego, was it subsummed by your
http://gcc.gnu.org/ml/gcc-patches/2006-01/msg00668.html
patch?
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |aldyh at gcc dot gnu dot
| |org, dnovillo at gcc dot gnu
| |dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25219
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug fortran/25219] [GOMP] ICE with SAVE attribute and (FIRST|LAST)PRIVATE
2005-12-02 8:15 [Bug fortran/25219] New: [GOMP] ICE with SAVE attribute and (FIRST|LAST)PRIVATE rofi at ya dot com
` (2 preceding siblings ...)
2006-01-16 17:40 ` jakub at gcc dot gnu dot org
@ 2006-01-16 18:18 ` dnovillo at redhat dot com
2006-01-16 18:23 ` dnovillo at gcc dot gnu dot org
2006-01-17 10:56 ` jakub at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: dnovillo at redhat dot com @ 2006-01-16 18:18 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from dnovillo at redhat dot com 2006-01-16 18:18 -------
Subject: Re: [GOMP] ICE with SAVE attribute and (FIRST|LAST)PRIVATE
On Monday 16 January 2006 12:40, jakub at gcc dot gnu dot org wrote:
> ICEs the same. I can't reproduce this in the Fedora Core gcc though,
> so I think this got fixed by
> http://gcc.gnu.org/ml/gcc-patches/2005-12/msg01192.html
> Dunno about its status, Diego, was it subsummed by your
> http://gcc.gnu.org/ml/gcc-patches/2006-01/msg00668.html
> patch?
>
No, it's unrelated. I've committed Aldy's patch.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25219
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug fortran/25219] [GOMP] ICE with SAVE attribute and (FIRST|LAST)PRIVATE
2005-12-02 8:15 [Bug fortran/25219] New: [GOMP] ICE with SAVE attribute and (FIRST|LAST)PRIVATE rofi at ya dot com
` (3 preceding siblings ...)
2006-01-16 18:18 ` dnovillo at redhat dot com
@ 2006-01-16 18:23 ` dnovillo at gcc dot gnu dot org
2006-01-17 10:56 ` jakub at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: dnovillo at gcc dot gnu dot org @ 2006-01-16 18:23 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from dnovillo at gcc dot gnu dot org 2006-01-16 18:23 -------
Fixed with http://gcc.gnu.org/ml/gcc-patches/2005-12/msg01192.html
--
dnovillo at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25219
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug fortran/25219] [GOMP] ICE with SAVE attribute and (FIRST|LAST)PRIVATE
2005-12-02 8:15 [Bug fortran/25219] New: [GOMP] ICE with SAVE attribute and (FIRST|LAST)PRIVATE rofi at ya dot com
` (4 preceding siblings ...)
2006-01-16 18:23 ` dnovillo at gcc dot gnu dot org
@ 2006-01-17 10:56 ` jakub at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: jakub at gcc dot gnu dot org @ 2006-01-17 10:56 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from jakub at gcc dot gnu dot org 2006-01-17 10:56 -------
Subject: Bug 25219
Author: jakub
Date: Tue Jan 17 10:56:29 2006
New Revision: 109816
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=109816
Log:
PR fortran/25219
* testsuite/libgomp.fortran/pr25219.f90: New test.
Added:
branches/gomp-20050608-branch/libgomp/testsuite/libgomp.fortran/pr25219.f90
Modified:
branches/gomp-20050608-branch/libgomp/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25219
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2006-01-17 10:56 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-12-02 8:15 [Bug fortran/25219] New: [GOMP] ICE with SAVE attribute and (FIRST|LAST)PRIVATE rofi at ya dot com
2005-12-02 8:19 ` [Bug fortran/25219] " rofi at ya dot com
2005-12-02 8:21 ` rofi at ya dot com
2006-01-16 17:40 ` jakub at gcc dot gnu dot org
2006-01-16 18:18 ` dnovillo at redhat dot com
2006-01-16 18:23 ` dnovillo at gcc dot gnu dot org
2006-01-17 10:56 ` 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).