diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2019-06-25 14:18:36 +0100 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2019-06-25 14:18:36 +0100 |
commit | e88d863cbde6ee90709d291670a843346f84d3b6 (patch) | |
tree | ca3250791e2d84089352d0a3ea60b47fbcef317e /gcc/config.gcc | |
parent | 247b63e33d21cb5971ae93c8232a50c678480eeb (diff) | |
download | gcc-e88d863cbde6ee90709d291670a843346f84d3b6.zip gcc-e88d863cbde6ee90709d291670a843346f84d3b6.tar.gz gcc-e88d863cbde6ee90709d291670a843346f84d3b6.tar.bz2 |
Fix non-portable use of std::abs(double) in constexpr function
Although libstdc++ adds 'constexpr' to its std::abs(floating-point)
overloads (as a non-conforming extension), those overloads are not used
if the target libc provides them, which is the case on Solaris.
The fix is to avoid std::abs and simply apply the negation when needed.
* include/std/numeric (midpoint(T, T)): Avoid std::abs in constexpr
function.
From-SVN: r272653
Diffstat (limited to 'gcc/config.gcc')
0 files changed, 0 insertions, 0 deletions