[tree-ssa] new -Wuninitialized warning

Diego Novillo dnovillo@redhat.com
Sat Jun 7 17:52:00 GMT 2003


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.



More information about the Gcc mailing list