This is the mail archive of the gcc-patches@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: [PATCH, tree-ssa] Avoid -Wuninitialized warning in try_unroll_loop_completely()


On 04/13/2013 07:17 PM, Chung-Ju Wu wrote:
Hi,

I noticed there is an uninitialized variable warning
when compiling tree-ssa-loop-ivcanon.c file.

Attached patch is a slight modification to avoid the warning
and a plaintext ChangeLog is as below.

Is it OK for trunk?


2013-04-14  Chung-Ju Wu  <jasonwucj@gmail.com>

         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Avoid
         -Wuninitialized warning.
If this is a false positive (and I think it is from a very quick scan of the code), can you mark the initialization as such?

/* Avoid false positive -Wuninitialized warning.  */

Ideally this will become standard practice.

jeff


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