aboutsummaryrefslogtreecommitdiff
path: root/gcc/config.gcc
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2019-06-25 14:18:36 +0100
committerJonathan Wakely <redi@gcc.gnu.org>2019-06-25 14:18:36 +0100
commite88d863cbde6ee90709d291670a843346f84d3b6 (patch)
treeca3250791e2d84089352d0a3ea60b47fbcef317e /gcc/config.gcc
parent247b63e33d21cb5971ae93c8232a50c678480eeb (diff)
downloadgcc-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