[Patch,Fortran] PR42996 - fix LENGTH= of get_command_argument

Tobias Burnus burnus@net-b.de
Tue Feb 9 13:27:00 GMT 2010


Hi,

the patch is obvious: The standard and also the gfortran manual say that
get_command_argument returns the length of the command-line argument in
LENGTH=; however, if VALUE= has been specified and is of shorter "len"
than the command-line argument, the value-length was returned. (See PR;
there is no test case for deja gnu.)

Build and regtested on x86-64-linux. I will commit it this evening as
obvious.
(Anyone interested in a backport to 4.4?)

Tobias
-------------- next part --------------
A non-text attachment was scrubbed...
Name: arg.diff
Type: text/x-patch
Size: 770 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20100209/c2608239/attachment.bin>


More information about the Gcc-patches mailing list