[kaffe] CVS kaffe (robilad): small gcc 4.1.1 warning fixes

Kaffe CVS cvs-commits at kaffe.org
Wed Jun 14 04:49:03 PDT 2006


PatchSet 7309 
Date: 2006/06/14 11:39:55
Author: robilad
Branch: HEAD
Tag: (none) 
Log:
small gcc 4.1.1 warning fixes

2006-06-11  Dalibor Topic  <robilad at kaffe.org>

        Fixed 9 gcc 4.1.1 warnings.

        * config/i386/jit3-i386.def (profiler_start, profiler_end):
        Use profiler_click_t for count.

Members: 
	ChangeLog:1.4813->1.4814 
	config/i386/jit3-i386.def:1.32->1.33 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.4813 kaffe/ChangeLog:1.4814
--- kaffe/ChangeLog:1.4813	Sun Jun 11 23:12:04 2006
+++ kaffe/ChangeLog	Wed Jun 14 11:39:55 2006
@@ -1,3 +1,10 @@
+2006-06-14  Dalibor Topic  <robilad at kaffe.org>
+
+	Fixed 9 gcc 4.1.1 warnings.
+
+	* config/i386/jit3-i386.def (profiler_start, profiler_end):
+	Use profiler_click_t for count.
+
 2006-06-11  Dalibor Topic  <robilad at kaffe.org>
 
 	Fixed 16 gcc 4.1.1 warnings due to abuse of a methods
Index: kaffe/config/i386/jit3-i386.def
diff -u kaffe/config/i386/jit3-i386.def:1.32 kaffe/config/i386/jit3-i386.def:1.33
--- kaffe/config/i386/jit3-i386.def:1.32	Fri Apr 21 20:34:42 2006
+++ kaffe/config/i386/jit3-i386.def	Wed Jun 14 11:40:00 2006
@@ -96,7 +96,7 @@
  * from COUNTER.  As this will scratch EDX and EAX, the second
  * parameter said if they must be saved.  */
 #define profiler_start(COUNTER, SAVE_EDX_EAX) do {		\
-	int *__counter = (int *)&(COUNTER);			\
+	profiler_click_t *__counter = &(COUNTER);		\
 	if (SAVE_EDX_EAX) {					\
 		/* Save EAX and EDX */				\
 		OUT(0x50|REG_edx);				\
@@ -132,7 +132,7 @@
  * As this will scratch EDX and EAX, the second parameter said if
  * they must be saved.  */
 #define profiler_end(COUNTER, SAVE_EDX_EAX) do {		\
-	int *__counter = (int *)&(COUNTER);			\
+	profiler_click_t *__counter = &(COUNTER);		\
 	if (SAVE_EDX_EAX) {					\
 		/* Save EAX and EDX */				\
 		OUT(0x50|REG_edx);				\




More information about the kaffe mailing list