[gfortran] Fortran 2003 command line argument intrinsics.

Janne Blomqvist jblomqvi@cc.hut.fi
Mon Jul 5 06:55:00 GMT 2004


On Sun, Jul 04, 2004 at 06:00:26PM +0100, Paul Brook wrote:
> <plus various followups>

Sorry about that...

> I've made a few changes, and applied your patch as attached:

Thanks.

> - GFC_ISYM_NONE is deliberately not handled (it should always be eliminated in 
> the frontend). I've added new values for iargc and command_argument_count.

I have to admit, I'm somewhat confused as to why iargc (and
command_argument_count) broke and getarg (and the f2003 stuff) worked,
although both were implemented very similarly, with NULL pointers to
all those check and resolve functions (in the original patches by Bud
and me). Or alternatively, why didn't getarg et. al. need their own
GFC_ISYM_XXX??

> - Your implementation broke when KIND(0) == 8, and so did the existing 
> iargc/getarg.

Yes, I was aware of that. Thought I'd try to fix it by sprinkling some
M4 magic dust over it later, but your way seems better I have to
admit.

> - get_command still didn't work when iargc==0 

Huh? Isn't argc always >= 1? Or is it 0 for some weird platform
without the concept of a command line?


-- 
Janne Blomqvist



More information about the Fortran mailing list