Re: GCSE: Use HOST_WIDE_INT instead of int (PR, rtl-optimization/79574).

2017-03-03 Thread Richard Biener
On Thu, Mar 2, 2017 at 8:58 PM, Bernd Schmidt wrote: > On 03/02/2017 06:50 PM, Martin Liška wrote: >> >> Hello. >> >> This is second part of fixes needed to not trigger integer overflow in >> gcse pass. > > > So, how is this intended to work? The min/max stored in the param is an int, > and by usi

Re: GCSE: Use HOST_WIDE_INT instead of int (PR, rtl-optimization/79574).

2017-03-03 Thread Martin Liška
On 03/02/2017 08:58 PM, Bernd Schmidt wrote: > On 03/02/2017 06:50 PM, Martin Liška wrote: >> Hello. >> >> This is second part of fixes needed to not trigger integer overflow in gcse >> pass. > > So, how is this intended to work? The min/max stored in the param is an int, > and by using a HOST_W

Re: GCSE: Use HOST_WIDE_INT instead of int (PR, rtl-optimization/79574).

2017-03-02 Thread Bernd Schmidt
On 03/02/2017 06:50 PM, Martin Liška wrote: Hello. This is second part of fixes needed to not trigger integer overflow in gcse pass. So, how is this intended to work? The min/max stored in the param is an int, and by using a HOST_WIDE_INT here, we expect that it is a larger type and therefo

GCSE: Use HOST_WIDE_INT instead of int (PR, rtl-optimization/79574).

2017-03-02 Thread Martin Liška
, 2 Mar 2017 12:21:07 +0100 Subject: [PATCH] GCSE: Use HOST_WIDE_INT instead of int (PR rtl-optimization/79574). gcc/ChangeLog: 2017-03-02 Martin Liska PR rtl-optimization/79574 * gcse.c (struct gcse_expr): Use HOST_WIDE_INT instead of int. (hash_scan_set): Likewise. (dump_hash_ta