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: [Patch, fortran] PR23060 - %VAL, %LOC and %REF


I was going through old mailing-list stuff, and came across this:

Paul Thomas wrote:
: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.

Did this ever get documented in the "Extensions" part of gfortran.texi?


It's nice to implement new features and all, but they don't "really" exist unless people outside the development cabal can use them, and that means documenting them. :)

- Brooks


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