Andrew Haley | 21 Oct 2009 15:47
Picon
Favicon

[Fwd: [PATCH] Fix PR39177]

Apparently this bounced when it was sent because Richard isn't a
subscriber.

Andrew.
Picon
From: Richard Guenther <rguenther <at> suse.de>
Subject: [PATCH] Fix PR39177
Date: 2009-10-21 13:28:32 GMT

This fixes the GCC bootstrap failures in libjava when using gjar
from GCC 4.4 or later.

Ok for the trunk and the 4.4 branch?  Please somebody deal with
the classpath repo.

Thanks,
Richard.

2009-10-21  Richard Guenther  <rguenther <at> suse.de>

	PR cp-tools/39177
	* tools/gnu/classpath/tools/jar/Creator.java (writeCommandLineEntries):
	Do not use uninitialized manifest.
	* tools/classes/gnu/classpath/tools/jar/Creator.class: Re-generated.
(Continue reading)

Andrew Haley | 22 Oct 2009 18:20
Picon
Favicon

Fix ' dereferencing type-punned pointer will break strict-aliasing rules'

The warning is bogus.  Fixed thusly.

Andrew.

2009-10-22  Andrew Haley  <aph <at> redhat.com>

	* native/jni/native-lib/cpnet.c (cpnet_addMembership): Fix
	aliasing warning.
	(cpnet_dropMembership): Likewise.

Index: cpnet.c
===================================================================
RCS file: /sources/classpath/classpath/native/jni/native-lib/cpnet.c,v
retrieving revision 1.10
diff -u -p -r1.10 cpnet.c
--- cpnet.c	25 Jun 2007 09:44:36 -0000	1.10
+++ cpnet.c	22 Oct 2009 16:18:07 -0000
 <at>  <at>  -578,9 +578,10  <at>  <at>  jint cpnet_addMembership (JNIEnv *env UN
 {
   struct ip_mreq req;
   int ret;
+  struct sockaddr_in *sockaddr = (struct sockaddr_in *)addr->data;

   memset(&req, 0, sizeof(req));
-  req.imr_multiaddr = ((struct sockaddr_in *)addr->data)->sin_addr;
+  req.imr_multiaddr = sockaddr->sin_addr;
   req.imr_interface.s_addr = INADDR_ANY;
   ret = setsockopt(fd, IPPROTO_IP, IP_ADD_MEMBERSHIP, &req, sizeof(req));
   if (ret != 0)
 <at>  <at>  -593,9 +594,10  <at>  <at>  jint cpnet_dropMembership (JNIEnv *env U
(Continue reading)


Gmane