This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[PATCH] ldtl.c cast patch and misc.



I started to see failures building ltdl.c this morning. I don't know
whether my patch is the right way to fix this. 

Also, include/i386-signal.h's HANDLE_DIVIDE_OVERFLOW now has an unused
variable `unsigned int *_ebp' Is it that we just don't need it
anymore?

What do you guys think?

./A

libjava:

2001-07-13  Alexandre Petit-Bianco  <apbianco@redhat.com>

	* include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): Removed unused
	local `_ebp.'

Index: include/i386-signal.h
===================================================================
RCS file: /cvs/gcc/gcc/libjava/include/i386-signal.h,v
retrieving revision 1.12
diff -u -p -r1.12 i386-signal.h
--- i386-signal.h       2001/07/06 16:33:10     1.12
+++ i386-signal.h       2001/07/13 22:53:19
@@ -45,7 +45,6 @@ do                                                              \
   void **_p = (void **)&_dummy;                                                \
   struct sigcontext_struct *_regs = (struct sigcontext_struct *)++_p;  \
                                                                        \
-  register unsigned long *_ebp = (unsigned long *)_regs->ebp;          \
   register unsigned char *_eip = (unsigned char *)_regs->eip;          \
                                                                        \
   /* According to the JVM spec, "if the dividend is the negative       \


libjava/libltdl:

2001-07-13  Alexandre Petit-Bianco  <apbianco@redhat.com>

	* ltdl.c (sys_dl_open): Cast `dlopen' and `dlerror' returned value.
	(sys_dl_close): Cast `dlerror' returned value.
	(sys_dl_sym): Cast `dlsym' returned value.

Index: ltdl.c
===================================================================
RCS file: /cvs/gcc/gcc/libjava/libltdl/ltdl.c,v
retrieving revision 1.3
diff -u -p -r1.3 ltdl.c
--- ltdl.c	2000/09/10 08:04:40	1.3
+++ ltdl.c	2001/07/13 22:52:25
@@ -293,10 +293,11 @@ sys_dl_open (loader_data, filename)
 	lt_dlloader_data_t loader_data;
 	const char *filename;
 {
-	lt_module_t module = dlopen(filename, LTDL_GLOBAL | LTDL_LAZY_OR_NOW);
+	lt_module_t module = 
+	  (lt_module_t) dlopen(filename, LTDL_GLOBAL | LTDL_LAZY_OR_NOW);
 	if (!module) {
 #if HAVE_DLERROR
-		last_error = dlerror();
+		last_error = (const char *) dlerror();
 #else
 		last_error = LT_DLSTRERROR(CANNOT_OPEN);
 #endif
@@ -311,7 +312,7 @@ sys_dl_close (loader_data, module)
 {
 	if (dlclose(module) != 0) {
 #if HAVE_DLERROR
-		last_error = dlerror();
+		last_error = (const char *) dlerror();
 #else
 		last_error = LT_DLSTRERROR(CANNOT_CLOSE);
 #endif
@@ -326,11 +327,11 @@ sys_dl_sym (loader_data, module, symbol)
 	lt_module_t module;
 	const char *symbol;
 {
-	lt_ptr_t address = dlsym(module, symbol);
+	lt_ptr_t address = (lt_ptr_t) dlsym(module, symbol);
 	
 	if (!address)
 #if HAVE_DLERROR
-		last_error = dlerror();
+		last_error = (const char *) dlerror();
 #else
 		last_error = LT_DLSTRERROR(SYMBOL_NOT_FOUND);
 #endif


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]