On Wed, Jul 4, 2012 at 5:17 PM, Steven Bosscher <stevenb....@gmail.com> wrote:
> On Wed, Jul 4, 2012 at 4:25 PM, Uros Bizjak <ubiz...@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...

Because of pre-existing warnings and

expmed.o-warn = -Wno-error

expmed.c contains out-of-bounds array accesses.

Richard.

> Ciao!
> Steven

Reply via email to