This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: r188786 introduces a may-be-used-uninitialized warnings in expmed.c
- From: Steven Bosscher <stevenb dot gcc at gmail dot com>
- To: Uros Bizjak <ubizjak at gmail dot com>
- Cc: GCC Development <gcc at gcc dot gnu dot org>, Richard Henderson <rth at redhat dot com>
- Date: Wed, 4 Jul 2012 17:17:35 +0200
- Subject: Re: r188786 introduces a may-be-used-uninitialized warnings in expmed.c
- References: <CAFULd4YfJFASpZeJfW3uon6EV805BXYLfxsJ5d-gRE-ydLz3cQ@mail.gmail.com>
On Wed, Jul 4, 2012 at 4:25 PM, Uros Bizjak <ubizjak@gmail.com> wrote:
> Hello!
>
>> Since r188786, expmed.c has this code:
>
>> This results in warnings for expmed.c during bootstrap on
>> powerpc64-unknown-linux-gnu:
>>
>> ../../trunk/gcc/expmed.c: In function ‘rtx_def* expand_mult(machine_mode, rtx,
>> rtx, rtx, int)’:
>> ../../trunk/gcc/expmed.c:3215:7: warning: ‘is_neg’ may be used uninitialized
>> in this function [-Wmaybe-uninitialized]
>> if (is_neg && mode_bitsize > HOST_BITS_PER_WIDE_INT)
>> ^
>> ../../trunk/gcc/expmed.c:3236:7: warning: ‘coeff’ may be used uninitialized in
>> this function [-Wmaybe-uninitialized]
>> if (choose_mult_variant (mode, coeff, &algorithm, &variant, max_cost))
>> ^
>>
>> Could you have a look please?
>
> You just need [1].
>
> [1] http://gcc.gnu.org/ml/gcc-patches/2012-07/msg00145.html
Silly me wonders why this warning doesn't cause a bootstrap failure...
Ciao!
Steven