[kaffe] CVS kaffe (robilad): build fix for -O0
Kaffe CVS
cvs-commits at kaffe.org
Sat Jul 15 04:25:38 PDT 2006
PatchSet 7340
Date: 2006/07/15 11:10:25
Author: robilad
Branch: HEAD
Tag: (none)
Log:
build fix for -O0
2006-07-15 Dalibor Topic <robilad at kaffe.org>
Fix for #49.
* kaffe/kaffevm/jar.c (instantiateSignature),
kaffe/kaffevm/utf8const.c (UTFmalloc, UTFfree):
Removing the inline keyword fixes the build with
gcc-4.1 and -O0.
Members:
ChangeLog:1.4843->1.4844
kaffe/kaffevm/jar.c:1.40->1.41
kaffe/kaffevm/utf8const.c:1.52->1.53
Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.4843 kaffe/ChangeLog:1.4844
--- kaffe/ChangeLog:1.4843 Sat Jul 15 10:26:00 2006
+++ kaffe/ChangeLog Sat Jul 15 11:10:25 2006
@@ -1,5 +1,14 @@
2006-07-15 Dalibor Topic <robilad at kaffe.org>
+ Fix for #49.
+
+ * kaffe/kaffevm/jar.c (instantiateSignature),
+ kaffe/kaffevm/utf8const.c (UTFmalloc, UTFfree):
+ Removing the inline keyword fixes the build with
+ gcc-4.1 and -O0.
+
+2006-07-15 Dalibor Topic <robilad at kaffe.org>
+
* configure.ac: (KAFFEVM_TRAMPOLINES_S) Removed unnecessary
top_srcdir part, fixing a config.status warning.
Index: kaffe/kaffe/kaffevm/jar.c
diff -u kaffe/kaffe/kaffevm/jar.c:1.40 kaffe/kaffe/kaffevm/jar.c:1.41
--- kaffe/kaffe/kaffevm/jar.c:1.40 Fri Apr 21 01:32:42 2006
+++ kaffe/kaffe/kaffevm/jar.c Sat Jul 15 11:10:31 2006
@@ -625,7 +625,7 @@
return( FILE_SIZEOF_CENTRALEND );
}
-static inline int instantiateSignature(uint8 *dest, uint8 *buf)
+static int instantiateSignature(uint8 *dest, uint8 *buf)
{
uint32 *sig = (uint32 *)dest;
Index: kaffe/kaffe/kaffevm/utf8const.c
diff -u kaffe/kaffe/kaffevm/utf8const.c:1.52 kaffe/kaffe/kaffevm/utf8const.c:1.53
--- kaffe/kaffe/kaffevm/utf8const.c:1.52 Sat Apr 22 01:53:41 2006
+++ kaffe/kaffe/kaffevm/utf8const.c Sat Jul 15 11:10:31 2006
@@ -57,7 +57,7 @@
#define lockUTF() lockStaticMutex(&utf8Lock)
#define unlockUTF() unlockStaticMutex(&utf8Lock)
-static inline void *UTFmalloc(size_t size)
+static void *UTFmalloc(size_t size)
{
void *ret;
@@ -68,7 +68,7 @@
return ret;
}
-static inline void UTFfree(const void *mem)
+static void UTFfree(const void *mem)
{
unlockStaticMutex(&utf8Lock);
gc_free((void *)mem);
More information about the kaffe
mailing list