From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4563 invoked by alias); 7 Aug 2007 16:27:56 -0000 Received: (qmail 4429 invoked by uid 22791); 7 Aug 2007 16:27:55 -0000 X-Spam-Check-By: sourceware.org Received: from smtp1.dnsmadeeasy.com (HELO smtp1.dnsmadeeasy.com) (205.234.170.134) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 07 Aug 2007 16:27:49 +0000 Received: from smtp1.dnsmadeeasy.com (localhost [127.0.0.1]) by smtp1.dnsmadeeasy.com (Postfix) with ESMTP id 7BB103089A7; Tue, 7 Aug 2007 16:27:47 +0000 (UTC) X-Authenticated-Name: js.dnsmadeeasy X-Transit-System: In case of SPAM please contact abuse@dnsmadeeasy.com Received: from avtrex.com (unknown [67.116.42.147]) by smtp1.dnsmadeeasy.com (Postfix) with ESMTP; Tue, 7 Aug 2007 16:27:47 +0000 (UTC) Received: from jennifer.localdomain ([192.168.7.224]) by avtrex.com with Microsoft SMTPSVC(6.0.3790.1830); Tue, 7 Aug 2007 09:27:46 -0700 Message-ID: <46B89D13.50708@avtrex.com> Date: Tue, 07 Aug 2007 16:27:00 -0000 From: David Daney User-Agent: Thunderbird 2.0.0.5 (X11/20070719) MIME-Version: 1.0 To: GCJ-patches , GCC Patches Cc: andreast@gcc.gnu.org Subject: [Patch] libffi testsuite: Correct some type specifiers. Content-Type: multipart/mixed; boundary="------------090409050803090405040509" X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2007-08/txt/msg00441.txt.bz2 This is a multi-part message in MIME format. --------------090409050803090405040509 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-length: 675 Whilst hacking things up to get MIPS64 working better in libffi, I came across several test cases where structure elements were declared as type 'int' but the libffi type specifier identified them as uint32. This patch corrects some (but probably not all) of these incongruities. Tested on x86_64-pc-linux-gnu and Mips64-linux. OK to commit? 2007-08-07 David Daney * testsuite/libffi.call/nested_struct.c (main): Use correct type specifiers in structure specification. * testsuite/libffi.call/cls_24byte.c (main): Ditto. * testsuite/libffi.call/cls_12byte.c (main): Ditto. * testsuite/libffi.call/cls_16byte.c (main): Ditto. --------------090409050803090405040509 Content-Type: text/x-patch; name="ffitypes.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="ffitypes.diff" Content-length: 2521 Index: testsuite/libffi.call/nested_struct.c =================================================================== --- testsuite/libffi.call/nested_struct.c (revision 127010) +++ testsuite/libffi.call/nested_struct.c (working copy) @@ -108,10 +108,10 @@ int main (void) cls_struct_fields[0] = &ffi_type_double; cls_struct_fields[1] = &ffi_type_float; - cls_struct_fields[2] = &ffi_type_uint32; + cls_struct_fields[2] = &ffi_type_sint32; cls_struct_fields[3] = NULL; - cls_struct_fields1[0] = &ffi_type_uint32; + cls_struct_fields1[0] = &ffi_type_sint32; cls_struct_fields1[1] = &ffi_type_double; cls_struct_fields1[2] = &ffi_type_float; cls_struct_fields1[3] = NULL; Index: testsuite/libffi.call/cls_24byte.c =================================================================== --- testsuite/libffi.call/cls_24byte.c (revision 127010) +++ testsuite/libffi.call/cls_24byte.c (working copy) @@ -82,7 +82,7 @@ int main (void) cls_struct_fields[0] = &ffi_type_double; cls_struct_fields[1] = &ffi_type_double; - cls_struct_fields[2] = &ffi_type_uint32; + cls_struct_fields[2] = &ffi_type_sint32; cls_struct_fields[3] = &ffi_type_float; cls_struct_fields[4] = NULL; Index: testsuite/libffi.call/cls_12byte.c =================================================================== --- testsuite/libffi.call/cls_12byte.c (revision 127010) +++ testsuite/libffi.call/cls_12byte.c (working copy) @@ -66,9 +66,9 @@ int main (void) struct cls_struct_12byte j_dbl = { 1, 5, 3 }; struct cls_struct_12byte res_dbl; - cls_struct_fields[0] = &ffi_type_uint32; - cls_struct_fields[1] = &ffi_type_uint32; - cls_struct_fields[2] = &ffi_type_uint32; + cls_struct_fields[0] = &ffi_type_sint32; + cls_struct_fields[1] = &ffi_type_sint32; + cls_struct_fields[2] = &ffi_type_sint32; cls_struct_fields[3] = NULL; dbl_arg_types[0] = &cls_struct_type; Index: testsuite/libffi.call/cls_16byte.c =================================================================== --- testsuite/libffi.call/cls_16byte.c (revision 127010) +++ testsuite/libffi.call/cls_16byte.c (working copy) @@ -67,9 +67,9 @@ int main (void) struct cls_struct_16byte j_dbl = { 1, 9.0, 3 }; struct cls_struct_16byte res_dbl; - cls_struct_fields[0] = &ffi_type_uint32; + cls_struct_fields[0] = &ffi_type_sint32; cls_struct_fields[1] = &ffi_type_double; - cls_struct_fields[2] = &ffi_type_uint32; + cls_struct_fields[2] = &ffi_type_sint32; cls_struct_fields[3] = NULL; dbl_arg_types[0] = &cls_struct_type; --------------090409050803090405040509--