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] XEN 3.0.1 vsprintf.c - strange macro expansion

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] XEN 3.0.1 vsprintf.c - strange macro expansion
From: Armand Puccetti <apuccett@xxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 23 May 2006 19:31:08 +0200
Delivery-date: Tue, 23 May 2006 10:31:06 -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>
Reply-to: armand.puccetti@xxxxxx
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 1.5.0.2 (Windows/20060308)
When preprocessing the file vsprintf.c, macro 'va_arg' gets expanded into '__builtin_va_arg', which is not XEN code.

For instance, at line 317 of that file,

   field_width = va_arg(args,int);

becomes

   field_width = __builtin_va_arg(args,int);

using the preprocessing command below.

cpp -C -E -nostdinc -iwithprefix include -I.../xen-3.0.1/xen/include -I.../xen-3.0.1/xen/include/asm-x86/mach-generic -I.../xen-3.0.1/xen/include/asm-x86/mach-default -DNDEBUG -D__i386__ vsprintf.c

The def inition of macro va_arg is located in file acenv.h:298, but has little to do with this result.
Settings: Compiler: gcc 4.0.2, OS: Ubuntu Linux kernel 2.6.12.10

What might be the reason of this behavior? A bug in gcc?





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

<Prev in Thread] Current Thread [Next in Thread>