[PATCH] [libc++] Support Newlib as libc++'s C library (on ARM) [cmath part, part 1]

Renato Golin renato.golin at linaro.org
Mon Sep 22 18:27:11 PDT 2014


================
Comment at: src/support/newlib/math.cpp:15
@@ +14,3 @@
+#if defined(__arm__) && !defined(__LP64__)
+static_assert(sizeof(long double) == sizeof(double),
+              "These implementations assume: LDBL == DBL");
----------------
you wont need this assert if you use the same macro as above (double == long double), right? Possibly not even the comment...

http://reviews.llvm.org/D5419






More information about the cfe-commits mailing list