Re: [Patch, Fortran] PR 50960 - Mark PARAMETER as TREE_READONLY

2011-11-03 Thread Steve Kargl
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

[Patch, Fortran] PR 50960 - Mark PARAMETER as TREE_READONLY

2011-11-03 Thread Tobias Burnus
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_6