[llvm-dev] RFC: Adding debug information to LLVM to support Fortran
John Reagan via llvm-dev
llvm-dev at lists.llvm.org
Fri Nov 2 14:34:26 PDT 2018
We use DW_TAG_string_type on OpenVMS I64 for Fortran CHARACTER*n,
Pascal's PACKED ARRAY OF CHAR, COBOL, etc. We'll want it as well. I
had sorta assumed it was already there?
For arrays with run-time bounds, we have them too in Pascal (they are
called "Schema Types" in the Extended Pascal standard). I'd prefer that
you pick a more generic name than "DIFortranSubrange" Again on OpenVMS
I64, we support bounds as subranges with literals, simple locations, or
thunk calls (as Pascal's computation of array bounds or size can get
complicated with uplevel referencing in the mix - we didn't want to have
to describe how to walk the static link in a location expression)
And Fortran's assumed shape arrays is exactly mapped to an OpenVMS
descriptor format (we have several) so we'll use these as well for
non-Fortran too.
Other than suggesting to make the names less Fortran specific (the folks
looking at adding PL/1 support would probably want to leverage all of
this, Ada too if somebody tackles that), I'm OK with the approach.
John
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20181102/8487c5ce/attachment.sig>
More information about the llvm-dev
mailing list