From: Armand Puccetti Subject: XEN 3.0.1 vsprintf.c - strange macro expansion Date: Tue, 23 May 2006 19:31:08 +0200 Message-ID: <447346DC.7090806@ellebore.saclay.cea.fr> Reply-To: armand.puccetti@cea.fr Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: 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 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?