From f671762a68bd712623a14d56e2c873798f1b8101 Mon Sep 17 00:00:00 2001 From: Hans-Peter Nilsson Date: Fri, 3 Sep 2004 19:24:41 +0000 Subject: [PATCH] cris.h (ASM_OUTPUT_CASE_END): Use prev_nonnote_insn to get the tablejump-insn before the jump-table label. * config/cris/cris.h (ASM_OUTPUT_CASE_END): Use prev_nonnote_insn to get the tablejump-insn before the jump-table label. From-SVN: r87048 --- gcc/ChangeLog | 5 +++++ gcc/config/cris/cris.h | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1343d164abb..9c4561fa2fa 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2004-09-03 Hans-Peter Nilsson + + * config/cris/cris.h (ASM_OUTPUT_CASE_END): Use prev_nonnote_insn + to get the tablejump-insn before the jump-table label. + 2004-09-03 Ziemowit Laski * c-common.h (objc_is_id, objc_declare_alias, objc_declare_class, diff --git a/gcc/config/cris/cris.h b/gcc/config/cris/cris.h index a308412e7ac..d7da1833ec7 100644 --- a/gcc/config/cris/cris.h +++ b/gcc/config/cris/cris.h @@ -1537,8 +1537,9 @@ call_ ## FUNC (void) \ CODE_LABEL_NUMBER \ (XEXP (XEXP (XEXP \ (XVECEXP \ - (PATTERN (PREV_INSN (PREV_INSN \ - (TABLE))), \ + (PATTERN \ + (prev_nonnote_insn \ + (PREV_INSN (TABLE))), \ 0, 0), 1), 2), 0)), \ NUM, \ (TARGET_PDEBUG ? "; default" : "")); \ -- 2.30.2