From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14296 invoked by alias); 23 Apr 2010 01:54:41 -0000 Received: (qmail 14282 invoked by uid 22791); 23 Apr 2010 01:54:37 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from smtp.gentoo.org (HELO smtp.gentoo.org) (140.211.166.183) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 23 Apr 2010 01:54:28 +0000 Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id C8D861B4084 for ; Fri, 23 Apr 2010 01:54:26 +0000 (UTC) From: Mike Frysinger To: gdb-patches@sourceware.org Subject: [PATCH] sim: fix fpu missing initializer warnings Date: Fri, 23 Apr 2010 01:54:00 -0000 Message-Id: <1271987718-16555-1-git-send-email-vapier@gentoo.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2010-04/txt/msg00777.txt.bz2 The current fpu code with externals enabled results in the warnings: common/sim-fpu.c:2437: warning: missing initializer common/sim-fpu.c:2437: warning: (near initialization for ‘sim_fpu_zero.sign’) common/sim-fpu.c:2440: warning: missing initializer common/sim-fpu.c:2440: warning: (near initialization for ‘sim_fpu_qnan.sign’) So tweak the old style initializers to avoid these. Signed-off-by: Mike Frysinger 2010-04-22 Mike Frysinger * sim-fpu.c (sim_fpu_zero, sim_fpu_qnan): Add 0 initializers. --- sim/common/sim-fpu.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sim/common/sim-fpu.c b/sim/common/sim-fpu.c index 7af6170..6f1bad5 100644 --- a/sim/common/sim-fpu.c +++ b/sim/common/sim-fpu.c @@ -2425,10 +2425,10 @@ sim_fpu_gt (int *is, #if EXTERN_SIM_FPU_P const sim_fpu sim_fpu_zero = { - sim_fpu_class_zero, + sim_fpu_class_zero, 0, 0, 0 }; const sim_fpu sim_fpu_qnan = { - sim_fpu_class_qnan, + sim_fpu_class_qnan, 0, 0, 0 }; const sim_fpu sim_fpu_one = { sim_fpu_class_number, 0, IMPLICIT_1, 0 -- 1.7.0.2