[Patch, Fortran, F08] PR 55207: Variables declared in the main program should implicitly get the SAVE attribute

Janus Weil janus@gcc.gnu.org
Sun Mar 16 18:11:00 GMT 2014


Hi Dominique,

> So far I have found two fall out after this revision:

thanks for the heads-up!


> (1) The test in pr47399 comment 0 gives an ICE:
>
> pr47399.f90: In function 'test':
> pr47399.f90:32:0: internal compiler error: in gfc_trans_auto_array_allocation, at fortran/trans-array.c:5682
>     integer, dimension (a_const%i()) :: x        ! #3

I can confirm this. Will investigate.


> (2) The execution time of fatigue.f90 with the patch at
>
> http://gcc.gnu.org/ml/gcc-patches/2014-03/msg00754.html
>
> double from 208588 to 208590 unless I use -fstd=f2003.

Ouch. Double, really? Probably some kind of optimization is not
possible any more with SAVE (?).

Cheers,
Janus



More information about the Fortran mailing list