From: Anthony Liguori <aliguori@us.ibm.com>
To: armand.puccetti@cea.fr
Cc: xen-devel@lists.xensource.com
Subject: Re: XEN 3.0.1 vsprintf.c - strange macro expansion
Date: Tue, 23 May 2006 12:40:32 -0500 [thread overview]
Message-ID: <44734910.4000201@us.ibm.com> (raw)
In-Reply-To: <447346DC.7090806@ellebore.saclay.cea.fr>
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
prev parent reply other threads:[~2006-05-23 17:40 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-23 17:31 XEN 3.0.1 vsprintf.c - strange macro expansion Armand Puccetti
2006-05-23 17:40 ` Anthony Liguori [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=44734910.4000201@us.ibm.com \
--to=aliguori@us.ibm.com \
--cc=armand.puccetti@cea.fr \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.