[patch, fortran] Some more TRIM optimizations

Thomas Koenig tkoenig@netcologne.de
Mon Jun 6 19:25:00 GMT 2011


I wrote:

> Hello world,
>
> the attached patch extends removing trailing TRIMs in assignments for
> cases like a // trim(b). Regression-tested. OK for trunk?
>
> Thomas

This time with the test case corrected (cleanup of the *.original file)
and a more meaningful Subject line.

OK?

	Thomas

2011-05-06  Thomas König  <tkoenig@gcc.gnu.org>

         * frontend-passes.c (optimize_assignment): Follow chains
         of concatenation operators to the end for removing trailing
         TRIMS for assignments.

2011-05-06  Thomas König  <tkoenig@gcc.gnu.org>

         * gfortran.dg/trim_optimize_7.f90:  New test.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p1.diff
Type: text/x-patch
Size: 695 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20110606/36aab994/attachment.bin>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: trim_optimize_7.f90
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20110606/36aab994/attachment.f90>


More information about the Gcc-patches mailing list