[kaffe] CVS kaffe (guilhem): Fixlet for sparc compiler which does not support __builtin_expect
Kaffe CVS
cvs-commits at kaffe.org
Tue Jun 21 07:48:19 PDT 2005
PatchSet 6652
Date: 2005/06/21 14:42:21
Author: guilhem
Branch: HEAD
Tag: (none)
Log:
Fixlet for sparc compiler which does not support __builtin_expect
Members:
ChangeLog:1.4178->1.4179
config/sparc/atomic-sparc64.h:1.1->1.2
Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.4178 kaffe/ChangeLog:1.4179
--- kaffe/ChangeLog:1.4178 Tue Jun 21 12:56:30 2005
+++ kaffe/ChangeLog Tue Jun 21 14:42:21 2005
@@ -1,5 +1,12 @@
2005-06-21 Guilhem Lavaux <guilhem at kaffe.org>
- Riccardo Mottola <rmottola at users.sf.net>
+
+ * config/sparc/atomic-sparc64.h
+ (__builtin_expect): Do not take into account expect if we are not
+ using gcc or it is not at least gcc3.
+
+ Reported by Riccardo Mottola <rmottola at users.sf.net>
+
+2005-06-21 Guilhem Lavaux <guilhem at kaffe.org>
* config/mips/atomic.h: Rearranged the inlined assembly to make it
compile on Irix.
Index: kaffe/config/sparc/atomic-sparc64.h
diff -u kaffe/config/sparc/atomic-sparc64.h:1.1 kaffe/config/sparc/atomic-sparc64.h:1.2
--- kaffe/config/sparc/atomic-sparc64.h:1.1 Sun Mar 20 20:30:41 2005
+++ kaffe/config/sparc/atomic-sparc64.h Tue Jun 21 14:42:26 2005
@@ -45,6 +45,10 @@
typedef intmax_t atomic_max_t;
typedef uintmax_t uatomic_max_t;
+#if !defined(__GNUC__) || (__GNUC__ < 3)
+#define __builtin_expect(a,b) a
+#endif
+
#define __arch_compare_and_exchange_val_8_acq(mem, newval, oldval) \
(abort (), (__typeof (*mem)) 0)
More information about the kaffe
mailing list