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: Uros Bizjak <ubizjak at gmail dot com>
- To: GCC Development <gcc at gcc dot gnu dot org>
- Cc: Steven Bosscher <stevenb dot gcc at gmail dot com>, Richard Henderson <rth at redhat dot com>
- Date: Wed, 4 Jul 2012 16:25:43 +0200
- Subject: Re: r188786 introduces a may-be-used-uninitialized warnings in expmed.c
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.