Re: [PATCH] Fix folding of memcmp("a", "a", 2) (PR, tree-optimization/78257)

2016-11-09 Thread David Edelsohn
This patch breaks bootstrap on AIX and probably on any 32 bit host. Thanks, David /nasfarm/edelsohn/src/src/gcc/fold-const-call.c: In function 'tree_node* fold_const_call(combined_fn, tree, tree, tree, tree)': /nasfarm/edelsohn/src/src/gcc/fold-const-call.c:1541:36: error: cannot convert

Re: [PATCH] Fix folding of memcmp("a", "a", 2) (PR, tree-optimization/78257)

2016-11-09 Thread Richard Biener
On Wed, Nov 9, 2016 at 3:08 PM, Martin Liška wrote: > On 11/09/2016 02:58 PM, Richard Biener wrote: >> On Wed, Nov 9, 2016 at 2:56 PM, Martin Liška wrote: >>> Hello. >>> >>> Following patch fixes [1] (f0 function), where we have off-by-one error. >>> Patch can

Re: [PATCH] Fix folding of memcmp("a", "a", 2) (PR, tree-optimization/78257)

2016-11-09 Thread Martin Liška
On 11/09/2016 02:58 PM, Richard Biener wrote: > On Wed, Nov 9, 2016 at 2:56 PM, Martin Liška wrote: >> Hello. >> >> Following patch fixes [1] (f0 function), where we have off-by-one error. >> Patch can bootstrap on ppc64le-redhat-linux and survives regression tests. >> >> Ready to

Re: [PATCH] Fix folding of memcmp("a", "a", 2) (PR, tree-optimization/78257)

2016-11-09 Thread Richard Biener
On Wed, Nov 9, 2016 at 2:56 PM, Martin Liška wrote: > Hello. > > Following patch fixes [1] (f0 function), where we have off-by-one error. > Patch can bootstrap on ppc64le-redhat-linux and survives regression tests. > > Ready to be installed? Ok (w/o the unrelated gimplify.c

[PATCH] Fix folding of memcmp("a", "a", 2) (PR, tree-optimization/78257)

2016-11-09 Thread Martin Liška
Mon Sep 17 00:00:00 2001 From: marxin <mli...@suse.cz> Date: Wed, 9 Nov 2016 10:33:43 +0100 Subject: [PATCH] Fix folding of memcmp("a", "a", 2) (PR tree-optimization/78257) gcc/ChangeLog: 2016-11-09 Martin Liska <mli...@suse.cz> * fold-const-call.c (fold