[kaffe] CVS kaffe (dalibor): Fixed gcc warning
Kaffe CVS
Kaffe Mailing List <kaffe@kaffe.org>
Sat Feb 7 07:33:02 2004
PatchSet 4397
Date: 2004/02/07 15:30:38
Author: dalibor
Branch: HEAD
Tag: (none)
Log:
Fixed gcc warning
2004-02-07 Dalibor Topic <robilad@kaffe.org>
* kaffe/kaffevm/intrp/machine.c
(overflow): New static variable.
(runVirtualMachine) Use pointer to static variable overflow to
fix a gcc warning.
Members:
ChangeLog:1.1981->1.1982
kaffe/kaffevm/intrp/machine.c:1.37->1.38
Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.1981 kaffe/ChangeLog:1.1982
--- kaffe/ChangeLog:1.1981 Wed Feb 4 19:07:13 2004
+++ kaffe/ChangeLog Sat Feb 7 15:30:38 2004
@@ -1,3 +1,10 @@
+2004-02-07 Dalibor Topic <robilad@kaffe.org>
+
+ * kaffe/kaffevm/intrp/machine.c
+ (overflow): New static variable.
+ (runVirtualMachine) Use pointer to static variable overflow to
+ fix a gcc warning.
+
2004-02-04 Dalibor Topic <robilad@kaffe.org>
Resynced with GNU Classpath.
Index: kaffe/kaffe/kaffevm/intrp/machine.c
diff -u kaffe/kaffe/kaffevm/intrp/machine.c:1.37 kaffe/kaffe/kaffevm/intrp/machine.c:1.38
--- kaffe/kaffe/kaffevm/intrp/machine.c:1.37 Sun Feb 1 22:14:53 2004
+++ kaffe/kaffe/kaffevm/intrp/machine.c Sat Feb 7 15:30:40 2004
@@ -83,6 +83,9 @@
int profFlag; /* flag to control profiling */
#endif
+/* Used to store overflow exception */
+static Hjava_lang_Throwable overflow;
+
void runVirtualMachine(methods *meth, slots *lcl, slots *sp, uintp npc, slots *retval, volatile VmExceptHandler *mjbuf, threadData *thread_data);
void
@@ -101,7 +104,6 @@
jint low;
errorInfo einfo;
- Hjava_lang_Throwable* overflow;
/* implement stack overflow check */
if (jthread_stackcheck(thread_data->needOnStack) == false) {
@@ -119,7 +121,7 @@
th = (Hjava_lang_Throwable *)newObjectChecked (javaLangStackOverflowError, &einfo);
thread_data->needOnStack = STACK_HIGH;
- throwException(overflow);
+ throwException(&overflow);
}
}