This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [gfortran] patch PR 17229
- From: Steven Bosscher <stevenb at suse dot de>
- To: fortran at gcc dot gnu dot org
- Cc: FranÃois-Xavier Coudert <Francois-Xavier dot Coudert at lcp dot u-psud dot fr>, gcc-patches at gcc dot gnu dot org
- Date: Wed, 6 Apr 2005 17:20:02 +0200
- Subject: Re: [gfortran] patch PR 17229
- Organization: SUSE Labs
- References: <4253F866.3050009@lcp.u-psud.fr>
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