https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90676

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org,
                   |                            |rguenth at gcc dot gnu.org

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Maybe the way to go in this case, if the alias type doesn't match the access
size and size can't be determined say from SSA_NAME on the rhs might be to
write an explicit cast on the rhs.

And, it might be useful to have a -fdump-tree-*- flag that would annotate all
loads/stores in the IL with bit offsets/sizes of the access, I remember a few
months ago I was trying to debug some bug that involved a lot of C++ std::pair
constructions and extractions, most of the temporaries had pair type (so
impossible to find out which exact one it is, if it is say
std::pair<std::pair<int>, std::pair<long>> or whatever other pair of pairs or
what else), some MEMs used visible offsets, other accesses used COMPONENT_REFs
with artificial fields etc., so without actually dumping the bitsize/bitoffset
the dump was impossible to understand.

Reply via email to