powerpc64le: Enforce -mabi=ibmlongdouble when -mfloat128 used
commit6f82d05034178eee756dfe09472948130748ad39
authorPaul E. Murphy <murphyp@linux.vnet.ibm.com>
Fri, 7 Feb 2020 20:08:12 +0000 (7 14:08 -0600)
committerPaul E. Murphy <murphyp@linux.vnet.ibm.com>
Mon, 6 Apr 2020 15:23:58 +0000 (6 10:23 -0500)
tree9bc130f25a841a55889415d0b231c7a940863b2f
parent25ee3931f03cae31f5006c438d939544f717666a
powerpc64le: Enforce -mabi=ibmlongdouble when -mfloat128 used

I have observed a bug on 7.4.0 whereby __mulkc3 calls are
swapped with __multc3 depending on ABI selection.  For the
sake of being overly cautious, build all _Float128 files
with ibm128 to workaround these compilers.  This has been
noted in GCC BZ 84914, and will not be fixed for GCC 7.

Likewise, non-math files built with _Float128 are assumed
to have ibm long double.  Explicilty preserve this
assumption.

Finally, add some bootstrapping code to avoid applying
these options until IEEE long double is enabled as they
require GCC 7 and above.

Reviewed-by: Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
sysdeps/powerpc/powerpc64/le/Makefile
sysdeps/powerpc/powerpc64/le/fpu/multiarch/Makefile