Re: [PATCH, www] Mention download_prerequisites in installation docs

2016-08-06 Thread Manish Goregaokar
ish On Sat, Aug 6, 2016 at 9:31 PM, Gerald Pfeifer wrote: > Hi Manish, > > On Thu, 30 Jun 2016, Manish Goregaokar wrote: >> * doc/install.texi: Mention download_prerequisites > > this is okay (and sorry for the delay, I have unexpectedly > "disappeared" fo

Re: [PATCH PR c/71699] Handle pointer arithmetic in nonzero tree checks

2016-07-08 Thread Manish Goregaokar
t;>> On Fri, Jul 1, 2016 at 3:10 PM, Manish Goregaokar >>> wrote: >>>> >>>> Added a test: >>> >>> >>> Ok if this passed bootstrap/regtest. >> >> >>>> + return flag_delete_null_pointer_checks >&g

Re: [PATCH PR c/71699] Handle pointer arithmetic in nonzero tree checks

2016-07-01 Thread Manish Goregaokar
Added a test: gcc/ChangeLog: PR c/71699 * fold-const.c (tree_binary_nonzero_warnv_p): Allow pointer addition to also be considered nonzero. gcc/testsuite/ChangeLog: PR c/71699 * c-c++-common/pointer-addition-nonnull.c: New test for pointer addition. --- gcc/fold-const.c

Re: [PATCH PR c/71699] Handle pointer arithmetic in nonzero tree checks

2016-06-30 Thread Manish Goregaokar
This is the full test failure summary. I will compare with the previous commit tomorrow. The asan failure and the uninit-19 failure are interesting. uninit-19 should not have failed, but I have no idea what's going on with asan. I'll have a closer look tomorrow and look for other failing tests. ca

Re: [PATCH PR c/71699] Handle pointer arithmetic in nonzero tree checks

2016-06-30 Thread Manish Goregaokar
at 7:18 PM, Richard Biener wrote: > On Thu, Jun 30, 2016 at 3:38 PM, Marc Glisse wrote: >> On Thu, 30 Jun 2016, Manish Goregaokar wrote: >> >>> Alright, the following patch was tested and it works >>> >>> diff --git a/gcc/fold-const.c b/gcc/fold-const.

Re: [PATCH PR c/71699] Handle pointer arithmetic in nonzero tree checks

2016-06-30 Thread Manish Goregaokar
_UNDEFINED (type)) { -- 2.8.3 -Manish On Thu, Jun 30, 2016 at 6:45 PM, Richard Biener wrote: > On Thu, Jun 30, 2016 at 2:03 PM, Manish Goregaokar wrote: >> What about ptr + intptr_t? I guess we should check nonnegative for op1 then? > > op1 will always be nonnegative as it is forc

Re: [PATCH PR c/71699] Handle pointer arithmetic in nonzero tree checks

2016-06-30 Thread Manish Goregaokar
What about ptr + intptr_t? I guess we should check nonnegative for op1 then? -Manish On Thu, Jun 30, 2016 at 5:25 PM, Richard Biener wrote: > On Thu, Jun 30, 2016 at 1:17 PM, Manish Goregaokar wrote: >> gcc/ChangeLog: >> PR c/71699 >> * fold-const.c (tree_binary_no

Re: [PATCH, www] Mention download_prerequisites in installation docs

2016-06-30 Thread Manish Goregaokar
table @asis @item GNU Multiple Precision Library (GMP) version 4.3.2 (or later) -- 2.8.3 -Manish On Thu, Jun 30, 2016 at 12:37 PM, Manish Goregaokar wrote: > 2016-06-30 Manish Goregaokar > > gcc/ChangeLog: > * doc/install.texi: Mention download_prerequisites > --- > g

[PATCH PR c/71699] Handle pointer arithmetic in nonzero tree checks

2016-06-30 Thread Manish Goregaokar
gcc/ChangeLog: PR c/71699 * fold-const.c (tree_binary_nonzero_warnv_p): Allow pointer addition to also be considered nonzero. --- gcc/fold-const.c | 20 +--- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/gcc/fold-const.c b/gcc/fold-const.c index 3b9500d

[PATCH, www] Mention download_prerequisites in installation docs

2016-06-30 Thread Manish Goregaokar
2016-06-30 Manish Goregaokar gcc/ChangeLog: * doc/install.texi: Mention download_prerequisites --- gcc/doc/install.texi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gcc/doc/install.texi b/gcc/doc/install.texi index 9248f0d..0070fdf 100644 --- a/gcc/doc