From 97e155b14a54234bd4d9a872bfcdb513a78e3832 Mon Sep 17 00:00:00 2001 From: jakub Date: Thu, 30 Jan 2014 21:48:08 +0000 Subject: PR target/59923 * ifcvt.c (cond_exec_process_insns): Don't conditionalize frame related instructions. * gcc.target/arm/pr59923.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@207324 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ifcvt.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gcc/ifcvt.c') diff --git a/gcc/ifcvt.c b/gcc/ifcvt.c index 51293651e9c..e4b3e8dade9 100644 --- a/gcc/ifcvt.c +++ b/gcc/ifcvt.c @@ -338,6 +338,10 @@ cond_exec_process_insns (ce_if_block *ce_info ATTRIBUTE_UNUSED, gcc_assert (NONJUMP_INSN_P (insn) || CALL_P (insn)); + /* dwarf2out can't coope with conditional unwind info. */ + if (RTX_FRAME_RELATED_P (insn)) + return FALSE; + /* Remove USE insns that get in the way. */ if (reload_completed && GET_CODE (PATTERN (insn)) == USE) { -- cgit v1.2.1