[kaffe] CVS kaffe (robilad): warning fixes

Kaffe CVS cvs-commits at kaffe.org
Sat Sep 24 19:51:31 PDT 2005


PatchSet 6932 
Date: 2005/09/25 02:46:43
Author: robilad
Branch: HEAD
Tag: (none) 
Log:
warning fixes

2005-09-25  Dalibor Topic  <robilad at kaffe.org>

* configure.ac: Bumped version number.
Simplified gmp tests.

* include/Arrays.h: HArrayOfBoolean fixed type of
data.

* kaffe/kaffevm/support.c: (bitCount) Make lpc unsigned.

* kaffe/kaffevm/systems/unix-jthreads/jthread.c
(restore_fds_and_exit),
kaffe/kaffevm/systems/unix-jthreads/jthread.h,
(jthread_exit_when_done): Removed bad NONRETURNING tag.

Members: 
	ChangeLog:1.4454->1.4455 
	configure:1.492->1.493 
	configure.ac:1.173->1.174 
	include/Arrays.h:INITIAL->1.6 
	kaffe/kaffevm/support.c:1.89->1.90 
	kaffe/kaffevm/systems/unix-jthreads/jthread.c:1.138->1.139 
	kaffe/kaffevm/systems/unix-jthreads/jthread.h:1.69->1.70 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.4454 kaffe/ChangeLog:1.4455
--- kaffe/ChangeLog:1.4454	Sat Sep 24 19:00:43 2005
+++ kaffe/ChangeLog	Sun Sep 25 02:46:43 2005
@@ -1,3 +1,20 @@
+2005-09-25  Dalibor Topic  <robilad at kaffe.org>
+
+	* configure.ac: Bumped version number.
+	Simplified gmp tests.
+
+	* include/Arrays.h: HArrayOfBoolean fixed type of
+	data.
+
+	* kaffe/kaffevm/support.c: (bitCount) Make lpc unsigned.
+
+	* kaffe/kaffevm/systems/unix-jthreads/jthread.c 
+	(restore_fds_and_exit),
+	kaffe/kaffevm/systems/unix-jthreads/jthread.h,
+	(jthread_exit_when_done): Removed bad NONRETURNING tag.
+
+	
+	
 2005-09-24  Guilhem Lavaux  <guilhem at kaffe.org>
 
 	* kaffe/kaffevm/kaffe-gc/gc-mem.c
Index: kaffe/configure
diff -u kaffe/configure:1.492 kaffe/configure:1.493
--- kaffe/configure:1.492	Tue Sep 20 21:44:42 2005
+++ kaffe/configure	Sun Sep 25 02:46:43 2005
@@ -1,6 +1,6 @@
 #! /bin/sh
 # Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.59 for Kaffe Virtual Machine 1.1.6.
+# Generated by GNU Autoconf 2.59 for Kaffe Virtual Machine 1.1.6+cvs.
 #
 # Report bugs to <kaffe at kaffe.org>.
 #
@@ -446,8 +446,8 @@
 # Identity of this package.
 PACKAGE_NAME='Kaffe Virtual Machine'
 PACKAGE_TARNAME='kaffe'
-PACKAGE_VERSION='1.1.6'
-PACKAGE_STRING='Kaffe Virtual Machine 1.1.6'
+PACKAGE_VERSION='1.1.6+cvs'
+PACKAGE_STRING='Kaffe Virtual Machine 1.1.6+cvs'
 PACKAGE_BUGREPORT='kaffe at kaffe.org'
 
 ac_unique_file="kaffe"
@@ -988,7 +988,7 @@
   # Omit some internal or obsolete options to make the list less imposing.
   # This message is too long to be a string in the A/UX 3.1 sh.
   cat <<_ACEOF
