]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Don't include math.h/math_private.h in math_ldbl_opt.h.
authorZack Weinberg <zackw@panix.com>
Wed, 7 Mar 2018 16:45:35 +0000 (16:45 +0000)
committerZack Weinberg <zackw@panix.com>
Sat, 10 Mar 2018 20:18:08 +0000 (15:18 -0500)
The sysdeps/ieee754/ldbl-opt version of math_ldbl_opt.h includes
math.h and math_private.h, despite not having any need for those
headers itself; the sysdeps/generic version doesn't.  About 20 files
are relying on math_ldbl_opt.h to include math.h and/or math_private.h
for them, even though none of them necessarily used on a platform that
needs ldbl-opt support.

* sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Don't include
math.h or math_private.h.

* sysdeps/alpha/fpu/s_isnan.c
* sysdeps/ieee754/ldbl-128ibm/s_ceill.c
* sysdeps/ieee754/ldbl-128ibm/s_floorl.c
* sysdeps/ieee754/ldbl-128ibm/s_llrintl.c
* sysdeps/ieee754/ldbl-128ibm/s_llroundl.c
* sysdeps/ieee754/ldbl-128ibm/s_lrintl.c
* sysdeps/ieee754/ldbl-128ibm/s_lroundl.c
* sysdeps/ieee754/ldbl-128ibm/s_rintl.c
* sysdeps/ieee754/ldbl-128ibm/s_roundl.c
* sysdeps/ieee754/ldbl-128ibm/s_truncl.c
* sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c
* sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c:
* sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c
* sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c
* sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c:
Include math_private.h.

* sysdeps/ieee754/ldbl-64-128/s_finitel.c
* sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c
* sysdeps/ieee754/ldbl-64-128/s_isinfl.c
* sysdeps/ieee754/ldbl-64-128/s_isnanl.c
* sysdeps/ieee754/ldbl-64-128/s_signbitl.c
* sysdeps/powerpc/power7/fpu/s_logb.c:
Include math.h and math_private.h.

23 files changed:
ChangeLog
sysdeps/alpha/fpu/s_isnan.c
sysdeps/ieee754/ldbl-128ibm/s_ceill.c
sysdeps/ieee754/ldbl-128ibm/s_floorl.c
sysdeps/ieee754/ldbl-128ibm/s_llrintl.c
sysdeps/ieee754/ldbl-128ibm/s_llroundl.c
sysdeps/ieee754/ldbl-128ibm/s_lrintl.c
sysdeps/ieee754/ldbl-128ibm/s_lroundl.c
sysdeps/ieee754/ldbl-128ibm/s_rintl.c
sysdeps/ieee754/ldbl-128ibm/s_roundl.c
sysdeps/ieee754/ldbl-128ibm/s_truncl.c
sysdeps/ieee754/ldbl-64-128/s_finitel.c
sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c
sysdeps/ieee754/ldbl-64-128/s_isinfl.c
sysdeps/ieee754/ldbl-64-128/s_isnanl.c
sysdeps/ieee754/ldbl-64-128/s_signbitl.c
sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h
sysdeps/powerpc/power7/fpu/s_logb.c
sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c
sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c
sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c
sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c
sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c

index e23ef4c6f4050f80251600206a6b00b6ec309ead..395f4e50c9f457657bc35c1a49ccd682ca955ebf 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,33 @@
 2018-03-10  Zack Weinberg  <zackw@panix.com>
 
+       * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Don't include
+       math.h or math_private.h.
+
+       * sysdeps/alpha/fpu/s_isnan.c
+       * sysdeps/ieee754/ldbl-128ibm/s_ceill.c
+       * sysdeps/ieee754/ldbl-128ibm/s_floorl.c
+       * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c
+       * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c
+       * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c
+       * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c
+       * sysdeps/ieee754/ldbl-128ibm/s_rintl.c
+       * sysdeps/ieee754/ldbl-128ibm/s_roundl.c
+       * sysdeps/ieee754/ldbl-128ibm/s_truncl.c
+       * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c
+       * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c:
+       * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c
+       * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c
+       * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c:
+       Include math_private.h.
+
+       * sysdeps/ieee754/ldbl-64-128/s_finitel.c
+       * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c
+       * sysdeps/ieee754/ldbl-64-128/s_isinfl.c
+       * sysdeps/ieee754/ldbl-64-128/s_isnanl.c
+       * sysdeps/ieee754/ldbl-64-128/s_signbitl.c
+       * sysdeps/powerpc/power7/fpu/s_logb.c:
+       Include math.h and math_private.h.
+
        * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Wrap manual
        uses of $at in .set noat / .set at.
 
index 457bca004bfc90e238f4ffea298af548be5c2a98..a8b20db2041a05d5f08bed4516582f38527cf270 100644 (file)
@@ -22,6 +22,7 @@
 #define __GI___isnanf  not__GI___isnanf
 
 #include <math.h>
+#include <math_private.h>
 #include <math_ldbl_opt.h>
 
 #undef __isnanf
index 22eddcfcd3ee7194e25766b6d489b3bf384a88c0..7dcff021c45486b6d4447e8c9ea028ae5b1be789 100644 (file)
@@ -18,6 +18,7 @@
    <http://www.gnu.org/licenses/>.  */
 
 #include <math.h>
+#include <math_private.h>
 #include <math_ldbl_opt.h>
 #include <float.h>
 #include <ieee754.h>
index 2131934cc124fc0b02f6b2d95fd7252206e901f4..4aae5ae6082b25f3e00110ce951e2b7d15f7bfca 100644 (file)
@@ -18,6 +18,7 @@
    <http://www.gnu.org/licenses/>.  */
 
 #include <math.h>
+#include <math_private.h>
 #include <math_ldbl_opt.h>
 #include <float.h>
 #include <ieee754.h>
index f2f4c19b0ea099b663b7e82c359cb65802c4ffff..9d4535103e8449b68b1ab88c1745549a22481bc2 100644 (file)
@@ -19,6 +19,7 @@
 
 #include <math.h>
 #include <fenv.h>
+#include <math_private.h>
 #include <math_ldbl_opt.h>
 #include <float.h>
 #include <ieee754.h>
index 5bfa83cee3f87efe3846ac376d61e15e98894225..de6a7b5be2222f48c006047a86e5f1ac1c033d6a 100644 (file)
@@ -19,6 +19,7 @@
 
 #include <math.h>
 #include <fenv.h>
+#include <math_private.h>
 #include <math_ldbl_opt.h>
 #include <float.h>
 #include <ieee754.h>
index c2e2f689848e17b7e1fa90dc034d48713b8f8612..05fe7fefdfe6016ed751b0b0c81979d35e330558 100644 (file)
@@ -19,6 +19,7 @@
 
 #include <math.h>
 #include <fenv.h>
+#include <math_private.h>
 #include <math_ldbl_opt.h>
 #include <float.h>
 #include <ieee754.h>
index 010e8e28a1260aeae051b32133c4467c2ae8dac9..bc8dda4c1d99e4cdcbbd2ce2ecfa68e4c866da7f 100644 (file)
@@ -19,6 +19,7 @@
 
 #include <math.h>
 #include <fenv.h>
+#include <math_private.h>
 #include <math_ldbl_opt.h>
 #include <float.h>
 #include <ieee754.h>
index 9c4514eec3bfb89330a6fe3e9a65412f4a7f8da4..73d2b4edfee0b67d0a56374fdc95eb539f5f6216 100644 (file)
@@ -22,6 +22,7 @@
 
 #include <math.h>
 #include <fenv.h>
+#include <math_private.h>
 #include <math_ldbl_opt.h>
 #include <float.h>
 #include <ieee754.h>
index 5915d53a189c4da5d76c8d83103c215d6debb001..94a62dcd6cbd3f6acf6689afa41cc0232c505829 100644 (file)
@@ -21,6 +21,7 @@
    when it's coded in C.  */
 
 #include <math.h>
+#include <math_private.h>
 #include <math_ldbl_opt.h>
 #include <float.h>
 #include <ieee754.h>
index a4638b5da9f9a2bb2f6745ece1d7e598746ccaab..a915a01ac6c3d184da0fea89b3541181e179bf48 100644 (file)
@@ -18,6 +18,7 @@
    <http://www.gnu.org/licenses/>.  */
 
 #include <math.h>
+#include <math_private.h>
 #include <math_ldbl_opt.h>
 #include <float.h>
 #include <ieee754.h>
index c0862a74858bc435999cd0ab4942c37a49da54c6..5a16e6a27729d2ca36a6894a36b6cc1a668bc4bb 100644 (file)
@@ -1,3 +1,5 @@
+#include <math.h>
+#include <math_private.h>
 #include <math_ldbl_opt.h>
 #undef weak_alias
 #define weak_alias(n,a)
index a10b6c3a1a8968f947977d9dd0a79cf038072c84..a14cea40011fe5f81cba0b0214a9af83c0bf141a 100644 (file)
@@ -1,3 +1,5 @@
+#include <math.h>
+#include <math_private.h>
 #include <math_ldbl_opt.h>
 #undef weak_alias
 #define weak_alias(n,a)
index 6dab0e9223bce117959c7d5da09f084ab811946c..94d0b062777053d37e98c4b467437a17f0a5fb74 100644 (file)
@@ -1,3 +1,5 @@
+#include <math.h>
+#include <math_private.h>
 #include <math_ldbl_opt.h>
 #if !IS_IN (libm)
 # undef weak_alias
index ad5ecc52814c8a18880dcf9d4444579b0e4003d2..9a7a29770c468993fa9493e9e30bd4eae576a6fa 100644 (file)
@@ -1,3 +1,5 @@
+#include <math.h>
+#include <math_private.h>
 #include <math_ldbl_opt.h>
 #if !IS_IN (libm)
 # undef weak_alias
index 850db7386a56c9f11fcbdff17cd36e3802320ef7..39e0c34b6cc569745393df28fca33e65acde82ec 100644 (file)
@@ -1,3 +1,5 @@
+#include <math.h>
+#include <math_private.h>
 #include <math_ldbl_opt.h>
 #undef weak_alias
 #define weak_alias(n,a)
index af861c11ea309092c89668aa4a2782de40e20b29..61ba784f8685d58547258867c2c0d08bd0c97430 100644 (file)
@@ -36,9 +36,6 @@
 #endif
 
 #ifndef __ASSEMBLER__
-# include <math.h>
-# include <math_private.h>
-
 /* Set temporarily to non-zero if long double should be considered
    the same as double.  */
 extern __thread int __no_long_double attribute_tls_model_ie attribute_hidden;
index 160b9334de76298129bf98bde7d01d570f2b929c..f7eec8ff06275acbb9d740e04e8841662690dfe2 100644 (file)
@@ -16,6 +16,8 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
+#include <math.h>
+#include <math_private.h>
 #include <math_ldbl_opt.h>
 #include <libm-alias-double.h>
 
index faa4415f9f94c10adf08a38f7d5eb197c2cd0fab..b05414f2250b0189df2f109fbd30012f8244e1b3 100644 (file)
@@ -17,6 +17,7 @@
    <http://www.gnu.org/licenses/>.  */
 
 #include <math.h>
+#include <math_private.h>
 #include <math_ldbl_opt.h>
 #include <shlib-compat.h>
 #include "init-arch.h"
index 4ea3864f2b82492a59e90d605df1f0403a2bfdb2..d432cd00238015f33ec8227f72ab0b9b4c1a1361 100644 (file)
@@ -17,6 +17,7 @@
    <http://www.gnu.org/licenses/>.  */
 
 #include <math.h>
+#include <math_private.h>
 #include <math_ldbl_opt.h>
 #include <shlib-compat.h>
 #include "init-arch.h"
index af103e47b5409b10273ed1a58f8491edecb2c3ef..f752514efae86a47fae07a024d951ab257712805 100644 (file)
@@ -17,6 +17,7 @@
    <http://www.gnu.org/licenses/>.  */
 
 #include <math.h>
+#include <math_private.h>
 #include <math_ldbl_opt.h>
 #include "init-arch.h"
 
index cb771a3fe456c439086ff5908d7481ef5883f3b3..8d05c430cc92fc5d44d4645991aba5f9dd4b0528 100644 (file)
@@ -17,6 +17,7 @@
    <http://www.gnu.org/licenses/>.  */
 
 #include <math.h>
+#include <math_private.h>
 #include <math_ldbl_opt.h>
 #include <shlib-compat.h>
 #include "init-arch.h"
index e46ef68bfe564a4f27ef5e450b89a99d13893a1f..9bef1fea3f3209f27b2d03ec02ac1e1bdf9116bc 100644 (file)
@@ -17,6 +17,7 @@
    <http://www.gnu.org/licenses/>.  */
 
 #include <math.h>
+#include <math_private.h>
 #include <math_ldbl_opt.h>
 #include <shlib-compat.h>
 #include "init-arch.h"