This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/34385] [4.3 Regression] new miscompilation after PR34148 fix
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Dec 2007 23:57:44 -0000
- Subject: [Bug tree-optimization/34385] [4.3 Regression] new miscompilation after PR34148 fix
- References: <bug-34385-12049@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #6 from rguenth at gcc dot gnu dot org 2007-12-07 23:57 -------
First we hit
/* XXX: don't get into structures for now. It brings much
complication
and little benefit. */
if (struct_class_union_p (ptr_type) || struct_class_union_p
(alias_type))
return false;
and then if you fix that
/* If they are not SSA names, but contain SSA names, drop the warning
because it cannot be displayed well.
Also drop it if they both contain artificials.
XXX: this is a hack, must figure out a better way to display them. */
if (filter_artificials)
if ((find_first_artificial_name (get_ssa_base (object1))
&& find_first_artificial_name (get_ssa_base (object2)))
|| (TREE_CODE (object1) != SSA_NAME
&& contains_node_type_p (object1, SSA_NAME))
|| (TREE_CODE (object2) != SSA_NAME
&& contains_node_type_p (object2, SSA_NAME)))
return false;
.....
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34385