From: Jakub Jelinek Date: Fri, 1 Oct 2010 19:59:54 +0000 (+0200) Subject: * testsuite/libffi.call/many2.c: Don't use uint8_t. X-Git-Tag: releases/gcc-4.4.6~337 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dfc110148638187e691b3ffe3e82a7bfdfb034f6;p=thirdparty%2Fgcc.git * testsuite/libffi.call/many2.c: Don't use uint8_t. From-SVN: r164894 --- diff --git a/libffi/ChangeLog b/libffi/ChangeLog index 296f9088084f..d70405e4d342 100644 --- a/libffi/ChangeLog +++ b/libffi/ChangeLog @@ -1,5 +1,7 @@ 2010-10-01 Jakub Jelinek + * testsuite/libffi.call/many2.c: Don't use uint8_t. + PR libffi/45677 * src/x86/ffi64.c (ffi_prep_cif_machdep): Ensure cif->bytes is a multiple of 8. diff --git a/libffi/testsuite/libffi.call/many2.c b/libffi/testsuite/libffi.call/many2.c index 10771592fc88..338cbde6e19f 100644 --- a/libffi/testsuite/libffi.call/many2.c +++ b/libffi/testsuite/libffi.call/many2.c @@ -1,5 +1,5 @@ /* Area: ffi_call - Purpose: Check uint8_t arguments. + Purpose: Check unsigned char arguments. Limitations: none. PR: PR45677. Originator: Dan Witte 20100916 */ @@ -12,16 +12,14 @@ typedef unsigned char u8; -__attribute__((noinline)) uint8_t -foo (uint8_t a, uint8_t b, uint8_t c, uint8_t d, - uint8_t e, uint8_t f, uint8_t g) +__attribute__((noinline)) u8 +foo (u8 a, u8 b, u8 c, u8 d, u8 e, u8 f, u8 g) { return a + b + c + d + e + f + g; } -uint8_t -bar (uint8_t a, uint8_t b, uint8_t c, uint8_t d, - uint8_t e, uint8_t f, uint8_t g) +u8 +bar (u8 a, u8 b, u8 c, u8 d, u8 e, u8 f, u8 g) { return foo (a, b, c, d, e, f, g); } @@ -33,11 +31,11 @@ main (void) int i; ffi_cif cif; ffi_arg result = 0; - uint8_t args[NARGS]; + u8 args[NARGS]; void *argptrs[NARGS]; for (i = 0; i < NARGS; ++i) - ffitypes[i] = &ffi_type_uint8; + ffitypes[i] = &ffi_type_uchar; CHECK (ffi_prep_cif (&cif, FFI_DEFAULT_ABI, NARGS, &ffi_type_uint8, ffitypes) == FFI_OK);