[PATCH] Fix compile-time hog in MPX boundary checking (PR target/84988).

Jeff Law law@redhat.com
Tue Mar 20 19:40:00 GMT 2018


On 03/20/2018 01:36 PM, Martin Liška wrote:
> Hi.
> 
> This is a work-around to not iterate all members of array that can be huge.
> As MPX will be removed in GCC 9.x, I hope it's acceptable. I don't want
> to come
> up with a new param for it.
> 
> Survives tests&bootstrap on x86_64-linux-gnu.
> 
> Martin
> 
> gcc/ChangeLog:
> 
> 2018-03-20  Martin Liska  <mliska@suse.cz>
> 
>     PR target/84988
>     * tree-chkp.c (CHKP_ARRAY_MAX_CHECK_STEPS): Define a new macro.
>     (chkp_find_bound_slots_1): Limit number of iterations.
Or just CLOSE/WONTFIX :-)

I've got no objections here -- we want to  minimize the effort put into
CHKP given its going to be deprecated.

jeff



More information about the Gcc-patches mailing list