fortran: Extend -fconvert= option for ppc64le r16_ieee and r16_ibm
authorJakub Jelinek <jakub@redhat.com>
Mon, 24 Jan 2022 10:52:30 +0000 (11:52 +0100)
committerJakub Jelinek <jakub@redhat.com>
Mon, 24 Jan 2022 10:52:30 +0000 (11:52 +0100)
commit9acd5a01175a3a0998eaaf306305890081d8550f
tree1a305d8a5b689a4b7007db08a77a7e1a5b7459d0
parentcd0377a460db9d8b286e03a701227ebd62132c89
fortran: Extend -fconvert= option for ppc64le r16_ieee and r16_ibm

This patch on top of the previously posted option handling changes patch
allows specifying -fconvert=swap,r16_ieee etc. (but will error on it
when not on powerpc64le because in the library such swapping is only
implemented for HAVE_REAL_17).

2022-01-24  Jakub Jelinek  <jakub@redhat.com>

* lang.opt (fconvert=): Add EnumSet property and mention also
r16_ieee and r16_ibm arguments.
(big-endian, little-endian, native, swap): Add Set(1) property.
(r16_ieee, r16_ibm): New EnumValue entries with Set(2) property.
* trans-types.cc (gfc_init_kinds): Emit gfc_fatal_error for
-fconvert=r16_ieee or -fconvert=r16_ibm when R16_IEEE <=> R16_IBM
conversions aren't supported.
gcc/fortran/lang.opt
gcc/fortran/trans-types.cc