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 Fix command_argument_count intrinsic function


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/


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