https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85672

--- Comment #8 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Marc Glisse from comment #7)
> Yes, or maybe don't generate #define _GLIBCXX_USE_FLOAT128 0 but instead /*
> #undef _GLIBCXX_USE_FLOAT128 */ as we used to do and as the rest of the
> c++config.h file does.

All of those are auto-generated. The custom logic for the float128 macro isn't
auto-generated.

> Actually, I am not sure why r259813 needed to change
> so many things...

Because changing /* #undef _GLIBCXX_USE_FLOAT128 */ to a #define was done by
autoconf, and that gets automatically added at the end of the c++config file
after any manual alterations. The new logic that does:

#if defined(__FLOAT128__) || defined(__SIZEOF_FLOAT128__)
#undef _GLIBCXX_USE_FLOAT128
#endif

comes before the automatically added parts.

My autotools-fu is too weak to come up with anything better but I'd be very
happy if you can suggest something cleaner.

Reply via email to