[Bug libstdc++/60637] --fast-math breaks std::signbit function

2016-01-18 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60637 --- Comment #11 from Jonathan Wakely --- Author: redi Date: Mon Jan 18 17:15:42 2016 New Revision: 232534 URL: https://gcc.gnu.org/viewcvs?rev=232534=gcc=rev Log: Add test for PR 60637 PR libstdc++/60637 *

[Bug libstdc++/60637] --fast-math breaks std::signbit function

2016-01-18 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60637 --- Comment #9 from Jonathan Wakely --- Author: redi Date: Mon Jan 18 16:28:48 2016 New Revision: 232532 URL: https://gcc.gnu.org/viewcvs?rev=232532=gcc=rev Log: Fix C++98 std::signbit PR libstdc++/60637 *

[Bug libstdc++/60637] --fast-math breaks std::signbit function

2016-01-18 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60637 --- Comment #8 from Jonathan Wakely --- Author: redi Date: Mon Jan 18 16:28:16 2016 New Revision: 232531 URL: https://gcc.gnu.org/viewcvs?rev=232531=gcc=rev Log: Fix C++98 std::signbit PR libstdc++/60637 *

[Bug libstdc++/60637] --fast-math breaks std::signbit function

2016-01-18 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60637 Jonathan Wakely changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug libstdc++/60637] --fast-math breaks std::signbit function

2016-01-12 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60637 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Last reconfirmed|

[Bug libstdc++/60637] --fast-math breaks std::signbit function

2016-01-12 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60637 --- Comment #4 from Jonathan Wakely --- I think we can fix the C++98 std::signbit(_Tp) with: typedef typename __gnu_cxx::__promote<_Tp>::__type __type; return sizeof(__type) == sizeof(long double) ?

[Bug libstdc++/60637] --fast-math breaks std::signbit function

2016-01-12 Thread glisse at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60637 --- Comment #5 from Marc Glisse --- (In reply to Jonathan Wakely from comment #4) > I think we can fix the C++98 std::signbit(_Tp) with: > > typedef typename __gnu_cxx::__promote<_Tp>::__type __type; > return sizeof(__type) ==

[Bug libstdc++/60637] --fast-math breaks std::signbit function

2016-01-12 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60637 --- Comment #7 from Jonathan Wakely --- To be clear, I'm not opposed to reusing the C++11 code for the non-standard C++98 functions (all of them, not just signbit). That seems like a reasonable project to undertake in stage 1, if someone is

[Bug libstdc++/60637] --fast-math breaks std::signbit function

2016-01-12 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60637 --- Comment #6 from Jonathan Wakely --- (In reply to Marc Glisse from comment #5) > Why do you want to use a different code for C++98 and C++11? The best > solution would be to remove the declaration in C++98, since it is not > standard, but if

[Bug libstdc++/60637] --fast-math breaks std::signbit function

2016-01-07 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60637 --- Comment #3 from Jonathan Wakely --- Thanks to PR 36757 __builtin_signbit is now generic, so this is fixed on trunk.

[Bug libstdc++/60637] --fast-math breaks std::signbit function

2016-01-07 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60637 Jonathan Wakely changed: What|Removed |Added Known to work||6.0 Severity|major

[Bug libstdc++/60637] --fast-math breaks std::signbit function

2014-03-24 Thread daniel.kruegler at googlemail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60637 --- Comment #1 from Daniel Krügler daniel.kruegler at googlemail dot com --- This seems to be fixed in 4.9.0 trunk. My guess is that this was solved via bug 58625.

[Bug libstdc++/60637] --fast-math breaks std::signbit function

2014-03-24 Thread glisse at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60637 --- Comment #2 from Marc Glisse glisse at gcc dot gnu.org --- IIUC (with gcc-4.9), signbit is not part of C++98, and with -std=c++11 things work. In C++98 mode, libstdc++ (sometimes) provides std::signbit as an extension, which calls