[PATCH, Fortran] Extension: Support legacy PARAMETER statements with -std=legacy (or -fdec?)
Fritz Reese
fritzoreese@gmail.com
Thu Nov 3 16:01:00 GMT 2016
On Thu, Nov 3, 2016 at 10:26 AM, Jerry DeLisle <jvdelisle@charter.net> wrote:
> On 11/03/2016 04:16 AM, Fritz Reese wrote:
>>>
>>> On 11/02/2016 08:47 AM, Fritz Reese wrote:
>>>>
>>>>
>>>> Attached is a patch for the GNU Fortran front-end which allows the
>>>> compiler to interpret these legacy PARAMETER statements. The patch in
>>>> its current form does this without warning through -std=legacy
>>>> (warning for -std=gnu, error for -std=f*). Bootstraps and regtests on
>>>> x86_64-redhat-linux.
>
> So with that answered I say your path is OK to commit.
>
> I did get a gfortran.texi hunk failed when applying the patch so maybe check
> that.
>
> $ patch -p1 <dec_parameter.diff
> patching file gcc/fortran/decl.c
> patching file gcc/fortran/gfortran.texi
> Hunk #1 FAILED at 1472.
> Hunk #2 succeeded at 2777 with fuzz 2 (offset 72 lines).
> 1 out of 2 hunks FAILED -- saving rejects to file
> gcc/fortran/gfortran.texi.rej
> patching file gcc/fortran/parse.c
> patching file gcc/testsuite/gfortran.dg/dec_parameter_1.f
> patching file gcc/testsuite/gfortran.dg/dec_parameter_2.f90
> patching file gcc/testsuite/gfortran.dg/dec_parameter_3.f90
> patching file gcc/testsuite/gfortran.dg/dec_parameter_4.f90
>
My mistake - I left my commits out-of-order w.r.t trunk on my dev
branch. Committed attached as r241823 - thanks!
Fritz Reese
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dec_parameter_2.patch
Type: text/x-patch
Size: 9340 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20161103/debd0f2e/attachment.bin>
More information about the Fortran
mailing list