aboutsummaryrefslogtreecommitdiff
path: root/gcc/bb-reorder.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2011-09-12 19:55:36 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2011-09-12 19:55:36 +0200
commitb58d339116b877e735e57979143f4531d6a110d9 (patch)
tree84e348fd43f73f9669e6bc1af8e4795e47ee65f3 /gcc/bb-reorder.c
parent7d8102762c1b37bd1b0b59795a67ffc0da6631a5 (diff)
downloadgcc-b58d339116b877e735e57979143f4531d6a110d9.zip
gcc-b58d339116b877e735e57979143f4531d6a110d9.tar.gz
gcc-b58d339116b877e735e57979143f4531d6a110d9.tar.bz2
re PR rtl-optimization/50212 (ICE: in ei_container, at basic-block.h:610 with -fnon-call-exceptions -freorder-blocks-and-partition)
PR rtl-optimization/50212 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges): Skip also lps with NULL landing_pad or non-LABEL_P landing_pad. * g++.dg/other/pr50212.C: New test. From-SVN: r178785
Diffstat (limited to 'gcc/bb-reorder.c')
-rw-r--r--gcc/bb-reorder.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/bb-reorder.c b/gcc/bb-reorder.c
index 874ece2..3ac7fbd 100644
--- a/gcc/bb-reorder.c
+++ b/gcc/bb-reorder.c
@@ -1,5 +1,5 @@
/* Basic block reordering routines for the GNU compiler.
- Copyright (C) 2000, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2010
+ Copyright (C) 2000, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2010, 2011
Free Software Foundation, Inc.
This file is part of GCC.
@@ -1315,7 +1315,9 @@ find_rarely_executed_basic_blocks_and_crossing_edges (void)
{
bool all_same, all_diff;
- if (lp == NULL)
+ if (lp == NULL
+ || lp->landing_pad == NULL_RTX
+ || !LABEL_P (lp->landing_pad))
continue;
all_same = all_diff = true;