[gfortran] Fix NULL reference types.

Richard Henderson rth@redhat.com
Thu Aug 19 06:33:00 GMT 2004


On Wed, Aug 18, 2004 at 11:04:20PM -0700, Mark Mitchell wrote:
> RTH, do you object to Nathan's documentation patch?  It would give us an 
> easy way to give the optimizers a little more information.

I think I do, at least for the moment.

Paul was explaining on IRC how Fortran optional arguments work.
They're passed by reference, but NULL of the argument is omitted.
And there's an intrinsic that you can query to see if the argument
was omitted and so avoid accessing the argument.

Now, from an optimization standpoint, sure he can go ahead and
use a pointer type and everything works.  But from a debugging
standpoint, we've just messed things up.  And I'm not sure how
best to go about rectifying that.


r~



More information about the Fortran mailing list