OSDN Git Service

* config/i386/32/sfp-machine.h (FP_HANDLE_EXCEPTIONS) [FP_EX_INVALID]:
authoruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 2 Jul 2008 19:16:59 +0000 (19:16 +0000)
committeruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 2 Jul 2008 19:16:59 +0000 (19:16 +0000)
Initialize f with 0.0.
* config/i386/32/sfp-machine.h (FP_HANDLE_EXCEPTIONS) [FP_EX_INVALID]:
Initialize f with 0.0.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@137379 138bc75d-0d04-0410-961f-82ee72b054a4

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

index fa055e9..d8bfd54 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
 2008-07-02  H.J. Lu  <hongjiu.lu@intel.com>
 
        PR target/36669
            Paolo Bonzini  <bonzini@gnu.org>
 
        PR target/30572
            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/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.
 
        * 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>
 
 
 2007-02-30  Kai Tietz  <kai.tietz@onevision.com>
 
index 256bdeb..a872546 100644 (file)
@@ -146,7 +146,7 @@ struct fenv
   do {                                                                 \
     if (_fex & FP_EX_INVALID)                                          \
       {                                                                        \
   do {                                                                 \
     if (_fex & FP_EX_INVALID)                                          \
       {                                                                        \
-       float f;                                                        \
+       float f = 0.0;                                                  \
        __asm__ __volatile__ ("fdiv %0" : "+t" (f));                    \
        __asm__ __volatile__ ("fwait");                                 \
       }                                                                        \
        __asm__ __volatile__ ("fdiv %0" : "+t" (f));                    \
        __asm__ __volatile__ ("fwait");                                 \
       }                                                                        \