[Fortran, patch, pr68218, backport to 5 and 4.9, v1] ALLOCATE with size given by a module function
Andre Vehreschild
vehre@gmx.de
Fri Nov 27 12:20:00 GMT 2015
Hi all,
I have backported the patch for 68218 (multiple calls of the same
function, where only one call is expected and reasonable) to
gcc-5-branch and gcc-4_9-branch.
Bootstrapped and regtested on x86_64-linux-gnu/f21.
Ok for gcc-5-branch?
Ok for gcc-4_9-branch?
The Changelog is identical for both patches. The patches are mostly,
too, just a slight shift.
Regards,
Andre
On Sun, 8 Nov 2015 18:48:50 +0100
Andre Vehreschild <vehre@gmx.de> wrote:
> Hi Paul,
>
> thanks for the review. Comitted as r229956.
>
> In 5 and 4.9 the same issue exists. Currently checking whether the same
> patch helps.
>
> Regards,
> Andre
>
> On Sat, 7 Nov 2015 14:58:35 +0100
> Paul Richard Thomas <paul.richard.thomas@gmail.com> wrote:
>
> > Dear Andre,
> >
> > OK for trunk.
> >
> > I understand that you have investigated the issue(s) reported to you
> > by Dominique and can find no sign of them.
> >
> > Thanks
> >
> > Paul
> >
> > On 5 November 2015 at 15:29, Andre Vehreschild <vehre@gmx.de> wrote:
> > > Hi all,
> > >
> > > attached is a rather trivial patch to prevent multiple evaluations of a
> > > function in:
> > >
> > > allocate( array(func()) )
> > >
> > > The patch tests whether the upper bound of the array is a function
> > > and calls gfc_evaluate_now().
> > >
> > > Bootstrapped and regtested for x86_64-linux-gnu/f21.
> > >
> > > Ok for trunk?
> > >
> > > Regards,
> > > Andre
> > > --
> > > Andre Vehreschild * Email: vehre ad gmx dot de
> >
> >
> >
>
>
--
Andre Vehreschild * Email: vehre ad gmx dot de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr68218_v4_9_1.patch
Type: text/x-patch
Size: 1540 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20151127/f05a80be/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr68218_v5_1.clog
Type: application/octet-stream
Size: 361 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20151127/f05a80be/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr68218_v5_1.patch
Type: text/x-patch
Size: 1540 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20151127/f05a80be/attachment-0001.bin>
More information about the Fortran
mailing list