WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] fix for bz #858 - hanging domUs with gcc 4.2

To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] fix for bz #858 - hanging domUs with gcc 4.2
From: "Charles Coffing" <ccoffing@xxxxxxxxxx>
Date: Fri, 06 Jul 2007 16:35:11 -0400
Delivery-date: Fri, 06 Jul 2007 13:33:14 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi,

This bug:
http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=858
is caused by -fstrict-aliasing being enabled by default in gcc 4.2 when -O2, 
-O3, or -Os are used.  (Quick recap of the bug:  When the tools are built using 
gcc 4.2, various hangs of the domUs are observed.)

The simplest fix is to disable strict aliasing for xenstore.  Please apply the 
following patch to xen-unstable (and xen-3.1, if fixes are being accumulated 
there).

Thanks.

Signed-off-by: Charles Coffing <ccoffing@xxxxxxxxxx>


--- xen-3.1-testing.orig/tools/xenstore/Makefile
+++ xen-3.1-testing/tools/xenstore/Makefile
@@ -6,7 +6,7 @@ MAJOR = 3.0
 MINOR = 0

 PROFILE=#-pg
-BASECFLAGS=-Werror
+BASECFLAGS=-Werror -fno-strict-aliasing
 # Make gcc generate dependencies.
 BASECFLAGS += -Wp,-MD,.$(@F).d
 PROG_DEP = .*.d



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] fix for bz #858 - hanging domUs with gcc 4.2, Charles Coffing <=