[tree-ssa] new -Wuninitialized warning

Jason Merrill jason@redhat.com
Sat Jun 7 16:44:00 GMT 2003


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.

I ran into this by way of a patch I've been working on to evaluate
expressions into formal temps before assigning them to user vars, so as to
expose more expressions to redundancy elimination.

Thoughts?
Jason

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/x-patch
Size: 582 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20030607/bbb675cd/attachment.bin>


More information about the Gcc mailing list