This is the mail archive of the
java-patches@sourceware.cygnus.com
mailing list for the Java project.
Patch: remove __builtin_expect in Class.h
- To: java-patches at sourceware dot cygnus dot com
- Subject: Patch: remove __builtin_expect in Class.h
- From: Bryce McKinlay <bryce at albatross dot co dot nz>
- Date: Sun, 21 May 2000 11:28:50 +1200
I'm checking in this patch.
regards
[ bryce ]
2000-05-20 Bryce McKinlay <bryce@albatross.co.nz>
Fix for PR libgcj/226:
* java/lang/Class.h (_Jv_InitClass): Don't call __builtin_expect,
since this is an installed header.
Index: Class.h
===================================================================
RCS file: /cvs/java/libgcj/libjava/java/lang/Class.h,v
retrieving revision 1.21
diff -u -r1.21 Class.h
--- Class.h 2000/05/19 17:55:32 1.21
+++ Class.h 2000/05/20 23:25:21
@@ -206,8 +206,9 @@
inline friend void
_Jv_InitClass (jclass klass)
{
- if (__builtin_expect (klass->state != JV_STATE_DONE, false))
- klass->initializeClass ();
+ if (klass->state == JV_STATE_DONE)
+ return;
+ klass->initializeClass ();
}
friend _Jv_Method* _Jv_LookupDeclaredMethod (jclass, _Jv_Utf8Const *,