From: saaadhu Date: Wed, 17 May 2017 05:50:37 +0000 (+0000) Subject: Fix bogus pr78886.c failure for avr X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9d0e00c38841840a1107bf37866e994c181aa271;p=thirdparty%2Fgcc.git Fix bogus pr78886.c failure for avr The test fails for avr because malloc has been declared to take an unsigned long, whereas size_t for avr is only unsigned int. Fixed by typedef'ing __SIZE_TYPE__ to size_t and using it in the malloc function declaration. gcc/testsuite/ 2017-05-17 Senthil Kumar Selvaraj * gcc.dg/tree-ssa/pr78886.c: Use __SIZE_TYPE__ instead of unsigned long. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@248138 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index dea167f61a5f..c4f76871aee7 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2017-05-17 Senthil Kumar Selvaraj + + * gcc.dg/tree-ssa/pr78886.c: Use __SIZE_TYPE__ instead of + unsigned long. + 2017-05-17 Chenghua Xu * gcc.target/mips/reorgbug-1.c: Don't specify -O2. diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr78886.c b/gcc/testsuite/gcc.dg/tree-ssa/pr78886.c index 97799301547b..de22b83ad257 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/pr78886.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/pr78886.c @@ -1,6 +1,8 @@ /* { dg-do compile } */ /* { dg-options "-O2" } */ -void *malloc(unsigned long x); + +__extension__ typedef __SIZE_TYPE__ size_t; +void *malloc(size_t x); void foo(void) {