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] PR34197 new bogus array overflow warnings


On 11/23/07, Dirk Mueller <dmueller@suse.de> wrote:


>         * reg-stack.c (swap_to_top): Add assert'ed expression to
>         if() to prevent unroll of dead code.

Please don't add this.  Please instead add turn off the unitialization
warning with --disable-checking (or when assert checking is off) or
turn it into warning instead of an error.
The reason for this is because the warning is not really correct as it
is not unitialized, it is just GCC cannot tell if it is or not.

-- Pinski


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