[PATCHv2] PR libstdc++/84654 Do not use __float128 if it is disabled by the compiler
Tulio Magno Quites Machado Filho
tuliom@linux.vnet.ibm.com
Mon Mar 26 15:19:00 GMT 2018
Ping?
Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com> writes:
> Changes since v1:
> - Completely rewrite of the patch to set ENABLE_FLOAT128 at libstdc++
> build time and undef _GLIBCXX_USE_FLOAT128 when building user code.
>
> --- 8< ---
>
> In order to use __float128 in C++ it's necessary to check if the
> compiler enabled its support too when building user code.
> This patch changes the behavior at libstdc++ build by setting
> ENABLE_FLOAT128, which is used to set the value of the exported macro
> _GLIBCXX_USE_FLOAT128.
>
> 2018-03-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
>
> PR libstdc++/84654
> * acinclude.m4: Set ENABLE_FLOAT128 instead of _GLIBCXX_USE_FLOAT128.
> * config.h.in: Remove references to _GLIBCXX_USE_FLOAT128.
> * configure: Regenerate.
> * include/Makefile.am: Replace the value of _GLIBCXX_USE_FLOAT128
> based on ENABLE_FLOAT128.
> * include/Makefile.in: Regenerate.
> * include/bits/c++config: Define _GLIBCXX_USE_FLOAT128.
> [!defined(__FLOAT128__) && !defined(__SIZEOF_FLOAT128__)]: Undefine
> _GLIBCXX_USE_FLOAT128.
--
Tulio Magno
More information about the Libstdc++
mailing list