diff options
author | Uros Bizjak <ubizjak@gmail.com> | 2012-06-17 15:54:53 +0200 |
---|---|---|
committer | Uros Bizjak <uros@gcc.gnu.org> | 2012-06-17 15:54:53 +0200 |
commit | a20d08fd75709bddf1275ad959d8a8e6e41bcb10 (patch) | |
tree | 6ee4617c043c988cbe559966e1bfb9653b059929 | |
parent | 0a2818d5f923d2e11a3bb87bd256b8b39a0d67d4 (diff) | |
download | gcc-a20d08fd75709bddf1275ad959d8a8e6e41bcb10.zip gcc-a20d08fd75709bddf1275ad959d8a8e6e41bcb10.tar.gz gcc-a20d08fd75709bddf1275ad959d8a8e6e41bcb10.tar.bz2 |
sfp-machine.h (FP_HANDLE_EXCEPTIONS): Use __builtin_expect when checking for exceptions.
* 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
-rw-r--r-- | libgcc/ChangeLog | 6 | ||||
-rw-r--r-- | libgcc/config/i386/sfp-machine.h | 2 | ||||
-rw-r--r-- | libgcc/config/ia64/sfp-machine.h | 2 |
3 files changed, 8 insertions, 2 deletions
diff --git a/libgcc/ChangeLog b/libgcc/ChangeLog index 4c43537..fbdd11e 100644 --- a/libgcc/ChangeLog +++ b/libgcc/ChangeLog @@ -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 diff --git a/libgcc/config/i386/sfp-machine.h b/libgcc/config/i386/sfp-machine.h index e0fb5cf..34b4ca1 100644 --- a/libgcc/config/i386/sfp-machine.h +++ b/libgcc/config/i386/sfp-machine.h @@ -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); diff --git a/libgcc/config/ia64/sfp-machine.h b/libgcc/config/ia64/sfp-machine.h index e86b7e3..4774194 100644 --- a/libgcc/config/ia64/sfp-machine.h +++ b/libgcc/config/ia64/sfp-machine.h @@ -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); |