aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Stallman <rms@gnu.org>1992-10-26 05:28:39 +0000
committerRichard Stallman <rms@gnu.org>1992-10-26 05:28:39 +0000
commitc2d7c918c7e1e6af272f664c26c8ac1a7e785154 (patch)
treea552e3b2dc1f85c3fe6323acfee93cf347fd74c2 /gcc
parent1709c75483cbeced3b520f557d921c561da2a6d7 (diff)
downloadgcc-c2d7c918c7e1e6af272f664c26c8ac1a7e785154.zip
gcc-c2d7c918c7e1e6af272f664c26c8ac1a7e785154.tar.gz
gcc-c2d7c918c7e1e6af272f664c26c8ac1a7e785154.tar.bz2
(mark_jump_label): Copy LABEL_REF_NONLOCAL_P
from LABEL_REF into REG_LABEL note. From-SVN: r2605
Diffstat (limited to 'gcc')
-rw-r--r--gcc/jump.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/gcc/jump.c b/gcc/jump.c
index 3d66fcf..63f5313 100644
--- a/gcc/jump.c
+++ b/gcc/jump.c
@@ -2989,8 +2989,13 @@ mark_jump_label (x, insn, cross_jump)
|| ! (GET_CODE (next) == JUMP_INSN
&& (GET_CODE (PATTERN (next)) == ADDR_VEC
|| GET_CODE (PATTERN (next)) == ADDR_DIFF_VEC)))
- REG_NOTES (insn) = gen_rtx (EXPR_LIST, REG_LABEL, label,
- REG_NOTES (insn));
+ {
+ REG_NOTES (insn) = gen_rtx (EXPR_LIST, REG_LABEL, label,
+ REG_NOTES (insn));
+ /* Record in the note whether label is nonlocal. */
+ LABEL_REF_NONLOCAL_P (REG_NOTES (insn))
+ = LABEL_REF_NONLOCAL_P (x);
+ }
}
}
return;