This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [Patch, Fortran] PRs 36132, 29952, 36909 - optional array arg; temp array; missed opt
- From: Tobias Burnus <tobias dot burnus at physik dot fu-berlin dot de>
- To: fortran at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org, Ralf Wildenhues <Ralf dot Wildenhues at gmx dot de>
- Date: Mon, 28 Jul 2008 21:49:51 +0200
- Subject: Re: [Patch, Fortran] PRs 36132, 29952, 36909 - optional array arg; temp array; missed opt
Hello Ralf,
thanks for the nits, as pre-checkin they come to late. How about
checking them in yourself? The patch is hereby preapproved.
> > --- gcc/fortran/lang.opt (Revision 138185)
> > +++ gcc/fortran/lang.opt
> [...]
> > +Produce a warning at runtime if a array temporary has been created
> > for a procedure argument
>
> an array temporary
> > +sometimes useful in optimization, in order to avoid such temporaries.
>
> for optimization
The latter happens if one does copy and paste without really reading the
copied sentences. The following should be corrected as well:
| -Warray-temporaries
| Warn about array temporaries generated by the compiler. The
| information generated by this warning is sometimes useful
| in optimization, in order to avoid such temporaries.
in -> for optimization.
Tobias