This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [gfortran] PATCH Fix command_argument_count intrinsic function
- From: Toon Moene <toon at moene dot indiv dot nluug dot nl>
- To: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>
- Cc: fortran at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Sat, 26 Feb 2005 14:13:34 +0100
- Subject: Re: [gfortran] PATCH Fix command_argument_count intrinsic function
- Organization: Moene Computational Physics, Maartensdijk, The Netherlands
- References: <33459348.1109416733788.JavaMail.root@dtm1eusosrv72.dtm.ops.eu.uu.net>
Steve Kargl wrote:
When I fixed the off-by-1 problem with iargc in PR libfortran/20085,
I did not realize that command_argument_count called iargc to get the
argument count and then it subtracted 1. Thus, command_argument_count
was account for the command name twice. In essence, iargc and
command_argument_count are equivalent.
bootstrap and regtested on i386-*-freebsd.
This is a regression. OK for mainline?
OK for mainline. Wait for Mark Mitchell's reaction to my question to
him (based on Thomas Koenig's query) whether this also should be applied
to the 4.0 branch.
Thanks !
--
Toon Moene - e-mail: toon@moene.indiv.nluug.nl - phone: +31 346 214290
Saturnushof 14, 3738 XG Maartensdijk, The Netherlands
Maintainer, GNU Fortran 77: http://gcc.gnu.org/onlinedocs/g77_news.html
A maintainer of GNU Fortran 95: http://gcc.gnu.org/fortran/