sim: fix fpu missing initializer warnings
authorMike Frysinger <vapier@gentoo.org>
Fri, 23 Apr 2010 15:39:15 +0000 (15:39 +0000)
committerMike Frysinger <vapier@gentoo.org>
Fri, 23 Apr 2010 15:39:15 +0000 (15:39 +0000)
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>
sim/common/ChangeLog
sim/common/sim-fpu.c

index ddca26658c066b9423f133d9ee0a04e4f32140d6..3aa491a318146d3f85f111d6f312347acfaceb8e 100644 (file)
@@ -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.
index 7af617067cf11b97e789e7889d72d8cd16759706..6f1bad516bb4c1ba6051a1e11e8efe96a725c07a 100644 (file)
@@ -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