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: [tree-ssa] new -Wuninitialized warning


On Sat, 2003-06-07 at 12:40, Jason Merrill wrote:
> After I apply this patch to cp/pt.c, bootstrap fails with a warning about
> expr_type possibly being used uninitialized.  This turns out to be because
> DCE is discarding the initial initialization of expr_type.  This isn't
> actually a bug, since ssa->normal seems to be properly inserting
> initializations along all paths to uses, but it seems that the RTL flow
> graph isn't clever enough to realize that.
> 
If the initialization is dead, there can't possibly be uses of that SSA
name of 'expr_type' further down.  Those uses of the initial assignment
to 'expr_type' should've been copy propagated into 'foo', right?

I guess I'm missing something.  I'll apply the patch and see.


Diego.


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