|
|
c6d234 |
commit b4f518ecfad09fc4279ea26a565332835e403dab
|
|
|
c6d234 |
Author: Carlos O'Donell <carlos@redhat.com>
|
|
|
c6d234 |
Date: Tue Mar 15 23:16:47 2016 -0400
|
|
|
c6d234 |
|
|
|
c6d234 |
Fix building glibc master with NDEBUG and --with-cpu.
|
|
|
c6d234 |
|
|
|
c6d234 |
When building on i686, x86_64, and arm, and with NDEBUG, or --with-cpu
|
|
|
c6d234 |
there are various variables and functions which are unused based on
|
|
|
c6d234 |
these settings.
|
|
|
c6d234 |
|
|
|
c6d234 |
This patch marks all such variables with __attribute__((unused)) to
|
|
|
c6d234 |
avoid the compiler warnings when building with the aformentioned
|
|
|
c6d234 |
options.
|
|
|
c6d234 |
|
|
|
c6d234 |
Conflicts:
|
|
|
c6d234 |
dlfcn/bug-dl-leaf-lib.c
|
|
|
c6d234 |
(Missing backport of fix for swbz#15897; file removed.)
|
|
|
c6d234 |
sysdeps/arm/dl-machine.h
|
|
|
c6d234 |
(Missing backport of fix for swbz#17078.)
|
|
|
c6d234 |
|
|
|
c6d234 |
diff --git a/catgets/tst-catgets.c b/catgets/tst-catgets.c
|
|
|
c6d234 |
index 140de722c893297d..fdc9f2758ffd60a1 100644
|
|
|
c6d234 |
--- a/catgets/tst-catgets.c
|
|
|
c6d234 |
+++ b/catgets/tst-catgets.c
|
|
|
c6d234 |
@@ -22,7 +22,7 @@ do_bz17905 (void)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
char *buf;
|
|
|
c6d234 |
struct rlimit rl;
|
|
|
c6d234 |
- nl_catd result;
|
|
|
c6d234 |
+ nl_catd result __attribute__ ((unused));
|
|
|
c6d234 |
|
|
|
c6d234 |
const int sz = 1024 * 1024;
|
|
|
c6d234 |
|
|
|
c6d234 |
diff --git a/math/atest-exp.c b/math/atest-exp.c
|
|
|
c6d234 |
index d384c4920acb044f..8f4711aaa90d09e5 100644
|
|
|
c6d234 |
--- a/math/atest-exp.c
|
|
|
c6d234 |
+++ b/math/atest-exp.c
|
|
|
c6d234 |
@@ -61,7 +61,7 @@ exp_mpn (mp1 ex, mp1 x)
|
|
|
c6d234 |
unsigned n;
|
|
|
c6d234 |
mp1 xp;
|
|
|
c6d234 |
mp2 tmp;
|
|
|
c6d234 |
- mp_limb_t chk;
|
|
|
c6d234 |
+ mp_limb_t chk __attribute__ ((unused));
|
|
|
c6d234 |
mp1 tol;
|
|
|
c6d234 |
|
|
|
c6d234 |
memset (xp, 0, sizeof (mp1));
|
|
|
c6d234 |
diff --git a/math/atest-exp2.c b/math/atest-exp2.c
|
|
|
c6d234 |
index 1a2be9ba021bb24a..6f5dd7760c78b7e2 100644
|
|
|
c6d234 |
--- a/math/atest-exp2.c
|
|
|
c6d234 |
+++ b/math/atest-exp2.c
|
|
|
c6d234 |
@@ -102,7 +102,7 @@ exp_mpn (mp1 ex, mp1 x)
|
|
|
c6d234 |
unsigned int n;
|
|
|
c6d234 |
mp1 xp;
|
|
|
c6d234 |
mp2 tmp;
|
|
|
c6d234 |
- mp_limb_t chk;
|
|
|
c6d234 |
+ mp_limb_t chk __attribute__ ((unused));
|
|
|
c6d234 |
mp1 tol;
|
|
|
c6d234 |
|
|
|
c6d234 |
memset (xp, 0, sizeof (mp1));
|
|
|
c6d234 |
diff --git a/sysdeps/i386/i686/dl-hash.h b/sysdeps/i386/i686/dl-hash.h
|
|
|
c6d234 |
index 14fbbc251148c176..65acc88a6e6f093c 100644
|
|
|
c6d234 |
--- a/sysdeps/i386/i686/dl-hash.h
|
|
|
c6d234 |
+++ b/sysdeps/i386/i686/dl-hash.h
|
|
|
c6d234 |
@@ -26,6 +26,7 @@
|
|
|
c6d234 |
would be much slower than the generic C implementation. So don't
|
|
|
c6d234 |
use it. */
|
|
|
c6d234 |
static unsigned int
|
|
|
c6d234 |
+__attribute__ ((unused))
|
|
|
c6d234 |
_dl_elf_hash (const char *name)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
unsigned int result;
|