* XEN 3.0.1 vsprintf.c - strange macro expansion
@ 2006-05-23 17:31 Armand Puccetti
2006-05-23 17:40 ` Anthony Liguori
0 siblings, 1 reply; 2+ messages in thread
From: Armand Puccetti @ 2006-05-23 17:31 UTC (permalink / raw)
To: xen-devel
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?
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: XEN 3.0.1 vsprintf.c - strange macro expansion
2006-05-23 17:31 XEN 3.0.1 vsprintf.c - strange macro expansion Armand Puccetti
@ 2006-05-23 17:40 ` Anthony Liguori
0 siblings, 0 replies; 2+ messages in thread
From: Anthony Liguori @ 2006-05-23 17:40 UTC (permalink / raw)
To: armand.puccetti; +Cc: xen-devel
Armand Puccetti wrote:
> 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
I don't know what acenv.h but AFAIK we aren't using it's va_arg()
definition. We include stdarg.h and I assume we build with libgcc.
Regards,
Anthony Liguori
> What might be the reason of this behavior? A bug in gcc?
>
>
>
>
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-05-23 17:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-23 17:31 XEN 3.0.1 vsprintf.c - strange macro expansion Armand Puccetti
2006-05-23 17:40 ` Anthony Liguori
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.