[Bug libstdc++/60401] stdlib.h does not provide abs(long) overload

2016-01-21 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60401 --- Comment #16 from Jonathan Wakely --- (In reply to Jonathan Wakely from comment #15) > After discussing this on IRC I'll make a change to support this use case, > without needing to rebuild libstdc++ when glibc is updated. I've created https:

[Bug libstdc++/60401] stdlib.h does not provide abs(long) overload

2016-01-21 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60401 --- Comment #15 from Jonathan Wakely --- (In reply to Jonathan Wakely from comment #14) > So I believe the problem is that you need to reconfigure libstdc++ with the > new glibc headers, you can't just drop them in later and expect an > already-b

[Bug libstdc++/60401] stdlib.h does not provide abs(long) overload

2016-01-21 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60401 --- Comment #14 from Jonathan Wakely --- (In reply to Dominik Vogt from comment #13) > -- snip -- > In file included from .../git/gcc/install/include/c++/6.0.0/math.h:36:0, >from x.C:1: > .../gcc/install/include/c++/6.0.0/

[Bug libstdc++/60401] stdlib.h does not provide abs(long) overload

2016-01-21 Thread vogt at linux dot vnet.ibm.com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60401 --- Comment #13 from Dominik Vogt --- I'm running into problems testing the latest Gcc with the latest Glibc. The test program is just #include It's a bit difficult to provide the propert args to g++ to make it use the replacement Glibc aft

[Bug libstdc++/60401] stdlib.h does not provide abs(long) overload

2016-01-21 Thread vogt at linux dot vnet.ibm.com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60401 --- Comment #12 from Dominik Vogt --- Regarding the Glibc fix; do you mean this commit? 2016-01-11 13:34 Adhemerval Zanella * Fix isinf/isnan declaration conflict with C++11 That does *not* fix the isnan and isinf errors.

[Bug libstdc++/60401] stdlib.h does not provide abs(long) overload

2016-01-21 Thread vogt at linux dot vnet.ibm.com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60401 --- Comment #11 from Dominik Vogt --- Looks good, the errors are gone now. Thanks!

[Bug libstdc++/60401] stdlib.h does not provide abs(long) overload

2016-01-20 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60401 --- Comment #10 from Jonathan Wakely --- Author: redi Date: Wed Jan 20 17:44:58 2016 New Revision: 232627 URL: https://gcc.gnu.org/viewcvs?rev=232627&root=gcc&view=rev Log: Add C++11 overloads to the global namespace PR libstdc++/60401

[Bug libstdc++/60401] stdlib.h does not provide abs(long) overload

2016-01-20 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60401 --- Comment #9 from Jonathan Wakely --- The isnan and isinf errors need a glibc fix, which will be in glibc 2.23, the rest I have a patch for.

[Bug libstdc++/60401] stdlib.h does not provide abs(long) overload

2016-01-20 Thread vogt at linux dot vnet.ibm.com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60401 --- Comment #8 from Dominik Vogt --- List of functions the test complains about: acosh, asinh, atanh, cbrt, copysign, erf, erfc, exp2, expm1, fdim, fma, fmax, fmin, hypot, ilogb, isinf, isnan, lgamma, llrint, llround, log1p, log2, logb, lrint, l

[Bug libstdc++/60401] stdlib.h does not provide abs(long) overload

2016-01-20 Thread vogt at linux dot vnet.ibm.com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60401 --- Comment #7 from Dominik Vogt --- Created attachment 37408 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37408&action=edit List of errors This is a list of all remaining errors of the Plumhall test. I've not checked whether they all d

[Bug libstdc++/60401] stdlib.h does not provide abs(long) overload

2016-01-20 Thread vogt at linux dot vnet.ibm.com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60401 --- Comment #6 from Dominik Vogt --- The fix seems to be incomplete. This program still does not compile: -- snip -- #include static long double (*p3c_)(long double) = acosh; -- snip -- $ g++ -std=c++11 -S x.C x.C:3:43: error: invalid con

[Bug libstdc++/60401] stdlib.h does not provide abs(long) overload

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

[Bug libstdc++/60401] stdlib.h does not provide abs(long) overload

2016-01-19 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60401 --- Comment #4 from Jonathan Wakely --- Author: redi Date: Tue Jan 19 21:43:55 2016 New Revision: 232586 URL: https://gcc.gnu.org/viewcvs?rev=232586&root=gcc&view=rev Log: Add C++-conforming wrappers for stdlib.h and math.h PR libstdc++

[Bug libstdc++/60401] stdlib.h does not provide abs(long) overload

2014-03-04 Thread glisse at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60401 --- Comment #3 from Marc Glisse --- (dup of PR 33935) (In reply to Richard Biener from comment #1) > If you include stdlib.h and not cstdlib it's a glibc bug, not a > gcc/libstdc++ one. It would make sense for libstdc++ to provide wrappers to th

[Bug libstdc++/60401] stdlib.h does not provide abs(long) overload

2014-03-04 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60401 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Last reconfirmed|

[Bug libstdc++/60401] stdlib.h does not provide abs(long) overload

2014-03-04 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60401 --- Comment #1 from Richard Biener --- If you include stdlib.h and not cstdlib it's a glibc bug, not a gcc/libstdc++ one.