[Bug rtl-optimization/87720] [9 Regression] [MIPS] ICE: gcc.c-torture/execute/builtins/lib/chk.c:33:1: in int_mode_for_mode, at stor-layout.c:403 after r265398

segher at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Oct 24 22:35:00 GMT 2018


--- Comment #5 from Segher Boessenkool <segher at gcc dot gnu.org> ---
Author: segher
Date: Wed Oct 24 22:34:40 2018
New Revision: 265474

URL: https://gcc.gnu.org/viewcvs?rev=265474&root=gcc&view=rev
combine: Don't do make_more_copies for dest PC (PR87720)

Jumps are written in RTL as moves to PC.  But the latter has no mode,
so we shouldn't try to use it.  Since the optimization this routine
does does not really help for jumps at all, let's just skip it.

        PR rtl-optimization/87720
        * combine.c (make_more_copies): Skip if the dest is pc_rtx.


More information about the Gcc-bugs mailing list