[Patch, Fortran] Change array descriptor's "data" to "base_addr" for TS 29113
Tobias Burnus
burnus@net-b.de
Sat Mar 10 15:53:00 GMT 2012
The attached patch renames (in libgfortran/) the array descriptor's
"data" field to "base_addr" and "lbound" to "lower_bound".
The reason is that Technical Specification (TS) 29113* uses those names
in their C bindings, defined in ISO_Fortran_binding.h. But I would like
to include that header file in libgfortran/libgfortran.h (cf.
fortran-dev branch). Hence, the renaming.
In order to make later merging of the fortran-dev branch into the trunk
easier to review, I'd prefer to commit this patch already to the trunk,
but it can also be commit to the branch.
The patch shouldn't have any effect in terms of the ABI, however, I am
not sure whether it formally fulfills the criteria in C99's 6.2.7p1**
(compatible type and composite type). On the other hand, the fields in
the dimension triplet are already differently named: "ubound"
(gcc/fortran/trans-types.c) vs. "_ubound" (libgfortran/libgfortran.h).
Okay for the trunk? (Or for the fortran-dev branch?) Comments?
(Bootstrapped and regtested on x86-64-linux.)
Tobias
* Current TS 29113 draft: ftp://ftp.nag.co.uk/sc22wg5/N1901-N1950/N1904.pdf
** C99 plus TC1 to TC3,
http://www.open-std.org/JTC1/SC22/WG14/www/docs/n1256.pdf
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ChangeLog-base_addr.txt
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20120310/38f62b58/attachment.txt>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: generated.diff.gz
Type: application/x-gzip
Size: 31370 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20120310/38f62b58/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: base_addr.diff.gz
Type: application/x-gzip
Size: 13046 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20120310/38f62b58/attachment-0001.bin>
More information about the Fortran
mailing list