aboutsummaryrefslogtreecommitdiff
path: root/elf/dl-error-skeleton.c
diff options
context:
space:
mode:
Diffstat (limited to 'elf/dl-error-skeleton.c')
-rw-r--r--elf/dl-error-skeleton.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/elf/dl-error-skeleton.c b/elf/dl-error-skeleton.c
index d5f418ab18..ca80c790d2 100644
--- a/elf/dl-error-skeleton.c
+++ b/elf/dl-error-skeleton.c
@@ -131,8 +131,8 @@ void
_dl_signal_cexception (int errcode, struct dl_exception *exception,
const char *occasion)
{
- if (__builtin_expect (GLRO(dl_debug_mask)
- & ~(DL_DEBUG_STATISTICS|DL_DEBUG_PRELINK), 0))
+ if (__glibc_unlikely ((GLRO(dl_debug_mask)
+ & ~(DL_DEBUG_STATISTICS|DL_DEBUG_PRELINK)) != 0))
_dl_debug_printf ("%s: error: %s: %s (%s)\n",
exception->objname, occasion,
exception->errstring, receiver ? "continued" : "fatal");
@@ -152,8 +152,8 @@ void
_dl_signal_cerror (int errcode, const char *objname, const char *occation,
const char *errstring)
{
- if (__builtin_expect (GLRO(dl_debug_mask)
- & ~(DL_DEBUG_STATISTICS|DL_DEBUG_PRELINK), 0))
+ if (__glibc_unlikely ((GLRO(dl_debug_mask)
+ & ~(DL_DEBUG_STATISTICS|DL_DEBUG_PRELINK)) != 0))
_dl_debug_printf ("%s: error: %s: %s (%s)\n", objname, occation,
errstring, receiver ? "continued" : "fatal");
@@ -191,7 +191,7 @@ _dl_catch_exception (struct dl_exception *exception,
catch_hook = &c;
/* Do not save the signal mask. */
- if (__builtin_expect (__sigsetjmp (c.env, 0), 0) == 0)
+ if (__glibc_likely (__sigsetjmp (c.env, 0) == 0))
{
(*operate) (args);
catch_hook = old;