This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] TRACING: Fix a copmile warning
- From: Steven Rostedt <rostedt at goodmis dot org>
- To: Arnaud Lacombe <lacombar at gmail dot com>
- Cc: Ian Lance Taylor <iant at google dot com>, gcc-help at gcc dot gnu dot org, stufever at gmail dot com, linux-kernel at vger dot kernel dot org, Wang Shaoyan <wangshaoyan dot pt at taobao dot com>, Frederic Weisbecker <fweisbec at gmail dot com>, Ingo Molnar <mingo at redhat dot com>
- Date: Mon, 25 Jul 2011 21:12:46 -0400
- Subject: Re: [PATCH] TRACING: Fix a copmile warning
- References: <1310982010-13849-1-git-send-email-wangshaoyan.pt@taobao.com> <1311618747.3526.32.camel@gandalf.stny.rr.com> <CACqU3MVJ9Oj4pXH9O_2jnqDVBqKA+AgoWHwP-n2HGD4LU0pMHQ@mail.gmail.com> <1311625197.3526.35.camel@gandalf.stny.rr.com> <CACqU3MUKU_0FbOQT+TKLnnaoFVS_QOgzzx-tvunQy94v-eykTw@mail.gmail.com> <CACqU3MXO_oR+8Ac2Z7wSji0sUeu-2FwskmxZxtY9NV+XpJXuwA@mail.gmail.com> <mcrfwltoov5.fsf@coign.corp.google.com> <CACqU3MXuMDz46rM9p_7iBeK1G0T-DH=52KHj9ygc42j=qQmP4g@mail.gmail.com>
On Mon, 2011-07-25 at 21:08 -0400, Arnaud Lacombe wrote:
> Hi,
>
> but the code generated seem to test %esi (`b', potentially
> uninitialized) before %ebx (`a'). Am I still missing something ?
But it tests 'a' again afterward. If 'a' is 0, it doesn't matter what
'b' was. So the uninitialized test is a wash. No harm done, except for
some wasted CPU cycles.
-- Steve