diff options
author | Jakub Jelinek <jakub@redhat.com> | 2005-03-22 14:29:29 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2005-03-22 14:29:29 +0100 |
commit | b2a6a2fb642ff3deaf4ac102ebca75e96ed9d1e9 (patch) | |
tree | 27cfa1f3413445ef3163b5d474ce0e9ab308b803 /gcc/cfglayout.c | |
parent | 37048601f7fed81a6cef3dd46dac2280b855b53c (diff) | |
download | gcc-b2a6a2fb642ff3deaf4ac102ebca75e96ed9d1e9.zip gcc-b2a6a2fb642ff3deaf4ac102ebca75e96ed9d1e9.tar.gz gcc-b2a6a2fb642ff3deaf4ac102ebca75e96ed9d1e9.tar.bz2 |
re PR target/20561 (Error compiling jdtcore.jar on powerpc)
PR target/20561
* cfglayout.c (reemit_insn_block_notes): Don't put block notes in
between jump table and its label.
* final.c (shorten_branches): Handle notes in between ADDR_VEC
resp. ADDR_DIFF_VEC and the label preceeding it.
(final_scan_insn): Likewise. Ensure ADDR_VEC resp. ADDR_DIFF_VEC
is emitted in the right section.
* gcc.dg/20050321-2.c: New test.
From-SVN: r96867
Diffstat (limited to 'gcc/cfglayout.c')
-rw-r--r-- | gcc/cfglayout.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/cfglayout.c b/gcc/cfglayout.c index 981bcd9..655c9a1 100644 --- a/gcc/cfglayout.c +++ b/gcc/cfglayout.c @@ -523,6 +523,12 @@ reemit_insn_block_notes (void) { tree this_block; + /* Avoid putting scope notes between jump table and its label. */ + if (JUMP_P (insn) + && (GET_CODE (PATTERN (insn)) == ADDR_VEC + || GET_CODE (PATTERN (insn)) == ADDR_DIFF_VEC)) + continue; + this_block = insn_scope (insn); /* For sequences compute scope resulting from merging all scopes of instructions nested inside. */ |