[Patch, Fortran] PR 50960 - Mark PARAMETER as TREE_READONLY
Steve Kargl
sgk@troutmask.apl.washington.edu
Thu Nov 3 22:26:00 GMT 2011
On Thu, Nov 03, 2011 at 11:06:15PM +0100, Tobias Burnus wrote:
> Dear all,
>
> gfortran stores PARAMETERS which are array or derived types as global
> static variable. This prevents the compiler from optimizing those
> parameters.
>
> Using TREE_READONLY, one can allow the compiler to make use of the
> values and do further optimizations.
>
> Build and regtested on x86_64-linux.
> OK for the trunk?
OK.
--
Steve
More information about the Fortran
mailing list