This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 2/2] Optimize fortran loops with +-1 step.


marxin wrote:
> gcc/fortran/ChangeLog:
> 
> 2016-07-01  Martin Liska  <mliska@suse.cz>
>	* lang.opt (Wundefined-do-loop): New option.
>        * resolve.c (gfc_resolve_iterator): Warn for Wundefined-do-loop.
>	(gfc_trans_simple_do): Generate a c-style loop.
>	(gfc_trans_do): Fix GNU coding style.

Can you also document the new warning in gcc/fortran/invoke.texi?

Otherwise, this patch looks good to me. Thanks for working on it.

Cheers,

Tobias


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]