Hi.

Simple patch fixes warning spotted by upcoming -Wint-in-bool-context option.
Survives regression tests and bootstraps on ppc64le-linux-gnu.

Ready from trunk?
Thanks,
Martin
>From 73ef3ea13b9e52b8ead1de18343fe222ea81f718 Mon Sep 17 00:00:00 2001
From: marxin <mli...@suse.cz>
Date: Tue, 13 Sep 2016 14:46:51 +0200
Subject: [PATCH] Add braces to a condition in predict.c (PR middle-end/77574)

gcc/ChangeLog:

2016-09-13  Bernd Edlinger <bernd.edlin...@hotmail.de>
	    Martin Liska  <mli...@suse.cz>

	* predict.c (force_edge_cold): Add braces to a condition.
---
 gcc/predict.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/predict.c b/gcc/predict.c
index 035a0c2..b3d1697 100644
--- a/gcc/predict.c
+++ b/gcc/predict.c
@@ -3723,7 +3723,7 @@ force_edge_cold (edge e, bool impossible)
   int prob_scale = REG_BR_PROB_BASE;
 
   /* If edge is already improbably or cold, just return.  */
-  if (e->probability <= impossible ? PROB_VERY_UNLIKELY : 0
+  if (e->probability <= (impossible ? PROB_VERY_UNLIKELY : 0)
       && (!impossible || !e->count))
     return;
   FOR_EACH_EDGE (e2, ei, e->src->succs)
-- 
2.9.2

Reply via email to