From: Marek Polacek Date: Tue, 26 Aug 2014 14:24:15 +0000 (+0000) Subject: re PR c/61271 (10 * possible coding error with logical not (!)) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=13dfd55471b7294fa33a2f4f78b7e6e016770957;p=gcc.git re PR c/61271 (10 * possible coding error with logical not (!)) PR c/61271 * sel-sched-ir.c (make_regions_from_the_rest): Fix condition. From-SVN: r214523 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9afbb8dc673..6b9bc1c534d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2014-08-26 Marek Polacek + + PR c/61271 + * sel-sched-ir.c (make_regions_from_the_rest): Fix condition. + 2014-08-26 Evandro Menezes * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete diff --git a/gcc/sel-sched-ir.c b/gcc/sel-sched-ir.c index c36658f15c4..dd777fa6bcf 100644 --- a/gcc/sel-sched-ir.c +++ b/gcc/sel-sched-ir.c @@ -6185,7 +6185,7 @@ make_regions_from_the_rest (void) FOR_EACH_BB_FN (bb, cfun) { - if (bb->loop_father && !bb->loop_father->num == 0 + if (bb->loop_father && bb->loop_father->num != 0 && !(bb->flags & BB_IRREDUCIBLE_LOOP)) loop_hdr[bb->index] = bb->loop_father->num; }