[Patch, fortran] PR23060 - %VAL, %LOC and %REF

Paul Thomas paulthomas2@wanadoo.fr
Fri Dec 29 17:20:00 GMT 2006


:ADDPATCH fortran:

This patch implements the argument list "functions" %VAL, %LOC and %REF.

It is straightforward upto the following remarks:
(i) It was not evident how to implement these so-called functions
because their context is so specific.  Rather than implementing
intrinsic functions, I have chosen to signal them using the keyword
name field of the actual_arglist structure.  This does not lead to any
problems because these relics commence with '%'.  I thought that it
would be too cumbersome to make this field a union of two names.
(ii) I have chosen to dodge the CHARACTER question by implementing
these functions as for Digital Fortran; ie. I have not allowed
CHARACTER arguments!
(iii) Unlike Digital Fortran, complex arguments are permitted in %VAL.
(iv) The tests are a minimum to check the basic functionailty.

Bootstrapped and regtested on ia64/FC5 - OK for trunk?

Paul
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Change.Logs
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20061229/67504f6b/attachment.ksh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: val.diff
Type: text/x-patch
Size: 16501 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20061229/67504f6b/attachment.bin>


More information about the Gcc-patches mailing list