From: "Charles Coffing" Subject: [PATCH] fix for bz #858 - hanging domUs with gcc 4.2 Date: Fri, 06 Jul 2007 16:35:11 -0400 Message-ID: <468E51CB.D169.003C.0@novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Hi, This bug: http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=3D858 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 --- xen-3.1-testing.orig/tools/xenstore/Makefile +++ xen-3.1-testing/tools/xenstore/Makefile @@ -6,7 +6,7 @@ MAJOR =3D 3.0 MINOR =3D 0 PROFILE=3D#-pg -BASECFLAGS=3D-Werror +BASECFLAGS=3D-Werror -fno-strict-aliasing # Make gcc generate dependencies. BASECFLAGS +=3D -Wp,-MD,.$(@F).d PROG_DEP =3D .*.d