From d65adabb0d3a14a359be8cdd25ed476513051d54 Mon Sep 17 00:00:00 2001 From: Nathan Sidwell Date: Thu, 25 May 2017 01:12:29 +0000 Subject: [PATCH] auto-profile.c (afdo_propagate): Adjust T const cast to avoid warning. * auto-profile.c (afdo_propagate): Adjust T const cast to avoid warning. From-SVN: r248444 --- gcc/ChangeLog | 5 +++++ gcc/auto-profile.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0de25314406..48155c41b59 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2017-05-24 Nathan Sidwell + + * auto-profile.c (afdo_propagate): Adjust T const cast to avoid + warning. + 2017-05-24 Segher Boessenkool * config/powerpcspe: New port. Files are copied from the rs6000 diff --git a/gcc/auto-profile.c b/gcc/auto-profile.c index 5c6b505d06b..ff5714a6cbc 100644 --- a/gcc/auto-profile.c +++ b/gcc/auto-profile.c @@ -1377,7 +1377,7 @@ afdo_propagate (bb_set *annotated_bb, edge_set *annotated_edge) FOR_ALL_BB_FN (bb, cfun) { bb->count = ((basic_block)bb->aux)->count; - if (is_bb_annotated ((const basic_block)bb->aux, *annotated_bb)) + if (is_bb_annotated ((basic_block)bb->aux, *annotated_bb)) set_bb_annotated (bb, annotated_bb); } -- 2.30.2