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: [gfortran,patch] Fix handling of optional args to MIN and MAX intrinsics


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


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