aboutsummaryrefslogtreecommitdiff
path: root/sim/common/sim-fpu.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2010-04-23 15:39:15 +0000
committerMike Frysinger <vapier@gentoo.org>2010-04-23 15:39:15 +0000
commitc8551de35c952a01283328a3f14dbb5195769815 (patch)
tree6aa2fb519edff858a7aea02d2e10e9082bdc58bd /sim/common/sim-fpu.c
parent3a48e6ff66b76a9bd077a7a3671f13b537e418cd (diff)
downloadgdb-c8551de35c952a01283328a3f14dbb5195769815.zip
gdb-c8551de35c952a01283328a3f14dbb5195769815.tar.gz
gdb-c8551de35c952a01283328a3f14dbb5195769815.tar.bz2
sim: fix fpu missing initializer warnings
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 <vapier@gentoo.org>
Diffstat (limited to 'sim/common/sim-fpu.c')
-rw-r--r--sim/common/sim-fpu.c4
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