[Patch, Fortran] PR32359 OpenMP threadprivate: SAVE is implied by explicit initialization

Tobias Burnus burnus@net-b.de
Sat Jun 16 08:58:00 GMT 2007


:ADDPATCH fortran:

threadprivate requires variables which are static (C slang; Fortran:
SAVE); but sym->attr.save is only set when the SAVE attribute or
statement has been used. However, variables are also static when an
explicit initialization expression has been used. Additionally, the "
SAVE " statement was not honoured, which I almost forgot to check.

I think the reason that sym->attr.save is not set is to allow for a
"SAVE :: variable" statement afterwards.

Build and check-gfortran and check-libgomp tested on
x86_64-unknown-linux-gnu
Ok for the trunk?

Tobias
-------------- next part --------------
A non-text attachment was scrubbed...
Name: save-gomp.diff
Type: text/x-patch
Size: 1709 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20070616/3edd3faa/attachment.bin>


More information about the Fortran mailing list