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] the address of 'symbols_addresses' will always evalu

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] the address of 'symbols_addresses' will always evaluate as 'true'
From: "S.Çağlar Onur" <caglar@xxxxxxxxxxxxx>
Date: Wed, 10 Jan 2007 03:18:13 +0200
Delivery-date: Tue, 09 Jan 2007 17:18:42 -0800
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>
Organization: TÜBİTAK / UEKAE
Reply-to: caglar@xxxxxxxxxxxxx
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: KMail/1.9.5
Hi;

Attached patch adds "-Wno-always-true" CFLAGS into xen/arch/powerpc/Rules.mk 
and xen/arch/x86/Rules.mk, else compiling xen with latest gcc-4.2.0 snapshot 
fails, patch is against current xen-3.0.4-testing repo;

make[3]: Entering directory 
`/var/pisi/xen-3.0.4.1-3/work/xen-3.0.4-testing.hg/xen/common'
gcc -O2 -fomit-frame-pointer -m32 -march=i686 -DNDEBUG -std=gnu99 -Wall 
-Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement -nostdinc 
-fno-builtin -fno-common -fno-strict-aliasing -iwithprefix 
include -Werror -Wno-pointer-arith -pipe 
-I/var/pisi/xen-3.0.4.1-3/work/xen-3.0.4-testing.hg/xen/include 
-I/var/pisi/xen-3.0.4.1-3/work/xen-3.0.4-testing.hg/xen/include/asm-x86/mach-generic
 
-I/var/pisi/xen-3.0.4.1-3/work/xen-3.0.4-testing.hg/xen/include/asm-x86/mach-default
 -msoft-float -fno-stack-protector -g -D__XEN__ -c 
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 evaluate 
as 'true'
make[3]: *** [symbols.o] Error 1
make[3]: Leaving directory 
`/var/pisi/xen-3.0.4.1-3/work/xen-3.0.4-testing.hg/xen/common'
make[2]: *** 
[/var/pisi/xen-3.0.4.1-3/work/xen-3.0.4-testing.hg/xen/common/built_in.o] 
Error 2
make[2]: Leaving directory 
`/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] Error 
2
make[1]: Leaving directory 
`/var/pisi/xen-3.0.4.1-3/work/xen-3.0.4-testing.hg/xen'
make: *** [build] Error 2

Cheers
-- 
S.Çağlar Onur <caglar@xxxxxxxxxxxxx>
http://cekirdek.pardus.org.tr/~caglar/

Linux is like living in a teepee. No Windows, no Gates and an Apache in house!

Attachment: no_always_true.patch
Description: Text Data

Attachment: pgpsWLo4A7JQq.pgp
Description: PGP signature

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>