From: spop Date: Wed, 2 Jun 2010 16:39:26 +0000 (+0000) Subject: Fix PR44363: don't abort when the ifcvt analysis fails to recognize a Gimple stmt. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5f7a9884300c48797d4b913ac94f846e69017d59;p=thirdparty%2Fgcc.git Fix PR44363: don't abort when the ifcvt analysis fails to recognize a Gimple stmt. 2010-06-02 Sebastian Pop PR middle-end/44363 * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable, return false instead. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@160163 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f47194c136d9..d64804d359b8 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2010-06-02 Sebastian Pop + + PR middle-end/44363 + * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable, + return false instead. + 2010-06-02 Jan Hubicka PR middle-end/44295 diff --git a/gcc/tree-if-conv.c b/gcc/tree-if-conv.c index f64623dae7d7..f6e8c969dc1f 100644 --- a/gcc/tree-if-conv.c +++ b/gcc/tree-if-conv.c @@ -483,8 +483,8 @@ get_loop_body_in_if_conv_order (const struct loop *loop) | else | S2; - S1 will be predicated with "x", and S2 will be predicated with - "!x". */ + S1 will be predicated with "x", and + S2 will be predicated with "!x". */ static bool predicate_bbs (loop_p loop) @@ -546,12 +546,9 @@ predicate_bbs (loop_p loop) break; } - case GIMPLE_SWITCH: + default: /* Not handled yet in if-conversion. */ return false; - - default: - gcc_unreachable (); } }