]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fix broken pr78138.c for avr
authorSenthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
Tue, 2 May 2017 09:17:59 +0000 (09:17 +0000)
committerSenthil Kumar Selvaraj <saaadhu@gcc.gnu.org>
Tue, 2 May 2017 09:17:59 +0000 (09:17 +0000)
commit52e0a9f766c29557c52b6dbef536103d30d97e86
treee5f3fdfd49ef358e613c354374c669e885a0ab19
parent05dbb83f9e3b783de3d666348b1d1a0e7895b09f
Fix broken pr78138.c for avr

The declaration for memcpy had the size parameter declared as
unsigned long. For avr, __SIZE_TYPE__ is unsigned int, and
this caused a builtin-declaration-mismatch warning, resulting
in a couple of FAILs.

Fixed by typedef'ing __SIZE_TYPE__ to size_t and using size_t as the
type for memcpy's third parameter.

From-SVN: r247483
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr78138.c