PR fortran/23815: Add byte-swapping to gfortran

Thomas Koenig Thomas.Koenig@online.de
Wed Nov 16 21:18:00 GMT 2005


On Wed, Nov 16, 2005 at 10:07:00PM +0100, Tobias.Schlueter@Physik.Uni-Muenchen.DE wrote:

> So there should be support for kind=10.

Currently, we're incompatible even between little-endian i686 and
x86_64/Itanium, because of size size=12 vs. size=16.

I could add keywords like CONVERT="i686", CONVERT="x86_64" and
CONVERT="m68k" which would be equivalent to "LITTLE_ENDIAN" and
"BIG_ENDIAN", respectively, except in their treatment of extended
doubles.  This is probably the way to go, in the longer term.  And
then there's conversions for "IBM", "VAXD", "FGX" and all that...
a bit too much complexity for a first patch.

In the short term, should I settle for straight byte reversal and
hope for the best on the 12/16 size issue?

	Thomas



More information about the Gcc-patches mailing list