This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug middle-end/63974] [5 Regression] gcc.c-torture/compile/991213-3.c ICEs with -mabi=ilp32


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]