Skip to contentSkip to conversation

fix for bz #858 - hanging domUs with gcc 4.2

PATCH New Charles Coffing 1 participant 1 message Jul 6, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix for bz #858 - hanging domUs with gcc 4.2

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.

tools/xenstore/Makefile +1 -1
@@ -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