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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
                 CC|                            |jakub at gcc dot gnu.org
           Assignee|unassigned at gcc dot gnu.org      |jakub at gcc dot gnu.org

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

Untested fix.

The bug is that convert_memory_address (Pmode, ...) is called twice, which is
not possible for VOIDmode constants.
As optabs.c (indirectly from emit_indirect_jump) already calls it, because the
argument is built with create_address_operand and the EXPAND_ADDRESS case
in maybe_legitimize_operand calls convert_memory_address (Pmode, ...), the
other
convert_memory_address call is only harmful.

I don't have easy access to any POINTERS_EXTEND_UNSIGNED target though, so
can't test it easily.

Reply via email to