From 5f464fa2998e38d5a515065c8f1b286d7f933fa9 Mon Sep 17 00:00:00 2001 From: Uros Bizjak Date: Wed, 2 Jul 2008 21:16:59 +0200 Subject: [PATCH] sfp-machine.h (FP_HANDLE_EXCEPTIONS): Initialize f with 0.0. * 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 | 11 ++++++++--- libgcc/config/i386/32/sfp-machine.h | 2 +- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/libgcc/ChangeLog b/libgcc/ChangeLog index fa055e9c510..d8bfd54eed3 100644 --- a/libgcc/ChangeLog +++ b/libgcc/ChangeLog @@ -1,3 +1,8 @@ +2008-07-02 Uros Bizjak + + * config/i386/32/sfp-machine.h (FP_HANDLE_EXCEPTIONS) [FP_EX_INVALID]: + Initialize f with 0.0. + 2008-07-02 H.J. Lu PR target/36669 @@ -108,8 +113,8 @@ Paolo Bonzini 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 @@ -213,7 +218,7 @@ * 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 diff --git a/libgcc/config/i386/32/sfp-machine.h b/libgcc/config/i386/32/sfp-machine.h index 256bdeb4a48..a872546d966 100644 --- a/libgcc/config/i386/32/sfp-machine.h +++ b/libgcc/config/i386/32/sfp-machine.h @@ -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"); \ } \ -- 2.30.2