From: Richard Guenther Date: Thu, 4 Nov 2010 15:17:24 +0000 (+0000) Subject: re PR tree-optimization/46068 (ICE: in consider_split, at ipa-split.c:313 with asm... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9f2fbc99445e45c894c6170bef9d7e10ba8cc2d9;p=gcc.git re PR tree-optimization/46068 (ICE: in consider_split, at ipa-split.c:313 with asm goto and __builtin_unreachable ()) 2010-11-04 Richard Guenther PR tree-optimization/46068 * ipa-split.c (consider_split): Remove gcc_unreachable. * gcc.dg/torture/pr46068.c: New testcase. From-SVN: r166315 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 996b6cb1d07..206f860fe04 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2010-11-04 Richard Guenther + + PR tree-optimization/46068 + * ipa-split.c (consider_split): Remove gcc_unreachable. + 2010-11-04 Richard Guenther * tree-nested.c (build_addr): Use build_fold_addr_expr. diff --git a/gcc/ipa-split.c b/gcc/ipa-split.c index 23882b2f8a6..e46d270ec7e 100644 --- a/gcc/ipa-split.c +++ b/gcc/ipa-split.c @@ -310,7 +310,6 @@ consider_split (struct split_point *current, bitmap non_ssa_vars, { if (dump_file && (dump_flags & TDF_DETAILS)) fprintf (dump_file, " Refused: header empty\n"); - gcc_unreachable (); return; } diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index c5ce28be1e3..e2179c7050d 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2010-11-04 Richard Guenther + + PR tree-optimization/46068 + * gcc.dg/torture/pr46068.c: New testcase. + 2010-11-04 Richard Guenther PR tree-optimization/45991 diff --git a/gcc/testsuite/gcc.dg/torture/pr46068.c b/gcc/testsuite/gcc.dg/torture/pr46068.c new file mode 100644 index 00000000000..120119ce829 --- /dev/null +++ b/gcc/testsuite/gcc.dg/torture/pr46068.c @@ -0,0 +1,16 @@ +/* { dg-do compile } */ + +void +foo () +{ + asm goto (""::::l1); + __builtin_unreachable (); +l1:; +} + +void +bar () +{ + foo (); + foo (); +}