Handle R16 conversion for POWER in the environment variables.
authorThomas Koenig <tkoenig@gcc.gnu.org>
Mon, 10 Jan 2022 22:34:56 +0000 (23:34 +0100)
committerJakub Jelinek <jakub@redhat.com>
Tue, 11 Jan 2022 22:49:53 +0000 (23:49 +0100)
commita574503ff95691c932fd896568f6914a63be4a02
treefd8d8d4161142d657e3e7878c1989fbb673d1c35
parent9840285d877c5820d75d1347fc2a4f176ab31b11
Handle R16 conversion for POWER in the environment variables.

This patch handles the environment variables for the REAL(KIND=16)
variables like for the little/big-endian routines, so users without
who have no access to the source or are unwilling to recompile
can use this.

Syntax is, for example

GFORTRAN_CONVERT_UNIT="r16_ieee:10;little_endian:10" ./a.out

libgfortran/ChangeLog:

* runtime/environ.c (R16_IEEE): New macro.
(R16_IBM): New macro.
(next_token): Handle IBM R16 conversion cases.
(push_token): Likewise.
(mark_single): Likewise.
(do_parse): Likewise, initialize endian.
libgfortran/runtime/environ.c