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
This commit is contained in:
Uros Bizjak 2012-06-17 15:54:53 +02:00 committed by Uros Bizjak
parent 0a2818d5f9
commit a20d08fd75
3 changed files with 8 additions and 2 deletions

View 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

View 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);

View 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);