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

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 45965
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45965&action=edit
gcc9-pr89709.patch

Untested fix.  The above mentioned revision added STRIP_ANY_LOCATION_WRAPPERS
to the beginning of operand_equal_p for both arg0 and arg1, but didn't adjust
inchash::add_expr that needs to match that.  When not OEP_ADDRESS_OF, we'd
strip it anyway through STRIP_NOPS, but not otherwise.

I've also moved the STRIP_ANY_LOCATION_WRAPPERS later in operand_equal_p, so
that the hash checking would check this more often.

Reply via email to