[PATCH] Fix seq_cost prototype to use signed int
Jeff Law
law@redhat.com
Tue Sep 8 15:03:00 GMT 2015
On 09/08/2015 06:17 AM, Jiong Wang wrote:
>
> All other cost helper functions are using signed int to hold cost
> while seq_cost is using unsigned int.
>
> This fix this. bootstrap OK on x86.
>
> OK for trunk?
>
> 2015-09-08 Jiong Wang <jiong.wang@arm.com>
>
> gcc/
> * rtl.h (seq_cost): Change return type from "unsigned" to "int".
> * rtlanal.c (seq_cost): Likewise.
Why not go the other way and start making things unsigned -- for a cost
function like this, unsigned seems more natural to me.
jeff
More information about the Gcc-patches
mailing list