diff mbox

[libibery] Fix bootstrap

Message ID 17d610aa-170d-6244-34df-2c4d6d577bec@acm.org
State New
Headers show

Commit Message

Nathan Sidwell May 25, 2017, 1:13 a.m. UTC
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
diff mbox

Patch

2017-05-24  Nathan Sidwell  <nathan@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);
   }