[PATCH] Add offset_int to guard HOST_WIDE_INT overflow (PR tree-optimization/82042).

Martin Liška mliska@suse.cz
Thu Nov 2 13:13:00 GMT 2017


On 10/19/2017 01:58 PM, Richard Biener wrote:
> In the end I don't think we want to slow down code just for the sake of
> UBSAN.  IMHO for code invoking undefined behavior (object too large)
> it's reasonable for the compiler to invoke undefined behavior 

Agree that it's very artificial test-case. That said, I'm leaving that.

Martin



More information about the Gcc-patches mailing list