X-Git-Url: http://git.sourceforge.jp/view?p=pf3gnuchains%2Fgcc-fork.git;a=blobdiff_plain;f=gcc%2Ftree-switch-conversion.c;h=20888d2d9dde86f1720ad73d5c922e46b3696693;hp=4fb3e8a6971f7e85ae33c236c77b0b24c33472f0;hb=89c4eaa5a9ecc150533d1ce6b36eff02cfeb913e;hpb=771e289076fb404b3af142ccbc1ce7251ae95ee6 diff --git a/gcc/tree-switch-conversion.c b/gcc/tree-switch-conversion.c index 4fb3e8a6971..20888d2d9dd 100644 --- a/gcc/tree-switch-conversion.c +++ b/gcc/tree-switch-conversion.c @@ -283,7 +283,12 @@ check_process_case (tree cs) return false; } - e = single_succ_edge (label_bb); + if (!single_succ_p (label_bb)) + { + info.reason + = " Bad case - a non-final BB without a single successor\n"; + return false; + } following_bb = single_succ (label_bb); }