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

Tobias Burnus burnus@net-b.de
Mon Jun 18 08:38:00 GMT 2007


Daniel Franke schrieb:
> On Saturday 16 June 2007 16:36:33 Tobias Burnus wrote:
>   
>> How about something like the attached patch?
>>     
> Looks good to me :)
>
> gfortran.dg/module_md5_1.f90; after glancing at module.c I still don't
>   
> That's the implicit SAVE of
>   module foo
>     integer(kind=4), parameter :: pi = 3_4
>   end module foo
> propagated to foo.mod:
>   3 'pi' 'foo' 1 ((PARAMETER UNKNOWN-INTENT UNKNOWN-PROC UNKNOWN SAVE) (
> The SAVE at the end of the line was set to UNKNOWN before.
>   
As also with the old version a "static" variable was produced 
(-fdump-tree-original), I think the new behaviour for .MOD is
consistent, even though I have problems imaging a parameter with a SAVE
attribute.

Regression tested (check-gfortran and libgomp) on
x86_64-unknown-linux-gnu with -m64 and -m32 and no failures.
Ok for the trunk?

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


More information about the Fortran mailing list