From 20d9b98f8a33c85b855e4aa5366acadd979de4d4 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 15 Aug 2003 17:55:25 +0000 Subject: Update. 2003-08-15 Jakub Jelinek * assert/assert.h (assert_perror): Use __builtin_expect for gcc >= 3.0, not for !gcc or gcc < 3.0. --- assert/assert.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'assert') diff --git a/assert/assert.h b/assert/assert.h index b511d116d9..7458e15de2 100644 --- a/assert/assert.h +++ b/assert/assert.h @@ -102,12 +102,12 @@ __END_DECLS # ifdef __USE_GNU # if __GNUC_PREREQ (3, 0) # define assert_perror(errnum) \ - (__ASSERT_VOID_CAST (!(errnum) ? 0 : \ + (__ASSERT_VOID_CAST (__builtin_expect (!(errnum), 1) ? 0 : \ (__assert_perror_fail ((errnum), __FILE__, __LINE__, \ __ASSERT_FUNCTION), 0))) # else # define assert_perror(errnum) \ - (__ASSERT_VOID_CAST (__builtin_expect (!(errnum), 1) ? 0 : \ + (__ASSERT_VOID_CAST (!(errnum) ? 0 : \ (__assert_perror_fail ((errnum), __FILE__, __LINE__, \ __ASSERT_FUNCTION), 0))) # endif -- cgit 1.4.1