mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-07 06:43:00 +03:00
Update.
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.
This commit is contained in:
@@ -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>
|
2003-08-11 Carlos O'Donell <carlos@baldric.uwo.ca>
|
||||||
|
|
||||||
* dlfcn/default.c (main): Cast dlsym loaded value to same type as main.
|
* dlfcn/default.c (main): Cast dlsym loaded value to same type as main.
|
||||||
|
@@ -102,12 +102,12 @@ __END_DECLS
|
|||||||
# ifdef __USE_GNU
|
# ifdef __USE_GNU
|
||||||
# if __GNUC_PREREQ (3, 0)
|
# if __GNUC_PREREQ (3, 0)
|
||||||
# define assert_perror(errnum) \
|
# define assert_perror(errnum) \
|
||||||
(__ASSERT_VOID_CAST (!(errnum) ? 0 : \
|
(__ASSERT_VOID_CAST (__builtin_expect (!(errnum), 1) ? 0 : \
|
||||||
(__assert_perror_fail ((errnum), __FILE__, __LINE__, \
|
(__assert_perror_fail ((errnum), __FILE__, __LINE__, \
|
||||||
__ASSERT_FUNCTION), 0)))
|
__ASSERT_FUNCTION), 0)))
|
||||||
# else
|
# else
|
||||||
# define assert_perror(errnum) \
|
# define assert_perror(errnum) \
|
||||||
(__ASSERT_VOID_CAST (__builtin_expect (!(errnum), 1) ? 0 : \
|
(__ASSERT_VOID_CAST (!(errnum) ? 0 : \
|
||||||
(__assert_perror_fail ((errnum), __FILE__, __LINE__, \
|
(__assert_perror_fail ((errnum), __FILE__, __LINE__, \
|
||||||
__ASSERT_FUNCTION), 0)))
|
__ASSERT_FUNCTION), 0)))
|
||||||
# endif
|
# endif
|
||||||
|
Reference in New Issue
Block a user