[patch, fortran] Some more function elimination tweaks

Steve Kargl sgk@troutmask.apl.washington.edu
Sat May 21 21:59:00 GMT 2011


On Wed, May 18, 2011 at 10:58:18PM +0200, Thomas Koenig wrote:
> 
> - It removes the restriction on functions returning allocatables
>   for elimination (unnecessary since the introduction of allocatable
>   temporary variables)
> 
> - It allows character function elimination if the character length is
>   a constant known at compile time
> 
> - It removes introducing temporary variables for the TRANSFER function;
>   this is better be handled by the middle-end.
> 
> Regression-tested.
> 
> OK for trunk?
> 
> 	Thomas
> 
> 2011-05-18  Thomas Koenig  <tkoenig@gcc.gnu.org>
> 
>         * frontend-passes.c (cfe_register_funcs):  Also register
>         character functions if their charlens are known and constant.
>         Also register allocatable functions.
> 
> 2011-05-18  Thomas Koenig  <tkoenig@gcc.gnu.org>
> 
>         * gfortran.dg/function_optimize_8.f90:  New test case.

OK.

-- 
Steve



More information about the Gcc-patches mailing list