This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PR fortran/23815: Add byte-swapping to gfortran
>> Is that an already existent extension used by other compilers (and
>> which)?
Sorry, but being ignorant, I can only repeat that question. Are there
other compilers with a CONVERT keyword for the OPEN statement?
> A compile-time or link-time switch would make it impossible to write a program
> that converts between different endiannesses or reads files with different
> endiannesses. Without a language extension, this would only be possible with
> per-unit environment variables.
Either per-unit or a environment variable that contains a list of
units: GFORTRAN_SWAPBYT_UNITS=10,15,17. Although I'm not much in
favour of environment variables in general, in that case it seems the
best way to go.
FX