This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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: [gfortran] patch PR 17229


On Wednesday 06 April 2005 16:55, FranÃois-Xavier Coudert wrote:
> This patch fixes PR fortran/17229, enabling gfortran to recognize an
> arithmetic IF statement embedded in a simple IF statement:
>
>         if (logical) if (integer) 100, 200, 300
>
> This is used in some scientific libraries as FMLIB/ZMLIB and is a
> regression WRT g77. *strapped and regested on i686-linux for both 4.0 and
> mainline. OK?

Hmm interesting.  What do we do with
if(l1) if (l2) if (l3) etc. ?

And do you really need a new function to match that if?  There
is already code to match an arithmetic if in gfc_match_if itself,
duplicating it like this should not be necessary...

Gr.
Steven


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