diff options
author | Adhemerval Zanella <azanella@linux.vnet.ibm.com> | 2013-03-26 10:01:57 -0300 |
---|---|---|
committer | Ryan S. Arnold <rsa@linux.vnet.ibm.com> | 2013-07-25 15:12:42 -0500 |
commit | dad835a11f370afd2dae4bac554fa64fac5a8c6e (patch) | |
tree | c7582f477e1370ad5201c44283f4edeb5684ba0e | |
parent | 45045c44fabde9152ab1a0b4ed06419a3621f535 (diff) | |
download | glibc-dad835a11f370afd2dae4bac554fa64fac5a8c6e.tar.gz |
PowerPC: fix libm ABI issue for llroundl
(cherry picked from commit fce14d4e9c6e08ad8c825fe88d8cbdac5c739565)
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | sysdeps/powerpc/fpu/s_llround.c | 4 |
2 files changed, 9 insertions, 0 deletions
@@ -1,3 +1,8 @@ +2013-03-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com> + + * sysdeps/powerpc/fpu/s_llround.c: Fix libm ABI issue with missing + llroundl symbol when building for PPC32. + 2013-03-21 Adhemerval Zanella <azanella@linux.vnet.ibm.com> * sysdeps/powerpc/fpu/w_sqrt.c (compat_symbol): Add sqrtl compat diff --git a/sysdeps/powerpc/fpu/s_llround.c b/sysdeps/powerpc/fpu/s_llround.c index c30400b3ed..988ef9fcf8 100644 --- a/sysdeps/powerpc/fpu/s_llround.c +++ b/sysdeps/powerpc/fpu/s_llround.c @@ -17,6 +17,7 @@ <http://www.gnu.org/licenses/>. */ #include <math.h> +#include <math_ldbl_opt.h> /* I think that what this routine is supposed to do is round a value to the nearest integer, with values exactly on the boundary rounded @@ -47,3 +48,6 @@ weak_alias (__llround, llround) strong_alias (__llround, __llroundl) weak_alias (__llround, llroundl) #endif +#if LONG_DOUBLE_COMPAT (libm, GLIBC_2_1) +compat_symbol (libm, __llround, llroundl, GLIBC_2_1); +#endif |