summaryrefslogtreecommitdiffstats
path: root/gcc/dwarf2cfi.c
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2011-08-21 18:49:49 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2011-08-21 18:49:49 +0000
commit7e66a69e4c53db6e8c36e50b922cd104b35d7b2f (patch)
tree4e15d94c44bd213a7d4ff4743130d7878d558fb3 /gcc/dwarf2cfi.c
parent895d206312dea4e0ab292d5f08dd6d9c9b617bd6 (diff)
downloadppe42-gcc-7e66a69e4c53db6e8c36e50b922cd104b35d7b2f.tar.gz
ppe42-gcc-7e66a69e4c53db6e8c36e50b922cd104b35d7b2f.zip
* rtl.h (INSN_ANNULLED_BRANCH_P): Only allow JUMP_INSN.
* dwarf2cfi.c (scan_trace): Test JUMP_P before INSN_ANNULLED_BRANCH_P. * resource.c (next_insn_no_annul): Likewise. (mark_set_resources): Likewise. * reorg.c (delete_from_delay_slot): Likewise. (dbr_schedule, redundant_insn, try_merge_delay_insns): Likewise. (get_branch_condition): Test pc_rtx and LABEL_REF before dereferencing. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@177944 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/dwarf2cfi.c')
-rw-r--r--gcc/dwarf2cfi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/dwarf2cfi.c b/gcc/dwarf2cfi.c
index 80cce3209fc..30e95017014 100644
--- a/gcc/dwarf2cfi.c
+++ b/gcc/dwarf2cfi.c
@@ -2427,7 +2427,7 @@ scan_trace (dw_trace_info *trace)
notice_eh_throw (control);
dwarf2out_flush_queued_reg_saves ();
- if (INSN_ANNULLED_BRANCH_P (control))
+ if (JUMP_P (control) && INSN_ANNULLED_BRANCH_P (control))
{
/* ??? Hopefully multiple delay slots are not annulled. */
gcc_assert (n == 2);
OpenPOWER on IntegriCloud