aboutsummaryrefslogtreecommitdiff
path: root/gcc/ifcvt.c
diff options
context:
space:
mode:
authorBernd Schmidt <bernds@codesourcery.com>2011-04-01 17:40:27 +0000
committerBernd Schmidt <bernds@gcc.gnu.org>2011-04-01 17:40:27 +0000
commitc5dd277d0170878d41370afa32b10a56da8b4af6 (patch)
tree470417dd6bd6addf2579deae3622a95381f34f10 /gcc/ifcvt.c
parent722279e41f7d76fc4b3ea8cca0d542c3d5779db2 (diff)
downloadgcc-c5dd277d0170878d41370afa32b10a56da8b4af6.zip
gcc-c5dd277d0170878d41370afa32b10a56da8b4af6.tar.gz
gcc-c5dd277d0170878d41370afa32b10a56da8b4af6.tar.bz2
ifcvt.c (cond_exec_process_insns): Disallow converting a block that contains the prologue.
* ifcvt.c (cond_exec_process_insns): Disallow converting a block that contains the prologue. * gcc.c-torture/compile/20110401-1.c: New test. From-SVN: r171840
Diffstat (limited to 'gcc/ifcvt.c')
-rw-r--r--gcc/ifcvt.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ifcvt.c b/gcc/ifcvt.c
index eee5cc7..3e26799 100644
--- a/gcc/ifcvt.c
+++ b/gcc/ifcvt.c
@@ -1,5 +1,6 @@
/* If-conversion support.
- Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2010
+ Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2010,
+ 2011
Free Software Foundation, Inc.
This file is part of GCC.
@@ -304,6 +305,10 @@ cond_exec_process_insns (ce_if_block_t *ce_info ATTRIBUTE_UNUSED,
for (insn = start; ; insn = NEXT_INSN (insn))
{
+ /* dwarf2out can't cope with conditional prologues. */
+ if (NOTE_P (insn) && NOTE_KIND (insn) == NOTE_INSN_PROLOGUE_END)
+ return FALSE;
+
if (NOTE_P (insn) || DEBUG_INSN_P (insn))
goto insn_done;