From: Ilya Enkovich Date: Tue, 23 Sep 2014 08:26:34 +0000 (+0000) Subject: cfgcleanup.c (try_optimize_cfg): Do not remove label with LABEL_PRESERVE_P flag set. X-Git-Tag: releases/gcc-5.1.0~4487 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6c979aa1bf4cb88c7934cea3453802d5281f7dff;p=thirdparty%2Fgcc.git cfgcleanup.c (try_optimize_cfg): Do not remove label with LABEL_PRESERVE_P flag set. gcc/ * cfgcleanup.c (try_optimize_cfg): Do not remove label with LABEL_PRESERVE_P flag set. From-SVN: r215498 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ca76b1750443..61de16aeff3e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2014-09-23 Ilya Enkovich + + * cfgcleanup.c (try_optimize_cfg): Do not remove label + with LABEL_PRESERVE_P flag set. + 2014-09-23 Alexander Ivchenko Maxim Kuznetsov Anna Tikhonova diff --git a/gcc/cfgcleanup.c b/gcc/cfgcleanup.c index a00816887535..9325ea07708a 100644 --- a/gcc/cfgcleanup.c +++ b/gcc/cfgcleanup.c @@ -2701,6 +2701,7 @@ try_optimize_cfg (int mode) && (single_pred_edge (b)->flags & EDGE_FALLTHRU) && !(single_pred_edge (b)->flags & EDGE_COMPLEX) && LABEL_P (BB_HEAD (b)) + && !LABEL_PRESERVE_P (BB_HEAD (b)) /* If the previous block ends with a branch to this block, we can't delete the label. Normally this is a condjump that is yet to be simplified, but