This is the mail archive of the
java-patches@sources.redhat.com
mailing list for the Java project.
PATCH: enable __builtin_expect()
- To: java-patches at sourceware dot cygnus dot com
- Subject: PATCH: enable __builtin_expect()
- From: Bryce McKinlay <bryce at albatross dot co dot nz>
- Date: Mon, 09 Oct 2000 14:52:25 +1300
I think it is safe to enable __builtin_expect() now, as block reordering
has been turned on in gcc for a while now and glibc is using it. I've
had this enabled for a while and havn't seen any problems.
regards
[ bryce ]
2000-10-09 Bryce McKinlay <bryce@albatross.co.nz>
* include/jvm.h: Enable __builtin_expect().
Index: jvm.h
===================================================================
RCS file: /cvs/java/libgcj/libjava/include/jvm.h,v
retrieving revision 1.30
diff -u -r1.30 jvm.h
--- jvm.h 2000/10/06 01:49:31 1.30
+++ jvm.h 2000/10/09 01:32:11
@@ -11,9 +11,6 @@
#ifndef __JAVA_JVM_H__
#define __JAVA_JVM_H__
-// FIXME: __builtin_expect doesn't work yet.
-#define __builtin_expect(A,B) (A)
-
#include <gcj/javaprims.h>
#include <java-assert.h>