sfp-machine.h (FP_HANDLE_EXCEPTIONS): Initialize f with 0.0.
authorUros Bizjak <uros@gcc.gnu.org>
Wed, 2 Jul 2008 19:16:59 +0000 (21:16 +0200)
committerUros Bizjak <uros@gcc.gnu.org>
Wed, 2 Jul 2008 19:16:59 +0000 (21:16 +0200)
* config/i386/32/sfp-machine.h (FP_HANDLE_EXCEPTIONS) [FP_EX_INVALID]:
Initialize f with 0.0.
* config/i386/32/sfp-machine.h (FP_HANDLE_EXCEPTIONS) [FP_EX_INVALID]:
Initialize f with 0.0.

From-SVN: r137379

libgcc/ChangeLog
libgcc/config/i386/32/sfp-machine.h

index fa055e9c51034d06816dafcb6b0cb21c46822be1..d8bfd54eed31be64db545ae62fc1bd9aea344b96 100644 (file)
@@ -1,3 +1,8 @@
+2008-07-02  Uros Bizjak  <ubizjak@gmail.com>
+
+       * config/i386/32/sfp-machine.h (FP_HANDLE_EXCEPTIONS) [FP_EX_INVALID]:
+       Initialize f with 0.0.
+
 2008-07-02  H.J. Lu  <hongjiu.lu@intel.com>
 
        PR target/36669
            Paolo Bonzini  <bonzini@gnu.org>
 
        PR target/30572
-       * Makefile.in: Use @shlib_slibdir@ substitution to get correct install name
-       on darwin.
+       * Makefile.in: Use @shlib_slibdir@ substitution to get
+       correct install name on darwin.
        * config/t-slibgcc-darwin: Use @shlib_slibdir@ for -install_name.
                                
 2007-12-15  Hans-Peter Nilsson  <hp@axis.com>
 
        * config/i386/t-crtpc: New file.
        * config.host (i[34567]86-*-linux*): Add i386/t-crtpc to tm-file.
-        (x86_64-*-linux*): Ditto.
+       (x86_64-*-linux*): Ditto.
 
 2007-02-30  Kai Tietz  <kai.tietz@onevision.com>
 
index 256bdeb4a48625cef090c858742990c1b97501b7..a872546d9668aa0947ee5edcf6b465bffe16e6f9 100644 (file)
@@ -146,7 +146,7 @@ struct fenv
   do {                                                                 \
     if (_fex & FP_EX_INVALID)                                          \
       {                                                                        \
-       float f;                                                        \
+       float f = 0.0;                                                  \
        __asm__ __volatile__ ("fdiv %0" : "+t" (f));                    \
        __asm__ __volatile__ ("fwait");                                 \
       }                                                                        \