From: "=?utf-8?q?S=2E=C3=87a=C4=9Flar?= Onur" Subject: [PATCH] the address of 'symbols_addresses' will always evaluate as 'true' Date: Wed, 10 Jan 2007 03:18:13 +0200 Message-ID: <200701100318.16115.caglar@pardus.org.tr> Reply-To: caglar@pardus.org.tr Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0316779210==" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Mime-version: 1.0 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 --===============0316779210== Content-Type: multipart/signed; boundary="nextPart1274953.k46VIqdXj2"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit --nextPart1274953.k46VIqdXj2 Content-Type: multipart/mixed; boundary="Boundary-01=_V7DpFrbXjIaQ/IU" Content-Transfer-Encoding: 7bit Content-Disposition: inline --Boundary-01=_V7DpFrbXjIaQ/IU Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi; Attached patch adds "-Wno-always-true" CFLAGS into xen/arch/powerpc/Rules.m= k=20 and xen/arch/x86/Rules.mk, else compiling xen with latest gcc-4.2.0 snapsho= t=20 fails, patch is against current xen-3.0.4-testing repo; make[3]: Entering directory=20 `/var/pisi/xen-3.0.4.1-3/work/xen-3.0.4-testing.hg/xen/common' gcc -O2 -fomit-frame-pointer -m32 -march=3Di686 -DNDEBUG -std=3Dgnu99 -Wall= -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement -nostd= inc -fno-builtin -fno-common -fno-strict-aliasing -iwithprefix=20 include -Werror -Wno-pointer-arith -pipe -I/var/pisi/xen-3.0.4.1-3/work/xen= =2D3.0.4-testing.hg/xen/include -I/var/pisi/xen-3.0.4.1-3/work/xen-3.0.4-te= sting.hg/xen/include/asm-x86/mach-generic -I/var/pisi/xen-3.0.4.1-3/work/xe= n-3.0.4-testing.hg/xen/include/asm-x86/mach-default -msoft-float -fno-stack= =2Dprotector -g -D__XEN__ -c=20 symbols.c -o symbols.o cc1: warnings being treated as errors symbols.c: In function 'symbols_lookup': symbols.c:97: warning: the address of 'symbols_addresses' will always evalu= ate=20 as 'true' make[3]: *** [symbols.o] Error 1 make[3]: Leaving directory=20 `/var/pisi/xen-3.0.4.1-3/work/xen-3.0.4-testing.hg/xen/common' make[2]: ***=20 [/var/pisi/xen-3.0.4.1-3/work/xen-3.0.4-testing.hg/xen/common/built_in.o]=20 Error 2 make[2]: Leaving directory=20 `/var/pisi/xen-3.0.4.1-3/work/xen-3.0.4-testing.hg/xen/arch/x86' make[1]: *** [/var/pisi/xen-3.0.4.1-3/work/xen-3.0.4-testing.hg/xen/xen] Er= ror=20 2 make[1]: Leaving directory=20 `/var/pisi/xen-3.0.4.1-3/work/xen-3.0.4-testing.hg/xen' make: *** [build] Error 2 Cheers =2D-=20 S.=C3=87a=C4=9Flar Onur http://cekirdek.pardus.org.tr/~caglar/ Linux is like living in a teepee. No Windows, no Gates and an Apache in hou= se! --Boundary-01=_V7DpFrbXjIaQ/IU Content-Type: text/x-diff; charset="utf-8"; name="no_always_true.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="no_always_true.patch" diff -r c32abbaccdac xen/arch/powerpc/Rules.mk =2D-- a/xen/arch/powerpc/Rules.mk Tue Jan 09 19:24:12 2007 +0000 +++ b/xen/arch/powerpc/Rules.mk Wed Jan 10 03:13:33 2007 +0200 @@ -12,7 +12,7 @@ C_WARNINGS :=3D # C_WARNINGS +=3D -Wpacked =20 CFLAGS :=3D -m64 -ffreestanding -fno-builtin -fno-common -fno-strict-alias= ing =2DCFLAGS +=3D -iwithprefix include -Wall -Werror -pipe +CFLAGS +=3D -iwithprefix include -Wall -Wno-always-true -Werror -pipe CFLAGS +=3D -I$(BASEDIR)/include CFLAGS +=3D -I$(BASEDIR)/include/asm-powerpc/mach-generic CFLAGS +=3D -I$(BASEDIR)/include/asm-powerpc/mach-default diff -r c32abbaccdac xen/arch/x86/Rules.mk =2D-- a/xen/arch/x86/Rules.mk Tue Jan 09 19:24:12 2007 +0000 +++ b/xen/arch/x86/Rules.mk Wed Jan 10 03:13:13 2007 +0200 @@ -18,7 +18,7 @@ endif endif =20 CFLAGS +=3D -fno-builtin -fno-common -fno-strict-aliasing =2DCFLAGS +=3D -iwithprefix include -Werror -Wno-pointer-arith -pipe +CFLAGS +=3D -iwithprefix include -Wno-always-true -Werror -Wno-pointer-ari= th -pipe CFLAGS +=3D -I$(BASEDIR)/include=20 CFLAGS +=3D -I$(BASEDIR)/include/asm-x86/mach-generic CFLAGS +=3D -I$(BASEDIR)/include/asm-x86/mach-default --Boundary-01=_V7DpFrbXjIaQ/IU-- --nextPart1274953.k46VIqdXj2 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.1 (GNU/Linux) iD8DBQBFpD7Yy7E6i0LKo6YRAtWVAJ9cRXrSsQj0/Mo8yoj+ECI+sXXqyQCeJLwB yNUu3cFWu+9n5m0gbetSPNQ= =JbS2 -----END PGP SIGNATURE----- --nextPart1274953.k46VIqdXj2-- --===============0316779210== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============0316779210==--