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

--- Comment #2 from Gaius Mulley <gaius at gcc dot gnu.org> ---
Created attachment 61320
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61320&action=edit
Proposed fix which skips the aliased type and does not remove the same quad
twice

The ICE occurred because of a bug in M2GenGCC.mod:FoldBecomes which attempted
to remove the same quadruple twice.  Thereafter cc1gm2 generated an erroneous
error type error as PCSymBuild did not skip an aliased set type.  The type of
the const was set incorrectly (as a set type) rather than the type of the set
element.

The unpopulated ChangeLog entry follows:

gcc/m2/ChangeLog:

        * gm2-compiler/M2GenGCC.mod:
        * gm2-compiler/PCSymBuild.mod:
        * gm2-compiler/SymbolTable.mod:

gcc/testsuite/ChangeLog:

        * gm2/pim/pass/highbit.mod: New test.
        * gm2/pim/pass/highbit2.mod: New test.

Reply via email to