This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]