This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Bug fortran/43072] unneeded temporary (s=s+f(a))


Paul Richard Thomas wrote:
> The attached patch cleans up many of the remaining issues with excess
> temporaries.  It is a simple extension of the dependency checking to
> ensure that all trailing element references are considered for
> determining if an array reference is contiguous.
>
> Bootstrapped and regtested on FC9/x86_64 - OK for trunk?
>   

OK and thanks for the patch! Do you plan to work on the string issue? If
not, can you fill a PR and refer to gfortran.dg/internal_pack_9.f90,
which contains a test case?

Tobias

> Cheers and thanks to Tobias for the testcases.
>
> Paul
>
> 2010-02-21  Paul Thomas  <pault@gcc.gnu.org>
>
> 	PR fortran/43072
> 	* dependency.c (gfc_full_array_ref_p): Check for contiguous by
> 	checking the rest of the dimensions for elements.
>
> 2010-02-21  Paul Thomas  <pault@gcc.gnu.org>
>
> 	PR fortran/43072
> 	* gfortran.dg/internal_pack_6.f90: Number of 'packs' now zero.
> 	* gfortran.dg/internal_pack_9.f90: New test.
>   


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]