diff options
author | Joseph Myers <joseph@codesourcery.com> | 2016-11-16 03:45:49 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2016-11-16 03:45:49 +0000 |
commit | 530862a63e0929128dc98fbbd463b120934434fb (patch) | |
tree | 93ad9e405ec41bf0c87712a60f42f1e4348381ee /sysdeps/unix | |
parent | f07820b7d13846431bb1c291414b6286cc5f5cbf (diff) | |
download | glibc-530862a63e0929128dc98fbbd463b120934434fb.tar.gz glibc-530862a63e0929128dc98fbbd463b120934434fb.tar.xz glibc-530862a63e0929128dc98fbbd463b120934434fb.zip |
Fix SH4 register-dump.h for soft-float.
This patch fixes SH4 register-dump.h to declare a variable inside the the build for soft-float. Tested (compilation only) for SH4 soft-float. * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h (register_dump): Only declare fpregs if [__SH_FPU_ANY__].
Diffstat (limited to 'sysdeps/unix')
-rw-r--r-- | sysdeps/unix/sysv/linux/sh/sh4/register-dump.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/sh/sh4/register-dump.h b/sysdeps/unix/sysv/linux/sh/sh4/register-dump.h index 4a642abed9..519a2cec75 100644 --- a/sysdeps/unix/sysv/linux/sh/sh4/register-dump.h +++ b/sysdeps/unix/sysv/linux/sh/sh4/register-dump.h @@ -56,7 +56,6 @@ static void register_dump (int fd, struct sigcontext *ctx) { char regs[22][8]; - char fpregs[34][8]; struct iovec iov[22 * 2 + 34 * 2 + 2]; size_t nr = 0; @@ -144,6 +143,7 @@ register_dump (int fd, struct sigcontext *ctx) ADD_STRING ("\n"); #ifdef __SH_FPU_ANY__ + char fpregs[34][8]; if (ctx->sc_ownedfp != 0) { hexvalue (ctx->sc_fpregs[0], fpregs[0], 8); |