[Bug d/96989] SSA_NAMEs in Wuninitialized warning messages after r11-959
ibuclaw at gdcproject dot org
gcc-bugzilla@gcc.gnu.org
Thu Sep 17 10:23:03 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96989
--- Comment #4 from Iain Buclaw <ibuclaw at gdcproject dot org> ---
Created attachment 49233
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49233&action=edit
d tree printer
Very minimal tree printing support just to cover SSA_NAME and MEM_REF nodes.
I'm not entirely convinced by having to resort to this:
else if (SSA_NAME_DEF_STMT (expr)
&& is_gimple_assign (SSA_NAME_DEF_STMT (expr)))
d_print_expression (pp, gimple_assign_rhs1 (SSA_NAME_DEF_STMT (expr)));
But it's the only place I can see to coax out the original variable from an
anonymous SSA_NAME. Trying the same example with gcc/g++, and the warning
emits *(<unknown>) - so the problem is at least shared between all front-ends.
More information about the Gcc-bugs
mailing list