[uClibc-cvs] uClibc/ldso/ldso/arm ld_syscalls.h,1.5,1.6
Erik Andersen
andersen at uclibc.org
Tue Sep 9 06:11:16 UTC 2003
Update of /var/cvs/uClibc/ldso/ldso/arm
In directory winder:/tmp/cvs-serv27366/ldso/ldso/arm
Modified Files:
ld_syscalls.h
Log Message:
Arm needs this to compile with gcc 2.95
Index: ld_syscalls.h
===================================================================
RCS file: /var/cvs/uClibc/ldso/ldso/arm/ld_syscalls.h,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- ld_syscalls.h 9 Aug 2002 12:20:22 -0000 1.5
+++ ld_syscalls.h 9 Sep 2003 06:11:11 -0000 1.6
@@ -3,5 +3,17 @@
* before the errno symbol is dynamicly linked. */
#define __set_errno(X) {(void)(X);}
+
+/* Prepare for the case that `__builtin_expect' is not available. */
+#if __GNUC__ == 2 && __GNUC_MINOR__ < 96
+#define __builtin_expect(x, expected_value) (x)
+#endif
+#ifndef likely
+# define likely(x) __builtin_expect((!!(x)),1)
+#endif
+#ifndef unlikely
+# define unlikely(x) __builtin_expect((!!(x)),0)
+#endif
+
#include "sys/syscall.h"
More information about the uClibc-cvs
mailing list