[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Libunwind-devel] [PATCH 3/7] ppc32: add used attribute to dmy_ctxt
From: |
Cody P Schafer |
Subject: |
[Libunwind-devel] [PATCH 3/7] ppc32: add used attribute to dmy_ctxt |
Date: |
Tue, 4 Sep 2012 12:46:37 -0700 |
---
src/ppc32/ucontext_i.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/ppc32/ucontext_i.h b/src/ppc32/ucontext_i.h
index ab21713..41b5ad5 100644
--- a/src/ppc32/ucontext_i.h
+++ b/src/ppc32/ucontext_i.h
@@ -43,7 +43,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE. */
/* These are dummy structures used only for obtaining the offsets of the
various structure members. */
-static ucontext_t dmy_ctxt;
+static ucontext_t dmy_ctxt __attribute__((__used__));
#define UC_MCONTEXT_GREGS_R0 ((void *)&dmy_ctxt.uc_mcontext.uc_regs->gregs[0]
- (void *)&dmy_ctxt)
#define UC_MCONTEXT_GREGS_R1 ((void *)&dmy_ctxt.uc_mcontext.uc_regs->gregs[1]
- (void *)&dmy_ctxt)
--
1.7.11.3
- [Libunwind-devel] [PATCH 0/7] Fixup the PowerPC (64 & 32 bit) builds., Cody P Schafer, 2012/09/04
- [Libunwind-devel] [PATCH 2/7] ppc32: remove unused dmy_vrregset, Cody P Schafer, 2012/09/04
- [Libunwind-devel] [PATCH 3/7] ppc32: add used attribute to dmy_ctxt,
Cody P Schafer <=
- [Libunwind-devel] [PATCH 4/7] ppc32: ppc64: test altivec support by running the compiler., Cody P Schafer, 2012/09/04
- [Libunwind-devel] [PATCH 5/7] build: make libunwind-coredump build optional, Cody P Schafer, 2012/09/04
- [Libunwind-devel] [PATCH 1/7] ppc32: ppc64: use AC_COMPILE_IFELSE to test __powerpc64__ macro for ppc64, Cody P Schafer, 2012/09/04
- [Libunwind-devel] [PATCH 7/7] ppc64: remove compile warnings from wchar test., Cody P Schafer, 2012/09/04