This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] PR libstdc++/84654 Do not use __float128 if it is disabled by the compiler
- From: Marc Glisse <marc dot glisse at inria dot fr>
- To: Tulio Magno Quites Machado Filho <tuliom at linux dot vnet dot ibm dot com>
- Cc: libstdc++ at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org, wschmidt at linux dot vnet dot ibm dot com, segher at kernel dot crashing dot org
- Date: Thu, 1 Mar 2018 19:54:36 +0100 (CET)
- Subject: Re: [PATCH] PR libstdc++/84654 Do not use __float128 if it is disabled by the compiler
- Authentication-results: sourceware.org; auth=none
- References: <20180301184719.16691-1-tuliom@linux.vnet.ibm.com>
- Reply-to: libstdc++ at gcc dot gnu dot org
On Thu, 1 Mar 2018, Tulio Magno Quites Machado Filho wrote:
In order to use the __float128 in C++ it's necessary to check if
it is supported in libstdc++ (i.e. via _GLIBCXX_USE_FLOAT128) and if the
compiler enabled its support too, e.g. -mfloat128 or -mno-float128.
Shouldn't we ensure that _GLIBCXX_USE_FLOAT128 is undefined instead?
By the way, __FLOAT128__ is power-only. x86 has __SIZEOF_FLOAT128__
instead (why did power pick a different name?).
--
Marc Glisse