From: Kevin Wolf <kwolf@redhat.com>
To: malc <av1474@comtv.ru>
Cc: qemu-devel@nongnu.org, Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Subject: Re: [Qemu-devel] Build broken
Date: Fri, 05 Aug 2011 09:29:40 +0200 [thread overview]
Message-ID: <4E3B9BE4.3020807@redhat.com> (raw)
In-Reply-To: <alpine.LNX.2.00.1108051019170.14809@linmac>
Am 05.08.2011 08:22, schrieb malc:
>
> /home/malc/x/rcs/git/qemuorg/coroutine-ucontext.c: In function 'coroutine_new':
> /home/malc/x/rcs/git/qemuorg/coroutine-ucontext.c:160:16: error: 'arg.i[1]' may be used uninitialized in this function
> /home/malc/x/rcs/git/qemuorg/coroutine-ucontext.c:136:18: note: 'arg.i[1]' was declared here
>
> diff --git a/coroutine-ucontext.c b/coroutine-ucontext.c
> index 41c2379..42dc3e2 100644
> --- a/coroutine-ucontext.c
> +++ b/coroutine-ucontext.c
> @@ -133,7 +133,7 @@ static Coroutine *coroutine_new(void)
> CoroutineUContext *co;
> ucontext_t old_uc, uc;
> jmp_buf old_env;
> - union cc_arg arg;
> + union cc_arg arg = {0};
>
> /* The ucontext functions preserve signal masks which incurs a system call
> * overhead. setjmp()/longjmp() does not preserve signal masks but only
>
> I guess gcc should yell not only here on ppc32 but on any machine where
> pointer size is less than the size of two ints.
Stefan, why does this code even exist again? I think at some point I had
it changed to just use a static variable in order to avoid doing this
kind of tricks with unions.
Interestingly, the buildbot doesn't seem to have failed on i386.
Kevin
next prev parent reply other threads:[~2011-08-05 7:26 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-05 6:22 [Qemu-devel] Build broken malc
2011-08-05 7:29 ` Kevin Wolf [this message]
2011-08-05 8:48 ` Stefan Hajnoczi
2011-08-05 9:09 ` Kevin Wolf
2011-08-05 9:37 ` Stefan Hajnoczi
2011-08-05 8:58 ` Stefan Hajnoczi
2011-08-05 16:49 ` malc
2011-08-06 6:12 ` Stefan Hajnoczi
2011-08-08 8:02 ` Kevin Wolf
2011-08-08 10:40 ` malc
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=4E3B9BE4.3020807@redhat.com \
--to=kwolf@redhat.com \
--cc=av1474@comtv.ru \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@linux.vnet.ibm.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).