sfp-machine.h (FP_HANDLE_EXCEPTIONS): Use __builtin_expect when checking for exceptions.
authorUros Bizjak <ubizjak@gmail.com>
Sun, 17 Jun 2012 13:54:53 +0000 (15:54 +0200)
committerUros Bizjak <uros@gcc.gnu.org>
Sun, 17 Jun 2012 13:54:53 +0000 (15:54 +0200)
* config/i386/sfp-machine.h (FP_HANDLE_EXCEPTIONS): Use
__builtin_expect when checking for exceptions.
* config/ia64/sfp-machine.h (FP_HANDLE_EXCEPTIONS): Ditto.

From-SVN: r188705

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

index 4c43537f47b2672cb41ccda5d64b730af9c6a9d7..fbdd11ebf9cff54b94e5da14c448a8ea3e600837 100644 (file)
@@ -1,3 +1,9 @@
+2012-06-17  Uros Bizjak  <ubizjak@gmail.com>
+
+       * config/i386/sfp-machine.h (FP_HANDLE_EXCEPTIONS): Use
+       __builtin_expect when checking for exceptions.
+       * config/ia64/sfp-machine.h (FP_HANDLE_EXCEPTIONS): Ditto.
+
 2012-06-13  Uros Bizjak  <ubizjak@gmail.com>
 
        * config/ia64/sfp-machine.h (__sfp_handle_exceptions): New
index e0fb5cf68fff09698cc6f1de9a9f76a5ea30cc9c..34b4ca10e14ff6aa7764220f12b7d1157dde1a82 100644 (file)
@@ -51,7 +51,7 @@ void __sfp_handle_exceptions (int);
 
 #define FP_HANDLE_EXCEPTIONS                   \
   do {                                         \
-    if (_fex)                                  \
+    if (__builtin_expect (_fex, 0))            \
       __sfp_handle_exceptions (_fex);          \
   } while (0);
 
index e86b7e3ae471ab56cccaa58b64264909e7ba73bd..47741946330e975296aa96e976084c100e9f9995 100644 (file)
@@ -60,7 +60,7 @@ void __sfp_handle_exceptions (int);
 
 #define FP_HANDLE_EXCEPTIONS                   \
   do {                                         \
-    if (_fex)                                  \
+    if (__builtin_expect (_fex, 0))            \
       __sfp_handle_exceptions (_fex);          \
   } while (0);