From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 90893 invoked by alias); 7 Nov 2016 23:19:10 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 90858 invoked by uid 89); 7 Nov 2016 23:19:07 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_PASS,URIBL_RED autolearn=ham version=3.3.2 spammy= X-HELO: relay1.mentorg.com Date: Mon, 07 Nov 2016 23:19:00 -0000 From: Joseph Myers To: Subject: Fix SH4 register-dump.h for soft-float Message-ID: User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" X-ClientProxiedBy: svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) To svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) X-SW-Source: 2016-11/txt/msg00257.txt.bz2 This patch fixes SH4 register-dump.h to declare a variable under the same conditions on which it is used, to avoid an unused variable error breaking the build for soft-float. Tested (compilation only, in conjunction with other fixes) for SH4 soft-float. 2016-11-07 Joseph Myers * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h (register_dump): Only declare fpregs if [__SH_FPU_ANY__]. diff --git a/sysdeps/unix/sysv/linux/sh/sh4/register-dump.h b/sysdeps/unix/sysv/linux/sh/sh4/register-dump.h index 4a642ab..154824d 100644 --- a/sysdeps/unix/sysv/linux/sh/sh4/register-dump.h +++ b/sysdeps/unix/sysv/linux/sh/sh4/register-dump.h @@ -56,7 +56,9 @@ static void register_dump (int fd, struct sigcontext *ctx) { char regs[22][8]; +#ifdef __SH_FPU_ANY__ char fpregs[34][8]; +#endif struct iovec iov[22 * 2 + 34 * 2 + 2]; size_t nr = 0; -- Joseph S. Myers joseph@codesourcery.com