[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Libunwind-devel] [PATCH 09/35] IA64: avoid -Wunused-but-set-variable in
From: |
Tommi Rantala |
Subject: |
[Libunwind-devel] [PATCH 09/35] IA64: avoid -Wunused-but-set-variable in src/ia64/init.h |
Date: |
Tue, 18 Sep 2012 16:31:18 +0300 |
In file included from src/ia64/Ginit_remote.c:26:0:
src/ia64/init.h: In function 'common_init':
src/ia64/init.h:32:12: warning: variable 'natp' set but not used
[-Wunused-but-set-variable]
---
src/ia64/init.h | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/src/ia64/init.h b/src/ia64/init.h
index d6a1b22..1f3f956 100644
--- a/src/ia64/init.h
+++ b/src/ia64/init.h
@@ -29,7 +29,6 @@ static ALWAYS_INLINE int
common_init (struct cursor *c, unw_word_t sp, unw_word_t bsp)
{
unw_word_t bspstore, rbs_base;
- uint8_t *natp;
int ret;
if (c->as->caching_policy != UNW_CACHE_NONE)
@@ -53,11 +52,10 @@ common_init (struct cursor *c, unw_word_t sp, unw_word_t
bsp)
c->loc[IA64_REG_R6] = IA64_REG_LOC (c, UNW_IA64_GR + 6);
c->loc[IA64_REG_R7] = IA64_REG_LOC (c, UNW_IA64_GR + 7);
- natp = c->nat_bitnr;
- c->loc[IA64_REG_NAT4] = IA64_REG_NAT_LOC (c, UNW_IA64_NAT + 4, &natp[0]);
- c->loc[IA64_REG_NAT5] = IA64_REG_NAT_LOC (c, UNW_IA64_NAT + 5, &natp[1]);
- c->loc[IA64_REG_NAT6] = IA64_REG_NAT_LOC (c, UNW_IA64_NAT + 6, &natp[2]);
- c->loc[IA64_REG_NAT7] = IA64_REG_NAT_LOC (c, UNW_IA64_NAT + 7, &natp[3]);
+ c->loc[IA64_REG_NAT4] = IA64_REG_NAT_LOC (c, UNW_IA64_NAT + 4,
&c->nat_bitnr[0]);
+ c->loc[IA64_REG_NAT5] = IA64_REG_NAT_LOC (c, UNW_IA64_NAT + 5,
&c->nat_bitnr[1]);
+ c->loc[IA64_REG_NAT6] = IA64_REG_NAT_LOC (c, UNW_IA64_NAT + 6,
&c->nat_bitnr[2]);
+ c->loc[IA64_REG_NAT7] = IA64_REG_NAT_LOC (c, UNW_IA64_NAT + 7,
&c->nat_bitnr[3]);
c->loc[IA64_REG_B1] = IA64_REG_LOC (c, UNW_IA64_BR + 1);
c->loc[IA64_REG_B2] = IA64_REG_LOC (c, UNW_IA64_BR + 2);
--
1.7.9.5
- [Libunwind-devel] [PATCH 00/35] patchset, Tommi Rantala, 2012/09/18
- [Libunwind-devel] [PATCH 06/35] Remove unneeded `cmpxchg_ptr()' from include/libunwind_i.h, Tommi Rantala, 2012/09/18
- [Libunwind-devel] [PATCH 04/35] Align `sos_memory' to MAX_ALIGN, Tommi Rantala, 2012/09/18
- [Libunwind-devel] [PATCH 01/35] Remove unneeded `atomic_ops.h' inclusion in `dwarf.h', Tommi Rantala, 2012/09/18
- [Libunwind-devel] [PATCH 02/35] Use GCC __BIGGEST_ALIGNMENT__ for sos-pool MAX_ALIGN, Tommi Rantala, 2012/09/18
- [Libunwind-devel] [PATCH 03/35] Workaround non-power-of-two i386 sizeof(long double) in src/mi/mempool.c, Tommi Rantala, 2012/09/18
- [Libunwind-devel] [PATCH 11/35] PPC: remove unused `PAGE_START' macro from Ginit.c, Tommi Rantala, 2012/09/18
- [Libunwind-devel] [PATCH 05/35] Simplify `sos_alloc()' implementation, Tommi Rantala, 2012/09/18
- [Libunwind-devel] [PATCH 09/35] IA64: avoid -Wunused-but-set-variable in src/ia64/init.h,
Tommi Rantala <=
- [Libunwind-devel] [PATCH 10/35] Remove unused src/x86_64/Lis_signal_frame.c, Tommi Rantala, 2012/09/18
- [Libunwind-devel] [PATCH 15/35] Clear out `ip' to avoid -Wuninitialized warning in tests/test-coredump-unwind.c, Tommi Rantala, 2012/09/18
- [Libunwind-devel] [PATCH 07/35] Use __sync builtin atomics on all architectures if available, Tommi Rantala, 2012/09/18
- [Libunwind-devel] [PATCH 13/35] HPPA: kludge out unused variable in unw_get_save_loc() stub, Tommi Rantala, 2012/09/18
- [Libunwind-devel] [PATCH 08/35] Apply UNW_ALIGN more in src/mi/mempool.c, Tommi Rantala, 2012/09/18
- [Libunwind-devel] [PATCH 12/35] HPPA: properly check dwarf_get() return value in unw_step(), Tommi Rantala, 2012/09/18
- [Libunwind-devel] [PATCH 17/35] Workaround volatileness warning in tests/ia64-test-setjmp.c, Tommi Rantala, 2012/09/18
- [Libunwind-devel] [PATCH 14/35] Default to non-verbose mode in Ltest-cxx-exceptions, Tommi Rantala, 2012/09/18