This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/78642] [7 regression] ICE: invalid rtl sharing found in the insn on sparc
- From: "ebotcazou at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 05 Dec 2016 17:14:56 +0000
- Subject: [Bug target/78642] [7 regression] ICE: invalid rtl sharing found in the insn on sparc
- Auto-submitted: auto-generated
- References: <bug-78642-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78642
--- Comment #10 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
It's copy_insn_1:
case CLOBBER:
/* Share clobbers of hard registers (like cc0), but do not share pseudo
reg
clobbers or clobbers of hard registers that originated as pseudos.
This is needed to allow safe register renaming. */
if (REG_P (XEXP (orig, 0)) && REGNO (XEXP (orig, 0)) <
FIRST_PSEUDO_REGISTER
&& ORIGINAL_REGNO (XEXP (orig, 0)) == REGNO (XEXP (orig, 0)))
return orig;