diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2017-08-18 20:17:26 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2017-08-18 20:17:26 +0000 |
commit | b66d36128f7b02664f9d7971acce108db07ac347 (patch) | |
tree | ee3d82b9764173df6557c557964c999ab8db9c72 /libgo | |
parent | b74f0db11a4e62e044b816c5d275df37ee728396 (diff) | |
download | gcc-b66d36128f7b02664f9d7971acce108db07ac347.zip gcc-b66d36128f7b02664f9d7971acce108db07ac347.tar.gz gcc-b66d36128f7b02664f9d7971acce108db07ac347.tar.bz2 |
re PR go/81893 (compilation error in libgo starting with r251127)
PR go/81893
runtime: only use PPC GNU/Linux register code on little endian
Reportedly the current code builds on little endian but not big endian.
Fixes https://gcc.gnu.org/PR81893.
Reviewed-on: https://go-review.googlesource.com/57110
From-SVN: r251188
Diffstat (limited to 'libgo')
-rw-r--r-- | libgo/runtime/go-signal.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libgo/runtime/go-signal.c b/libgo/runtime/go-signal.c index e175fe6..081604e 100644 --- a/libgo/runtime/go-signal.c +++ b/libgo/runtime/go-signal.c @@ -343,7 +343,7 @@ dumpregs(siginfo_t *info __attribute__((unused)), void *context __attribute__((u #endif #endif -#ifdef __PPC__ +#if defined(__PPC__) && defined(__LITTLE_ENDIAN__) #ifdef __linux__ { mcontext_t *m = &((ucontext_t*)(context))->uc_mcontext; @@ -359,6 +359,9 @@ dumpregs(siginfo_t *info __attribute__((unused)), void *context __attribute__((u runtime_printf("xer %X\n", m->regs->xer); } #endif +#endif + +#ifdef __PPC__ #ifdef _AIX { mcontext_t *m = &((ucontext_t*)(context))->uc_mcontext; |