[patch, fortran, 4.9] Improve efficiency of array constructor operators

Thomas Koenig tkoenig@netcologne.de
Sun Mar 24 21:46:00 GMT 2013


Hello world,

this updated patch fixes a regression in my previous patch,
with a test case for that regression also attached.

Regression-tested.

OK for trunk?

	Thomas

2013-03-24  Thomas Koenig  <tkoenig@gcc.gnu.org>

         PR fortran/55806
         * frontend-passes.c (optimize_code):  Keep track of
         current code to make code insertion possible.
         (combine_array_constructor):  New function.
         (optimize_op):  Call it.

2013-03-24  Thomas Koenig  <tkoenig@gcc.gnu.org>

         PR fortran/55806
         * gfortran.dg/array_constructor_43.f90:  New test.
         * gfortran.dg/random_seed_3.f90:  New test.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: p6.diff
Type: text/x-patch
Size: 3201 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20130324/94588f6a/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: random_seed_3.f90
Type: text/x-fortran
Size: 527 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20130324/94588f6a/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: array_constructor_43.f90
Type: text/x-fortran
Size: 395 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20130324/94588f6a/attachment-0002.bin>


More information about the Fortran mailing list