-\`configure' configures Kaffe Virtual Machine 1.1.6 to adapt to many kinds of systems.
+\`configure' configures Kaffe Virtual Machine 1.1.6+cvs to adapt to many kinds of systems.
 
 Usage: $0 [OPTION]... [VAR=VALUE]...
 
@@ -1058,7 +1058,7 @@
 
 if test -n "$ac_init_help"; then
   case $ac_init_help in
-     short | recursive ) echo "Configuration of Kaffe Virtual Machine 1.1.6:";;
+     short | recursive ) echo "Configuration of Kaffe Virtual Machine 1.1.6+cvs:";;
    esac
   cat <<\_ACEOF
 
@@ -1303,7 +1303,7 @@
 test -n "$ac_init_help" && exit 0
 if $ac_init_version; then
   cat <<\_ACEOF
-Kaffe Virtual Machine configure 1.1.6
+Kaffe Virtual Machine configure 1.1.6+cvs
 generated by GNU Autoconf 2.59
 
 Copyright (C) 2003 Free Software Foundation, Inc.
@@ -1340,7 +1340,7 @@
 This file contains any messages produced by compilers while
 running configure, to aid debugging if configure makes a mistake.
 
-It was created by Kaffe Virtual Machine $as_me 1.1.6, which was
+It was created by Kaffe Virtual Machine $as_me 1.1.6+cvs, which was
 generated by GNU Autoconf 2.59.  Invocation command line was
 
   $ $0 $@
@@ -2005,7 +2005,7 @@
 
 # Define the identity of the package.
  PACKAGE='kaffe'
- VERSION='1.1.6'
+ VERSION='1.1.6+cvs'
 
 
 cat >>confdefs.h <<_ACEOF
@@ -50135,168 +50135,14 @@
 esac
 else
 
-        if test "$ac_cv_lib_gmp_mpz_get_d" = no; then
-                if test "$ac_cv_lib_gmp___gmpz_get_d" = no; then
+        if test x"$ac_cv_lib_gmp_mpz_get_d" = x"no"; then
+                if test x"$ac_cv_lib_gmp___gmpz_get_d" = x"no"; then
 			{ { echo "$as_me:$LINENO: error: Could not find GNU MP library.  Install the gmp development package, or pass --enable-pure-java-math to configure." >&5
 echo "$as_me: error: Could not find GNU MP library.  Install the gmp development package, or pass --enable-pure-java-math to configure." >&2;}
    { (exit 1); exit 1; }; }
 		fi
 	fi
 
-for ac_header in gmp.h
-do
-as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
-if eval "test \"\${$as_ac_Header+set}\" = set"; then
-  echo "$as_me:$LINENO: checking for $ac_header" >&5
-echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
-if eval "test \"\${$as_ac_Header+set}\" = set"; then
-  echo $ECHO_N "(cached) $ECHO_C" >&6
-fi
-echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
-echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
-else
-  # Is the header compilable?
-echo "$as_me:$LINENO: checking $ac_header usability" >&5
-echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
-cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h.  */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h.  */
-$ac_includes_default
-#include <$ac_header>
-_ACEOF
-rm -f conftest.$ac_objext
-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
-  (eval $ac_compile) 2>conftest.er1
-  ac_status=$?
-  grep -v '^ *+' conftest.er1 >conftest.err
-  rm -f conftest.er1
-  cat conftest.err >&5
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); } &&
-	 { ac_try='test -z "$ac_c_werror_flag"
-			 || test ! -s conftest.err'
-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
-  (eval $ac_try) 2>&5
-  ac_status=$?
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); }; } &&
-	 { ac_try='test -s conftest.$ac_objext'
-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
-  (eval $ac_try) 2>&5
-  ac_status=$?
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); }; }; then
-  ac_header_compiler=yes
-else
-  echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-ac_header_compiler=no
-fi
-rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
-echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
-echo "${ECHO_T}$ac_header_compiler" >&6
-
-# Is the header present?
-echo "$as_me:$LINENO: checking $ac_header presence" >&5
-echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
-cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h.  */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h.  */
-#include <$ac_header>
-_ACEOF
-if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
-  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
-  ac_status=$?
-  grep -v '^ *+' conftest.er1 >conftest.err
-  rm -f conftest.er1
-  cat conftest.err >&5
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); } >/dev/null; then
-  if test -s conftest.err; then
-    ac_cpp_err=$ac_c_preproc_warn_flag
-    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
-  else
-    ac_cpp_err=
-  fi
-else
-  ac_cpp_err=yes
-fi
-if test -z "$ac_cpp_err"; then
-  ac_header_preproc=yes
-else
-  echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-  ac_header_preproc=no
-fi
-rm -f conftest.err conftest.$ac_ext
-echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
-echo "${ECHO_T}$ac_header_preproc" >&6
-
-# So?  What about this header?
-case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
-  yes:no: )
-    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
-echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
-    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
-echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
-    ac_header_preproc=yes
-    ;;
-  no:yes:* )
-    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
-echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
-    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
-echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
-    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
-echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
-    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
-echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
-    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
-echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
-    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
-echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
-    (
-      cat <<\_ASBOX
-## ------------------------------ ##
-## Report this to kaffe at kaffe.org ##
-## ------------------------------ ##
-_ASBOX
-    ) |
-      sed "s/^/$as_me: WARNING:     /" >&2
-    ;;
-esac
-echo "$as_me:$LINENO: checking for $ac_header" >&5
-echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
-if eval "test \"\${$as_ac_Header+set}\" = set"; then
-  echo $ECHO_N "(cached) $ECHO_C" >&6
-else
-  eval "$as_ac_Header=\$ac_header_preproc"
-fi
-echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
-echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
-
-fi
-if test `eval echo '${'$as_ac_Header'}'` = yes; then
-  cat >>confdefs.h <<_ACEOF
-#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
-_ACEOF
- pure_java_math=false
-else
-  { { echo "$as_me:$LINENO: error: Found GNU MP library, but can't find gmp.h.  Install the gmp development package, or pass --enable-pure-java-math to  configure." >&5
-echo "$as_me: error: Found GNU MP library, but can't find gmp.h.  Install the gmp development package, or pass --enable-pure-java-math to  configure." >&2;}
-   { (exit 1); exit 1; }; }
-fi
-
-done
-
-
 
 fi;
 
@@ -52580,7 +52426,7 @@
 } >&5
 cat >&5 <<_CSEOF
 
-This file was extended by Kaffe Virtual Machine $as_me 1.1.6, which was
+This file was extended by Kaffe Virtual Machine $as_me 1.1.6+cvs, which was
 generated by GNU Autoconf 2.59.  Invocation command line was
 
   CONFIG_FILES    = $CONFIG_FILES
@@ -52643,7 +52489,7 @@
 
 cat >>$CONFIG_STATUS <<_ACEOF
 ac_cs_version="\\
-Kaffe Virtual Machine config.status 1.1.6
+Kaffe Virtual Machine config.status 1.1.6+cvs
 configured by $0, generated by GNU Autoconf 2.59,
   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
 
Index: kaffe/configure.ac
diff -u kaffe/configure.ac:1.173 kaffe/configure.ac:1.174
--- kaffe/configure.ac:1.173	Tue Sep 20 21:44:50 2005
+++ kaffe/configure.ac	Sun Sep 25 02:46:51 2005
@@ -1,4 +1,4 @@
-AC_INIT([Kaffe Virtual Machine],[1.1.6],[kaffe at kaffe.org],[kaffe])
+AC_INIT([Kaffe Virtual Machine],[1.1.6+cvs],[kaffe at kaffe.org],[kaffe])
 
 AC_PREREQ(2.59)
 
@@ -1991,14 +1991,11 @@
 esac],
 [
 dnl  If nothing is set, use native implementation if GNU MP can be found.
-        if test "$ac_cv_lib_gmp_mpz_get_d" = no; then
-                if test "$ac_cv_lib_gmp___gmpz_get_d" = no; then
+        if test x"$ac_cv_lib_gmp_mpz_get_d" = x"no"; then
+                if test x"$ac_cv_lib_gmp___gmpz_get_d" = x"no"; then
 			AC_MSG_ERROR([Could not find GNU MP library.  Install the gmp development package, or pass --enable-pure-java-math to configure.])
 		fi
 	fi
-	AC_CHECK_HEADERS([gmp.h],
-			 [pure_java_math=false],
-			 [AC_MSG_ERROR([Found GNU MP library, but can't find gmp.h.  Install the gmp development package, or pass --enable-pure-java-math to  configure.])])
 ]
 )
 
===================================================================
Checking out kaffe/include/Arrays.h
RCS:  /home/cvs/kaffe/kaffe/include/Arrays.h,v
VERS: 1.6
***************
--- /dev/null	Sun Aug  4 19:57:58 2002
+++ kaffe/include/Arrays.h	Sun Sep 25 02:51:30 2005
@@ -0,0 +1,42 @@
+/*
+ * array.h
+ * What do our internal Java arrays look like.
+ *
+ * Copyright (c) 1996, 1997
+ *	Transvirtual Technologies, Inc.  All rights reserved.
+ *
+ * See the file "license.terms" for information on usage and redistribution 
+ * of this file. 
+ */
+
+#ifndef __array_h
+#define __array_h
+
+/*
+ * Define various array types
+ */
+typedef struct { Hjava_lang_Object base; jsize length; union { double align; jboolean body[1]; } data[1]; } HArrayOfBoolean;
+typedef struct { Hjava_lang_Object base; jsize length; union { double align; jbyte body[1]; } data[1]; } HArrayOfByte;
+typedef struct { Hjava_lang_Object base; jsize length; union { double align; jchar body[1]; } data[1]; } HArrayOfChar;
+typedef struct { Hjava_lang_Object base; jsize length; union { double align; jdouble body[1]; } data[1]; } HArrayOfDouble;
+typedef struct { Hjava_lang_Object base; jsize length; union { double align; jfloat body[1]; } data[1]; } HArrayOfFloat;
+typedef struct { Hjava_lang_Object base; jsize length; union { double align; jint body[1]; } data[1]; } HArrayOfInt;
+typedef struct { Hjava_lang_Object base; jsize length; union { double align; jshort body[1]; } data[1]; } HArrayOfShort;
+typedef struct { Hjava_lang_Object base; jsize length; union { double align; jlong body[1]; } data[1]; } HArrayOfLong;
+typedef struct { Hjava_lang_Object base; jsize length; union { double align; Hjava_lang_Object* body[1]; } data[1]; } HArrayOfArray;
+typedef struct { Hjava_lang_Object base; jsize length; union { double align; Hjava_lang_Object* body[1]; } data[1]; } HArrayOfObject;
+
+/* Get length of arrays */
+#define	obj_length(_obj)	((_obj)->length)
+#define unhand_array(_arr)	((_arr)->data)
+#define unhand_byte_array(_arr)		((jbyte *)((_arr)->data))
+#define unhand_char_array(_arr)		((jchar *)((_arr)->data))
+#define unhand_double_array(_arr)	((jdouble *)((_arr)->data))
+#define unhand_float_array(_arr)	((jfloat *)((_arr)->data))
+#define unhand_int_array(_arr)		((jint *)((_arr)->data))
+#define unhand_short_array(_arr)	((jshort *)((_arr)->data))
+#define unhand_long_array(_arr)		((jlong *)((_arr)->data))
+#define unhand_array_array(_arr)	((Hjava_lang_Object **)((_arr)->data))
+#define unhand_object_array(_arr)	((Hjava_lang_Object *)((_arr)->data))
+
+#endif
Index: kaffe/kaffe/kaffevm/support.c
diff -u kaffe/kaffe/kaffevm/support.c:1.89 kaffe/kaffe/kaffevm/support.c:1.90
--- kaffe/kaffe/kaffevm/support.c:1.89	Wed Sep 14 20:47:59 2005
+++ kaffe/kaffe/kaffevm/support.c	Sun Sep 25 02:46:52 2005
@@ -611,7 +611,8 @@
 /* XXX Ick */
 int bitCount(int bits)
 {
-	int lpc, retval = 0;
+	unsigned int lpc;
+	int retval = 0;
 
 	for( lpc = 0; lpc < (sizeof(int) * 8); lpc++ )
 	{
Index: kaffe/kaffe/kaffevm/systems/unix-jthreads/jthread.c
diff -u kaffe/kaffe/kaffevm/systems/unix-jthreads/jthread.c:1.138 kaffe/kaffe/kaffevm/systems/unix-jthreads/jthread.c:1.139
--- kaffe/kaffe/kaffevm/systems/unix-jthreads/jthread.c:1.138	Sun Aug  7 02:28:34 2005
+++ kaffe/kaffe/kaffevm/systems/unix-jthreads/jthread.c	Sun Sep 25 02:46:52 2005
@@ -2703,7 +2703,7 @@
     	}
 }
 
-static void NONRETURNING
+static void
 restore_fds_and_exit()
 {
 	restore_fds();
Index: kaffe/kaffe/kaffevm/systems/unix-jthreads/jthread.h
diff -u kaffe/kaffe/kaffevm/systems/unix-jthreads/jthread.h:1.69 kaffe/kaffe/kaffevm/systems/unix-jthreads/jthread.h:1.70
--- kaffe/kaffe/kaffevm/systems/unix-jthreads/jthread.h:1.69	Tue May 10 00:08:16 2005
+++ kaffe/kaffe/kaffevm/systems/unix-jthreads/jthread.h	Sun Sep 25 02:46:52 2005
@@ -370,7 +370,7 @@
 int jthread_has_run(jthread_t jt);
 
 /* let main thread loop until all threads finish, for tests */
-void 	jthread_exit_when_done(void) NONRETURNING;
+void 	jthread_exit_when_done(void);
 
 static inline
 bool jthread_attach_current_thread(UNUSED bool isDaemon)




More information about the kaffe mailing list