]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Fri, 15 Aug 2003 17:55:25 +0000 (17:55 +0000)
committerUlrich Drepper <drepper@redhat.com>
Fri, 15 Aug 2003 17:55:25 +0000 (17:55 +0000)
2003-08-15  Jakub Jelinek  <jakub@redhat.com>

* assert/assert.h (assert_perror): Use __builtin_expect for gcc >=
3.0, not for !gcc or gcc < 3.0.

ChangeLog
assert/assert.h

index 8a2b8c0971f2aa5dfd2d2b7b34258829089baca8..416eceb1068c433edd86e06f5c68da346e0dd2f9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2003-08-15  Jakub Jelinek  <jakub@redhat.com>
+
+       * assert/assert.h (assert_perror): Use __builtin_expect for gcc >=
+       3.0, not for !gcc or gcc < 3.0.
+
 2003-08-11  Carlos O'Donell  <carlos@baldric.uwo.ca>
 
        * dlfcn/default.c (main): Cast dlsym loaded value to same type as main.
index b511d116d940ab32d14ace5b272d5970a6c8a923..7458e15de25d81e69a3986fc8473e2a5398f3557 100644 (file)
@@ -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