summaryrefslogtreecommitdiff
path: root/gcc/global.c
diff options
context:
space:
mode:
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>2001-06-07 20:17:28 +0000
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>2001-06-07 20:17:28 +0000
commit954b85b08c86e362d44b2207bd21369ffe5c9470 (patch)
tree22ad5015296068755fad1f65e11de68239bb7465 /gcc/global.c
parent6bca92cffe07aee61f96bb9d907e06a89f289cee (diff)
downloadgcc-954b85b08c86e362d44b2207bd21369ffe5c9470.tar.gz
* global.c (build_insn_chain): Allow ADDR_VEC or ADDR_DIF_VEC after
end of last block if last real insn is a JUMP_INSN. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@42977 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/global.c')
-rw-r--r--gcc/global.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/gcc/global.c b/gcc/global.c
index 2f757bd9ade..4460836c7ed 100644
--- a/gcc/global.c
+++ b/gcc/global.c
@@ -1851,11 +1851,17 @@ build_insn_chain (first)
no real insns are after the end of the last basic block.
We may want to reorganize the loop somewhat since this test should
- always be the right exit test. */
+ always be the right exit test. Allow an ADDR_VEC or ADDR_DIF_VEC if
+ the previous real insn is a JUMP_INSN. */
if (b == n_basic_blocks)
{
for (first = NEXT_INSN (first) ; first; first = NEXT_INSN (first))
- if (INSN_P (first) && GET_CODE (PATTERN (first)) != USE)
+ if (INSN_P (first)
+ && GET_CODE (PATTERN (first)) != USE
+ && ! ((GET_CODE (PATTERN (first)) == ADDR_VEC
+ || GET_CODE (PATTERN (first)) == ADDR_DIFF_VEC)
+ && prev_real_insn (first) != 0
+ && GET_CODE (prev_real_insn (first)) == JUMP_INSN))
abort ();
break;
}