diff options
author | Mike Frysinger <vapier@gentoo.org> | 2010-04-23 15:39:15 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2010-04-23 15:39:15 +0000 |
commit | dce2c723fe34f8cec95e4b62f24458bdf6919ef9 (patch) | |
tree | 5410a43dcf20fcdf7ed2935346fd81e10be0dbc1 /sim/common | |
parent | 8a504f76797a1662228fe89cb1a2aff2bf74fe58 (diff) | |
download | gdb-dce2c723fe34f8cec95e4b62f24458bdf6919ef9.tar.gz |
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')
-rw-r--r-- | sim/common/ChangeLog | 4 | ||||
-rw-r--r-- | sim/common/sim-fpu.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog index ddca26658c0..3aa491a3181 100644 --- a/sim/common/ChangeLog +++ b/sim/common/ChangeLog @@ -1,3 +1,7 @@ +2010-04-23 Mike Frysinger <vapier@gentoo.org> + + * sim-fpu.c (sim_fpu_zero, sim_fpu_qnan): Add 0 initializers. + 2010-04-21 Mike Frysinger <vapier@gentoo.org> * profile.c (sim_profile_print_bar): Add cpu argument. diff --git a/sim/common/sim-fpu.c b/sim/common/sim-fpu.c index 7af617067cf..6f1bad516bb 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 |