r188786 introduces a may-be-used-uninitialized warnings in expmed.c
Uros Bizjak
ubizjak@gmail.com
Wed Jul 4 14:25:00 GMT 2012
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
Uros.
More information about the Gcc
mailing list