From 53994f12633b863eb833fc3b1f6971ae8de61ff8 Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Wed, 6 Dec 2017 13:42:58 +0000 Subject: Make some ldbl-128, ldbl-128ibm arrays const. I noticed that an x86_64 build of libm unexpectedly contained more non-constant data than an older version (before _Float128 support) did. The problem is non-const arrays in the ldbl-128 j0l and j1l implementations; this patch makes those arrays, and the corresponding ldbl-128ibm ones, const. Tested for x86_64, and tested compilation for powerpc with build-many-glibcs.py. * sysdeps/ieee754/ldbl-128/e_j0l.c (Y0_2N): Make const. (Y0_2D): Likewise. * sysdeps/ieee754/ldbl-128/e_j1l.c (Y0_2N): Likewise. (Y0_2D): Likewise. * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (Y0_2N): Likewise. (Y0_2D): Likewise. * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (Y0_2N): Likewise. (Y0_2D): Likewise. --- sysdeps/ieee754/ldbl-128ibm/e_j1l.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sysdeps/ieee754/ldbl-128ibm/e_j1l.c') diff --git a/sysdeps/ieee754/ldbl-128ibm/e_j1l.c b/sysdeps/ieee754/ldbl-128ibm/e_j1l.c index 5956c97b82..e70cae1ad4 100644 --- a/sysdeps/ieee754/ldbl-128ibm/e_j1l.c +++ b/sysdeps/ieee754/ldbl-128ibm/e_j1l.c @@ -738,7 +738,7 @@ strong_alias (__ieee754_j1l, __j1l_finite) Peak relative error 6.2e-38 0 <= x <= 2 */ #define NY0_2N 7 -static long double Y0_2N[NY0_2N + 1] = { +static const long double Y0_2N[NY0_2N + 1] = { -6.804415404830253804408698161694720833249E19L, 1.805450517967019908027153056150465849237E19L, -8.065747497063694098810419456383006737312E17L, @@ -749,7 +749,7 @@ static long double Y0_2N[NY0_2N + 1] = { 9.541172044989995856117187515882879304461E5L, }; #define NY0_2D 7 -static long double Y0_2D[NY0_2D + 1] = { +static const long double Y0_2D[NY0_2D + 1] = { 3.470629591820267059538637461549677594549E20L, 4.120796439009916326855848107545425217219E18L, 2.477653371652018249749350657387030814542E16L, -- cgit v1.2.3