[all-commits] [llvm/llvm-project] f64243: [libc++][AIX] Use C++ overloads from libc++'s math.h
David Tenty via All-commits
all-commits at lists.llvm.org
Tue Mar 1 12:54:18 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: f642436cc213f99a90e3a4258666dd693b29d79d
https://github.com/llvm/llvm-project/commit/f642436cc213f99a90e3a4258666dd693b29d79d
Author: David Tenty <daltenty at ibm.com>
Date: 2022-03-01 (Tue, 01 Mar 2022)
Changed paths:
M libcxx/include/math.h
M libcxx/test/libcxx/fuzzing/random.pass.cpp
M libcxx/test/std/depr/depr.c.headers/math_h.pass.cpp
M libcxx/test/std/localization/locale.categories/category.time/locale.time.put.byname/put1.pass.cpp
M libcxx/test/std/numerics/c.math/cmath.pass.cpp
M libcxx/test/std/numerics/complex.number/cmplx.over/arg.pass.cpp
M libcxx/test/std/numerics/complex.number/cmplx.over/pow.pass.cpp
M libcxx/test/std/numerics/complex.number/complex.transcendentals/acos.pass.cpp
M libcxx/test/std/numerics/complex.number/complex.transcendentals/acosh.pass.cpp
M libcxx/test/std/numerics/complex.number/complex.transcendentals/asin.pass.cpp
M libcxx/test/std/numerics/complex.number/complex.transcendentals/asinh.pass.cpp
M libcxx/test/std/numerics/complex.number/complex.transcendentals/atan.pass.cpp
M libcxx/test/std/numerics/complex.number/complex.transcendentals/atanh.pass.cpp
M libcxx/test/std/numerics/complex.number/complex.transcendentals/log.pass.cpp
M libcxx/test/std/numerics/complex.number/complex.transcendentals/log10.pass.cpp
M libcxx/test/std/numerics/complex.number/complex.transcendentals/pow_complex_complex.pass.cpp
M libcxx/test/std/numerics/complex.number/complex.transcendentals/pow_complex_scalar.pass.cpp
M libcxx/test/std/numerics/complex.number/complex.transcendentals/pow_scalar_complex.pass.cpp
M libcxx/test/std/numerics/complex.number/complex.transcendentals/sqrt.pass.cpp
M libcxx/test/std/numerics/complex.number/complex.value.ops/arg.pass.cpp
M libcxx/test/std/utilities/function.objects/bind/func.bind/func.bind.bind/copy.pass.cpp
Log Message:
-----------
[libc++][AIX] Use C++ overloads from libc++'s math.h
AIX's system header provides these C++ overloads for compatibility with
older XL C++ implementations, but they can be disabled by defining
__LIBC_NO_CPP_MATH_OVERLOADS__ since AIX 7.2 TL 5 SP 3.
Since D109078 landed clang will define this macro when using libc++ on
AIX and we already run the lit tests with it too. This change will
enable the overloads in libc++'s math.h and we'll continue to require
the compiler to define the macro going forward.
Reviewed By: ldionne, jsji, EricWF
Differential Revision: https://reviews.llvm.org/D102172
co-authored-by: Jason Liu <jasonliu.development at gmail.com>
More information about the All-commits
mailing list