[patch, fortran] Complete implementation and correction of simplification
Thomas Koenig
tkoenig@netcologne.de
Tue Jan 2 15:54:00 GMT 2018
Hello world,
the attached patch implements simplification for cshift completely.
It also fixes a bug where compile-time simplification was handled
incorrectly for a negative value. For PR 83650 (the wrong
simplification) for the other branches I suspect a quite simple fix will
be possible, which I will address separately.
Regression-tested. OK for trunk?
Regards
Thomas
2018-01-02 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/45689
PR fortran/83650
* simplify.c (gfc_simplify_cshift): Re-implement to allow full
range of arguments.
2018-01-02 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/45689
PR fortran/83650
* gfortran.dg/simplify_cshift_1.f90: Correct erroneous case.
* gfortran.dg/simplify_cshift_4.f90: New test.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p4b.diff
Type: text/x-patch
Size: 7905 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20180102/379f61f9/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: simplify_cshift_4.f90
Type: text/x-fortran
Size: 1526 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20180102/379f61f9/attachment-0001.bin>
More information about the Gcc-patches
mailing list