https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106238
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |missed-optimization
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
getLocalCopy (&local_copy);
...
pretmp_67 = MEM[(struct _Rb_tree_node_base * &)&static_copy + 16];
....
pretmp_67->_M_parent = &MEM[(struct _Rb_tree_header *)&local_copy +
8B]._M_header;
_28 = MEM[(struct _Rb_tree_header &)&static_copy + 8]._M_node_count;
MEM[(struct _Rb_tree_header *)&local_copy + 8B]._M_node_count = _28;
MEM[(struct _Rb_tree_header *)&static_copy + 8B]._M_header._M_parent = 0B;
Hmm, the warning for the IR seems correct, I cannot comment any more because
GCC would need to know the knowledge of getLocalCopy really as far as I can
tell.