From patchwork Sun Jun 20 17:18:58 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gerald Pfeifer X-Patchwork-Id: 56267 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 1A3D8B7D1A for ; Mon, 21 Jun 2010 03:19:08 +1000 (EST) Received: (qmail 32589 invoked by alias); 20 Jun 2010 17:19:06 -0000 Received: (qmail 32577 invoked by uid 22791); 20 Jun 2010 17:19:05 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,TW_IB X-Spam-Check-By: sourceware.org Received: from vexpert.dbai.tuwien.ac.at (HELO vexpert.dbai.tuwien.ac.at) (128.131.111.2) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 20 Jun 2010 17:19:00 +0000 Received: from acrux.dbai.tuwien.ac.at (acrux.dbai.tuwien.ac.at [128.131.111.60]) by vexpert.dbai.tuwien.ac.at (Postfix) with ESMTP id 50C091E057; Sun, 20 Jun 2010 19:18:55 +0200 (CEST) Received: by acrux.dbai.tuwien.ac.at (Postfix, from userid 1203) id 043C61604A; Sun, 20 Jun 2010 19:18:58 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by acrux.dbai.tuwien.ac.at (Postfix) with ESMTP id E587E16048; Sun, 20 Jun 2010 19:18:58 +0200 (CEST) Date: Sun, 20 Jun 2010 19:18:58 +0200 (CEST) From: Gerald Pfeifer To: gcc-patches@gcc.gnu.org cc: Loren James Rittle Subject: [4.4, libffi] fix support for FreeBSD Message-ID: User-Agent: Alpine 1.99 (LSU 1142 2008-08-13) MIME-Version: 1.0 X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org While mostly looking for something else, I noticed this patch Loren had contributed to GCC 4.5 and later that we are missing on GCC 4.4 (which is now the primary non-system compiler on FreeBSD). Tested on i386-unknown-freebsd9.0, the expected passes for libjava grow from 2475 to 2477, expected failures and unsupported testcases down by one each: http://gcc.gnu.org/ml/gcc-testresults/2010-06/msg02062.html Still, results on the 4.4 branch are a lot worse than on HEAD, but then there have been a lot of improvements there in the last year. Installed. Gerald 2010-06-20 Gerald Pfeifer Backport from mainline: 2009-09-17 Loren J. Rittle PR testsuite/32843 (strikes again) src/x86/ffi.c (ffi_prep_cif_machdep): Add X86_FREEBSD to enable proper extension on char and short. Index: src/x86/ffi.c =================================================================== --- src/x86/ffi.c (revision 161046) +++ src/x86/ffi.c (working copy) @@ -123,7 +123,7 @@ #ifdef X86 case FFI_TYPE_STRUCT: #endif -#if defined(X86) || defined(X86_DARWIN) +#if defined(X86) || defined(X86_DARWIN) || defined(X86_FREEBSD) case FFI_TYPE_UINT8: case FFI_TYPE_UINT16: case FFI_TYPE_SINT8: