PageRenderTime 44ms CodeModel.GetById 20ms RepoModel.GetById 0ms app.codeStats 0ms

/patches/glibc/2.21/104-unused-variables.patch

https://gitlab.com/likema/crosstool-ng
Patch | 178 lines | 164 code | 14 blank | 0 comment | 0 complexity | 6f3a9ed5c1e293880db001c0d1bdfbe5 MD5 | raw file
  1. commit 6565fcb6e189d67b5a3f321453daebb805056d73
  2. Author: Wilco Dijkstra <wdijkstr@arm.com>
  3. Date: Fri Sep 18 20:27:20 2015 +0100
  4. Fix several build failures with GCC6 due to unused static variables.
  5. 2015-09-18 Wilco Dijkstra <wdijkstr@arm.com>
  6. * resolv/base64.c (rcsid): Remove unused static.
  7. * sysdeps/ieee754/dbl-64/atnat2.h (qpi1): Remove unused
  8. static. (tqpi1): Likewise.
  9. * sysdeps/ieee754/dbl-64/uexp.h (one): Likewise.
  10. * sysdeps/ieee754/dbl-64/upow.h (sqrt_2): Likewise.
  11. * sysdeps/ieee754/flt-32/e_log10f.c (one): Likewise.
  12. * sysdeps/ieee754/flt-32/s_cosf.c (one): Likewise.
  13. * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (zero): Likewise.
  14. * sysdeps/ieee754/ldbl-128/s_erfl.c (half): Likewise.
  15. * sysdeps/ieee754/ldbl-128/s_log1pl.c (maxlog): Likewise.
  16. * timezone/private.h (time_t_min): Likewise. (time_t_max):
  17. Likewise.
  18. diff --git a/resolv/base64.c b/resolv/base64.c
  19. index ea584ed..519e5d2 100644
  20. --- a/resolv/base64.c
  21. +++ b/resolv/base64.c
  22. @@ -40,10 +40,6 @@
  23. * IF IBM IS APPRISED OF THE POSSIBILITY OF SUCH DAMAGES.
  24. */
  25. -#if !defined(LINT) && !defined(CODECENTER)
  26. -static const char rcsid[] = "$BINDId: base64.c,v 8.7 1999/10/13 16:39:33 vixie Exp $";
  27. -#endif /* not lint */
  28. -
  29. #include <sys/types.h>
  30. #include <sys/param.h>
  31. #include <sys/socket.h>
  32. diff --git a/sysdeps/ieee754/dbl-64/atnat2.h b/sysdeps/ieee754/dbl-64/atnat2.h
  33. index e0d65af..82943f9 100644
  34. --- a/sysdeps/ieee754/dbl-64/atnat2.h
  35. +++ b/sysdeps/ieee754/dbl-64/atnat2.h
  36. @@ -65,10 +65,8 @@
  37. /**/ hpi1 = {{0x3c91a626, 0x33145c07} }, /* pi/2-hpi */
  38. /**/ mhpi = {{0xbff921fb, 0x54442d18} }, /* -pi/2 */
  39. /**/ qpi = {{0x3fe921fb, 0x54442d18} }, /* pi/4 */
  40. -/**/ qpi1 = {{0x3c81a626, 0x33145c07} }, /* pi/4-qpi */
  41. /**/ mqpi = {{0xbfe921fb, 0x54442d18} }, /* -pi/4 */
  42. /**/ tqpi = {{0x4002d97c, 0x7f3321d2} }, /* 3pi/4 */
  43. -/**/ tqpi1 = {{0x3c9a7939, 0x4c9e8a0a} }, /* 3pi/4-tqpi */
  44. /**/ mtqpi = {{0xc002d97c, 0x7f3321d2} }, /* -3pi/4 */
  45. /**/ u1 = {{0x3c314c2a, 0x00000000} }, /* 9.377e-19 */
  46. /**/ u2 = {{0x3bf955e4, 0x00000000} }, /* 8.584e-20 */
  47. @@ -129,10 +127,8 @@
  48. /**/ hpi1 = {{0x33145c07, 0x3c91a626} }, /* pi/2-hpi */
  49. /**/ mhpi = {{0x54442d18, 0xbff921fb} }, /* -pi/2 */
  50. /**/ qpi = {{0x54442d18, 0x3fe921fb} }, /* pi/4 */
  51. -/**/ qpi1 = {{0x33145c07, 0x3c81a626} }, /* pi/4-qpi */
  52. /**/ mqpi = {{0x54442d18, 0xbfe921fb} }, /* -pi/4 */
  53. /**/ tqpi = {{0x7f3321d2, 0x4002d97c} }, /* 3pi/4 */
  54. -/**/ tqpi1 = {{0x4c9e8a0a, 0x3c9a7939} }, /* 3pi/4-tqpi */
  55. /**/ mtqpi = {{0x7f3321d2, 0xc002d97c} }, /* -3pi/4 */
  56. /**/ u1 = {{0x00000000, 0x3c314c2a} }, /* 9.377e-19 */
  57. /**/ u2 = {{0x00000000, 0x3bf955e4} }, /* 8.584e-20 */
  58. diff --git a/sysdeps/ieee754/dbl-64/uexp.h b/sysdeps/ieee754/dbl-64/uexp.h
  59. index 6817eaf..42b21f2 100644
  60. --- a/sysdeps/ieee754/dbl-64/uexp.h
  61. +++ b/sysdeps/ieee754/dbl-64/uexp.h
  62. @@ -29,7 +29,7 @@
  63. #include "mydefs.h"
  64. -const static double one = 1.0, zero = 0.0, hhuge = 1.0e300, tiny = 1.0e-300,
  65. +const static double zero = 0.0, hhuge = 1.0e300, tiny = 1.0e-300,
  66. err_0 = 1.000014, err_1 = 0.000016;
  67. const static int4 bigint = 0x40862002,
  68. badint = 0x40876000,smallint = 0x3C8fffff;
  69. diff --git a/sysdeps/ieee754/dbl-64/upow.h b/sysdeps/ieee754/dbl-64/upow.h
  70. index c8569a9..b4911e5 100644
  71. --- a/sysdeps/ieee754/dbl-64/upow.h
  72. +++ b/sysdeps/ieee754/dbl-64/upow.h
  73. @@ -34,7 +34,6 @@
  74. /**/ nZERO = {{0x80000000, 0}}, /* -0.0 */
  75. /**/ INF = {{0x7ff00000, 0x00000000}}, /* INF */
  76. /**/ nINF = {{0xfff00000, 0x00000000}}, /* -INF */
  77. -/**/ sqrt_2 = {{0x3ff6a09e, 0x667f3bcc}}, /* sqrt(2) */
  78. /**/ ln2a = {{0x3fe62e42, 0xfefa3800}}, /* ln(2) 43 bits */
  79. /**/ ln2b = {{0x3d2ef357, 0x93c76730}}, /* ln(2)-ln2a */
  80. /**/ bigu = {{0x4297ffff, 0xfffffd2c}}, /* 1.5*2**42 -724*2**-10 */
  81. @@ -48,7 +47,6 @@
  82. /**/ nZERO = {{0, 0x80000000}}, /* -0.0 */
  83. /**/ INF = {{0x00000000, 0x7ff00000}}, /* INF */
  84. /**/ nINF = {{0x00000000, 0xfff00000}}, /* -INF */
  85. -/**/ sqrt_2 = {{0x667f3bcc, 0x3ff6a09e}}, /* sqrt(2) */
  86. /**/ ln2a = {{0xfefa3800, 0x3fe62e42}}, /* ln(2) 43 bits */
  87. /**/ ln2b = {{0x93c76730, 0x3d2ef357}}, /* ln(2)-ln2a */
  88. /**/ bigu = {{0xfffffd2c, 0x4297ffff}}, /* 1.5*2**42 -724*2**-10 */
  89. diff --git a/sysdeps/ieee754/flt-32/e_log10f.c b/sysdeps/ieee754/flt-32/e_log10f.c
  90. index 96f0e81..1daeef7 100644
  91. --- a/sysdeps/ieee754/flt-32/e_log10f.c
  92. +++ b/sysdeps/ieee754/flt-32/e_log10f.c
  93. @@ -22,8 +22,6 @@ ivln10 = 4.3429449201e-01, /* 0x3ede5bd9 */
  94. log10_2hi = 3.0102920532e-01, /* 0x3e9a2080 */
  95. log10_2lo = 7.9034151668e-07; /* 0x355427db */
  96. -static const float zero = 0.0;
  97. -
  98. float
  99. __ieee754_log10f(float x)
  100. {
  101. diff --git a/sysdeps/ieee754/flt-32/s_cosf.c b/sysdeps/ieee754/flt-32/s_cosf.c
  102. index 864ab27..0affd40 100644
  103. --- a/sysdeps/ieee754/flt-32/s_cosf.c
  104. +++ b/sysdeps/ieee754/flt-32/s_cosf.c
  105. @@ -21,8 +21,6 @@ static char rcsid[] = "$NetBSD: s_cosf.c,v 1.4 1995/05/10 20:47:03 jtc Exp $";
  106. #include <math.h>
  107. #include <math_private.h>
  108. -static const float one=1.0;
  109. -
  110. #ifndef COSF
  111. # define COSF_FUNC __cosf
  112. #else
  113. diff --git a/sysdeps/ieee754/ldbl-128/e_lgammal_r.c b/sysdeps/ieee754/ldbl-128/e_lgammal_r.c
  114. index 500aacc..ab5a96e 100644
  115. --- a/sysdeps/ieee754/ldbl-128/e_lgammal_r.c
  116. +++ b/sysdeps/ieee754/ldbl-128/e_lgammal_r.c
  117. @@ -82,7 +82,6 @@ DIAG_IGNORE_NEEDS_COMMENT (4.6, "-Woverflow");
  118. static const long double MAXLGM = 1.0485738685148938358098967157129705071571E4928L;
  119. DIAG_POP_NEEDS_COMMENT;
  120. static const long double one = 1.0L;
  121. -static const long double zero = 0.0L;
  122. static const long double huge = LDBL_MAX;
  123. /* log gamma(x) = ( x - 0.5 ) * log(x) - x + LS2PI + 1/x P(1/x^2)
  124. diff --git a/sysdeps/ieee754/ldbl-128/s_erfl.c b/sysdeps/ieee754/ldbl-128/s_erfl.c
  125. index fa4609f..08c80a3 100644
  126. --- a/sysdeps/ieee754/ldbl-128/s_erfl.c
  127. +++ b/sysdeps/ieee754/ldbl-128/s_erfl.c
  128. @@ -140,7 +140,6 @@ deval (long double x, const long double *p, int n)
  129. static const long double
  130. tiny = 1e-4931L,
  131. - half = 0.5L,
  132. one = 1.0L,
  133. two = 2.0L,
  134. /* 2/sqrt(pi) - 1 */
  135. diff --git a/sysdeps/ieee754/ldbl-128/s_log1pl.c b/sysdeps/ieee754/ldbl-128/s_log1pl.c
  136. index ff759bc..9609550 100644
  137. --- a/sysdeps/ieee754/ldbl-128/s_log1pl.c
  138. +++ b/sysdeps/ieee754/ldbl-128/s_log1pl.c
  139. @@ -117,7 +117,6 @@ static const long double C2 = 1.428606820309417232121458176568075500134E-6L;
  140. static const long double sqrth = 0.7071067811865475244008443621048490392848L;
  141. /* ln (2^16384 * (1 - 2^-113)) */
  142. -static const long double maxlog = 1.1356523406294143949491931077970764891253E4L;
  143. static const long double zero = 0.0L;
  144. long double
  145. diff --git a/timezone/private.h b/timezone/private.h
  146. index 4e8f4ae..ed19e06 100644
  147. --- a/timezone/private.h
  148. +++ b/timezone/private.h
  149. @@ -326,16 +326,6 @@ const char * scheck(const char * string, const char * format);
  150. #define TYPE_SIGNED(type) (((type) -1) < 0)
  151. #endif /* !defined TYPE_SIGNED */
  152. -/* The minimum and maximum finite time values. */
  153. -static time_t const time_t_min =
  154. - (TYPE_SIGNED(time_t)
  155. - ? (time_t) -1 << (CHAR_BIT * sizeof (time_t) - 1)
  156. - : 0);
  157. -static time_t const time_t_max =
  158. - (TYPE_SIGNED(time_t)
  159. - ? - (~ 0 < 0) - ((time_t) -1 << (CHAR_BIT * sizeof (time_t) - 1))
  160. - : -1);
  161. -
  162. #ifndef INT_STRLEN_MAXIMUM
  163. /*
  164. ** 302 / 1000 is log10(2.0) rounded up.