On 05/24/2017 08:56 PM, Nathan Sidwell wrote:
On 05/24/2017 08:34 PM, Nathan Sidwell wrote:
We now warn on casts to T const. Applied as obvious to fix bootstrap.
And this fixes c-common.c
And fix auto-profile.c
nathan
--
Nathan Sidwell
2017-05-24 Nathan Sidwell <nat...@acm.org>
* auto-profile.c (afdo_propagate): Adjust T const cast to avoid
warning.
Index: auto-profile.c
===================================================================
--- auto-profile.c (revision 248441)
+++ auto-profile.c (working copy)
@@ -1377,7 +1377,7 @@ afdo_propagate (bb_set *annotated_bb, ed
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);
}