[uClibc-cvs] uClibc/ldso/ldso/m68k elfinterp.c,1.16,1.17
Erik Andersen
andersen at uclibc.org
Sat Feb 14 11:53:59 UTC 2004
Update of /var/cvs/uClibc/ldso/ldso/m68k
In directory nail:/home/andersen/CVS/uClibc/ldso/ldso/m68k
Modified Files:
elfinterp.c
Log Message:
Give gcc branch prediction some hits on obviously unlikely branches
Index: elfinterp.c
===================================================================
RCS file: /var/cvs/uClibc/ldso/ldso/m68k/elfinterp.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- elfinterp.c 14 Feb 2004 11:30:33 -0000 1.16
+++ elfinterp.c 14 Feb 2004 11:53:57 -0000 1.17
@@ -79,7 +79,7 @@
strtab = (char *) (tpnt->dynamic_info[DT_STRTAB] + tpnt->loadaddr);
- if (reloc_type != R_68K_JMP_SLOT)
+ if (unlikely(reloc_type != R_68K_JMP_SLOT))
{
_dl_dprintf (2, "%s: incorrect relocation type in jump relocations\n",
_dl_progname);
@@ -99,7 +99,7 @@
/* Get the address of the GOT entry. */
new_addr = _dl_find_hash (strtab + symtab[symtab_index].st_name,
tpnt->symbol_scope, ELF_RTYPE_CLASS_PLT);
- if (!new_addr)
+ if (unlikely(!new_addr))
{
_dl_dprintf (2, "%s: can't resolve symbol '%s'\n",
_dl_progname, strtab + symtab[symtab_index].st_name);
More information about the uClibc-cvs
mailing list