[Bug tree-optimization/47679] [4.6 Regression] Strange uninitialized warning after SRA
rguenth at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Feb 10 16:19:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47679
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |diagnostic
Version|unknown |4.6.0
Target Milestone|--- |4.6.0
--- Comment #3 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-02-10 16:19:05 UTC ---
As for the message for diagnostics (if we know that ...) we can generalize
it to warning: 'aNewItem' may be used uninitialized. That's less precise
but does not contain funny pointer arith. It would of course be bad to
do that for the generic tree dumpers.
But anyway, what's so strange about ‘*((void*)& aNewItem +8)’? It was
invented exactly to avoid 'MEM[&aNewItem+8]'.
More information about the Gcc-bugs
mailing list