From 09246242ec08620b1901902459bd26f928a7ad9b Mon Sep 17 00:00:00 2001 From: kenner Date: Fri, 15 Sep 1995 22:24:09 +0000 Subject: (insert): Set cse_jumps_altered when inserting a LABEL_REF. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@10366 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/cse.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/gcc/cse.c b/gcc/cse.c index cba56febbd2..863a338e7fe 100644 --- a/gcc/cse.c +++ b/gcc/cse.c @@ -1287,6 +1287,14 @@ insert (x, classp, hash, mode) SET_HARD_REG_BIT (hard_regs_in_table, i); } + /* If X is a label, show we are altering jumps. We don't KNOW + we are, but we might be putting it into a insn which would + then need a new REG_LABEL note. Be conservative and say + we alter jumps here; we usually will in this case anyway. */ + if (GET_CODE (x) == LABEL_REF + || (GET_CODE (x) == CONST && GET_CODE (XEXP (x, 0)) == PLUS + && GET_CODE (XEXP (XEXP (x, 0), 0)) == LABEL_REF)) + cse_jumps_altered = 1; /* Put an element for X into the right hash bucket. */ -- cgit v1.2.3