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: Fix PR39799: missing uninitialized vars warning


On 30 June 2010 11:15, Bernd Schmidt <bernds@codesourcery.com> wrote:
> This is a problem that was introduced with the fix for PR31081. ?Looking
> at that PR's history, it seems the inliner has problems with overlapping
> lifetimes for things where SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
>
> The solution was to zero-initialize all uninitialized variables when
> inlining. ?This disables warnings for them, which is the regression in
> PR39799.
>
> I've bootstrapped and regression tested the patch below on i686-linux.
> This limits the zero-initialization to variables with
> SSA_NAME_OCCURS_IN_ABNORMAL_PHI. ?I doubt register pressure is an issue
> since we have another rtl-based init-regs pass. ?Ok?

+/* { dg-message "note: '\[^\n'\]*' was declared here" "note:
expected" { target *-*-* } 0 } */

Why not put this in the proper line?

Does this work at -O{0,1,3,fast,s}? If so, why not put it in torture
tests? Otherwise, I would still suggest to put it in c-c++-common.

Manuel.


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