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] PR 15665, Pr 15280 Fortran 2003 & g77 command line argument intrinsics.


On Tue, Jun 29, 2004 at 09:32:51PM +0300, Janne Blomqvist wrote:
> On Tue, Jun 29, 2004 at 03:59:44PM +0300, Janne Blomqvist wrote:
> > On Tue, Jun 29, 2004 at 03:44:49PM +0300, Janne Blomqvist wrote:
> > > Hello,
> > 
> > Hello again,
> 
> Uh oh... ;-)

Now this is getting embarrasing..

I found a bug in my patch; get_command always places a space at the
end of the string. Thus if the command line would just fit, it won't
since one character will be replaced by the space. Apparently some
leftover from some previous experimentation I did.

Changelog is the same as for the previous patch. 

> +	  if (tot_len + arglen +1 > command_len)
> +	    {
> +	      arglen = command_len - tot_len - 1; /* Truncate. */

The "1" is unnecessary in the two rows above, the entire modified
patch is attached for convenience.

I also added Pr 15280 to the subject line; as Tobias said, this patch
seems to fix that PR too.

-- 
Janne Blomqvist

Attachment: f2003args_3.patch
Description: Text document


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