On Tue, Jan 17, 2017 at 11:06:27AM +0100, Christophe Lyon wrote: > The new ssa-dse-2.C test fails on arm because: > warning: declaration of 'void* memmove(void*, const void*, size_t)' > conflicts with built-in declaration 'void* memmove(void*, const void*, > unsigned int)' [-Wbuiltin-declaration-mismatch]
Fixed thusly, tested on x86_64-linux (-m32/-m64), committed to trunk. 2017-01-17 Jakub Jelinek <ja...@redhat.com> * g++.dg/tree-ssa/ssa-dse-2.C (size_t): Typedef to __SIZE_TYPE__ rather than long unsigned int. * g++.dg/tree-ssa/ssa-dom.C: Likewise. --- gcc/testsuite/g++.dg/tree-ssa/ssa-dse-2.C.jj 2017-01-17 10:26:14.000000000 +0100 +++ gcc/testsuite/g++.dg/tree-ssa/ssa-dse-2.C 2017-01-17 11:09:47.523816172 +0100 @@ -1,7 +1,7 @@ /* { dg-do compile } */ /* { dg-options "-O2 -fdump-tree-dse2-details" } */ -typedef long unsigned int size_t; +typedef __SIZE_TYPE__ size_t; extern "C" { extern void *memmove (void *__dest, const void *__src, size_t __n) throw () --- gcc/testsuite/g++.dg/tree-ssa/ssa-dom.C.jj 2015-11-26 10:41:00.000000000 +0100 +++ gcc/testsuite/g++.dg/tree-ssa/ssa-dom.C 2017-01-17 11:10:02.895603323 +0100 @@ -1,7 +1,7 @@ /* { dg-do compile } */ /* { dg-options "-O2 -fdump-tree-dom2" } */ -typedef long unsigned int size_t; +typedef __SIZE_TYPE__ size_t; extern void abort (void) __attribute__ ((__noreturn__)); union tree_node; typedef union tree_node *tree; Jakub