[PATCH] D134938: [libc++] Add option to disable long double math support in libc++

Michael Platings via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 30 07:16:55 PDT 2022


michaelplatings updated this revision to Diff 464271.
michaelplatings added a comment.
Herald added subscribers: llvm-commits, arichardson.
Herald added a project: LLVM.

Hi Nikolas, thanks for the quick response.

The errors look like:

  include/c++/v1/math.h:794:93: error: no member named 'acosl' in the global namespace
  inline _LIBCPP_INLINE_VISIBILITY long double acos(long double __lcpp_x) _NOEXCEPT {return ::acosl(__lcpp_x);}
                                                                                            ~~^

I've added a runner as you suggested and updated the tests accordingly.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D134938/new/

https://reviews.llvm.org/D134938

Files:
  libcxx/CMakeLists.txt
  libcxx/cmake/caches/Generic-no-long-double-math.cmake
  libcxx/docs/BuildingLibcxx.rst
  libcxx/include/__config_site.in
  libcxx/include/cmath
  libcxx/include/math.h
  libcxx/test/std/depr/depr.c.headers/math_h.pass.cpp
  libcxx/test/std/localization/locale.categories/category.numeric/locale.num.get/facet.num.get.members/get_long_double.pass.cpp
  libcxx/test/std/numerics/c.math/abs.pass.cpp
  libcxx/test/std/numerics/c.math/cmath.pass.cpp
  libcxx/test/std/numerics/c.math/lerp.pass.cpp
  libcxx/test/std/numerics/complex.number/cmplx.over/arg.pass.cpp
  libcxx/test/std/numerics/complex.number/cmplx.over/pow.pass.cpp
  libcxx/test/std/numerics/complex.number/complex.member.ops/divide_equal_complex.pass.cpp
  libcxx/test/std/numerics/complex.number/complex.ops/complex_divide_complex.pass.cpp
  libcxx/test/std/numerics/complex.number/complex.ops/scalar_divide_complex.pass.cpp
  libcxx/test/std/numerics/complex.number/complex.transcendentals/acos.pass.cpp
  libcxx/test/std/numerics/complex.number/complex.transcendentals/acosh.pass.cpp
  libcxx/test/std/numerics/complex.number/complex.transcendentals/asin.pass.cpp
  libcxx/test/std/numerics/complex.number/complex.transcendentals/asinh.pass.cpp
  libcxx/test/std/numerics/complex.number/complex.transcendentals/atan.pass.cpp
  libcxx/test/std/numerics/complex.number/complex.transcendentals/atanh.pass.cpp
  libcxx/test/std/numerics/complex.number/complex.transcendentals/cos.pass.cpp
  libcxx/test/std/numerics/complex.number/complex.transcendentals/cosh.pass.cpp
  libcxx/test/std/numerics/complex.number/complex.transcendentals/exp.pass.cpp
  libcxx/test/std/numerics/complex.number/complex.transcendentals/log.pass.cpp
  libcxx/test/std/numerics/complex.number/complex.transcendentals/log10.pass.cpp
  libcxx/test/std/numerics/complex.number/complex.transcendentals/pow_complex_complex.pass.cpp
  libcxx/test/std/numerics/complex.number/complex.transcendentals/pow_complex_scalar.pass.cpp
  libcxx/test/std/numerics/complex.number/complex.transcendentals/pow_scalar_complex.pass.cpp
  libcxx/test/std/numerics/complex.number/complex.transcendentals/sin.pass.cpp
  libcxx/test/std/numerics/complex.number/complex.transcendentals/sinh.pass.cpp
  libcxx/test/std/numerics/complex.number/complex.transcendentals/sqrt.pass.cpp
  libcxx/test/std/numerics/complex.number/complex.transcendentals/tan.pass.cpp
  libcxx/test/std/numerics/complex.number/complex.transcendentals/tanh.pass.cpp
  libcxx/test/std/numerics/complex.number/complex.value.ops/abs.pass.cpp
  libcxx/test/std/numerics/complex.number/complex.value.ops/arg.pass.cpp
  libcxx/test/std/numerics/complex.number/complex.value.ops/polar.pass.cpp
  libcxx/test/std/numerics/numeric.ops/numeric.ops.midpoint/midpoint.float.pass.cpp
  libcxx/test/support/test_macros.h
  libcxx/utils/ci/buildkite-pipeline.yml
  libcxx/utils/ci/run-buildbot
  libcxx/utils/libcxx/test/features.py
  llvm/utils/gn/secondary/libcxx/include/BUILD.gn

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D134938.464271.patch
Type: text/x-patch
Size: 192225 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220930/113fcb24/attachment-0001.bin>


More information about the llvm-commits mailing list