This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [Patch, Fortran] PR 50960 - Mark PARAMETER as TREE_READONLY
- From: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>
- To: Tobias Burnus <burnus at net-b dot de>
- Cc: gcc patches <gcc-patches at gcc dot gnu dot org>, gfortran <fortran at gcc dot gnu dot org>
- Date: Thu, 3 Nov 2011 15:26:44 -0700
- Subject: Re: [Patch, Fortran] PR 50960 - Mark PARAMETER as TREE_READONLY
- References: <4EB31057.90307@net-b.de>
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