This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [gfortran,patch] Fix handling of optional args to MIN and MAX intrinsics
- From: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>
- To: FX Coudert <fxcoudert at gmail dot com>
- Cc: "fortran at gcc dot gnu dot org List" <fortran at gcc dot gnu dot org>, gcc-patches List <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 3 Jul 2007 18:09:28 -0700
- Subject: Re: [gfortran,patch] Fix handling of optional args to MIN and MAX intrinsics
- References: <82D0628A-F3A7-4CF1-921E-347BB90B294E@gmail.com>
On Wed, Jul 04, 2007 at 02:41:04AM +0200, FX Coudert wrote:
> Attached patch fixes the handling of optional arguments to the MIN
> and MAX intrinsics : their first two arguments are mandatory, and all
> following ones are optional. The devil is in the details, and the
> details are in the PR and the link to the comp.lang.fortran thread
> about this.
>
> What this patch does is: 1. check that the first two arguments are
> provided ; 2. for each following arg, if it is an optional arg, only
> use it for comparison if it is actually present. I've have the patch
> for some time, but it built on top of Lee's trans-intrinsic.c patch,
> and since we have no fresh news I decided it was time to commit it
> nonetheless (thanks Joost for the friendly reminder!).
>
> Regtested on x86_64-linux, OK for mainline ?
>
OK for trunk.
--
Steve