From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11404 invoked by alias); 13 Jul 2002 21:48:15 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 11394 invoked from network); 13 Jul 2002 21:48:14 -0000 Received: from unknown (HELO r-rr.iij4u.or.jp) (210.130.0.76) by sources.redhat.com with SMTP; 13 Jul 2002 21:48:14 -0000 Received: from localhost (frgw.3in.ne.jp [210.251.121.226]) by r-rr.iij4u.or.jp (8.11.6+IIJ/8.11.6) with ESMTP id g6DLmBN18592; Sun, 14 Jul 2002 06:48:11 +0900 (JST) Message-Id: <200207132148.g6DLmBN18592@r-rr.iij4u.or.jp> To: gcc-patches@gcc.gnu.org Cc: aoliva@redhat.com, joern.rennecke@superh.com Subject: Re: [PATCH/RFA] libffi: SH support In-Reply-To: Your message of "Sat, 13 Jul 2002 10:19:05 +0900" <200207130135.g6D1ZYN11237@r-rr.iij4u.or.jp> References: <200207130135.g6D1ZYN11237@r-rr.iij4u.or.jp> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Sat, 13 Jul 2002 15:22:00 -0000 From: kaz Kojima X-Dispatcher: imput version 971024 X-SW-Source: 2002-07/txt/msg00621.txt.bz2 kaz Kojima wrote: > This patch for mainline adds SH linux support to libffi. > Bootstrapped on i686-pc-linux-gnu and sh4-unknown-linux-gnu > without regressions. It passes ffitest on sh[34]-*-linux-gnu > platforms too. > > kaz > -- > 2002-07-13 Kaz Kojima > > * Makefile.am: Add SH support. > * Makefile.in: Regenerate. > * configure.in (sh*-*-linux-*): Add target. > * configure: Regenerate. > * include/ffi.h.in: Add SH support. > * src/sh/ffi.c: New flie. > * src/sh/sysv.S: New file. Duh. I've forgot a patch for src/types.c. kaz -- * src/types.c: Add SH support. --- ORIG/gcc/libffi/src/types.c Tue Mar 27 11:39:16 2001 +++ LOCAL/gcc/libffi/src/types.c Fri Jul 12 17:42:34 2002 @@ -67,6 +67,11 @@ FFI_INTEGRAL_TYPEDEF(uint64, 8, 4, FFI_TYPE_UINT64); FFI_INTEGRAL_TYPEDEF(sint64, 8, 4, FFI_TYPE_SINT64); +#elif defined SH + +FFI_INTEGRAL_TYPEDEF(uint64, 8, 4, FFI_TYPE_UINT64); +FFI_INTEGRAL_TYPEDEF(sint64, 8, 4, FFI_TYPE_SINT64); + #elif defined M68K FFI_INTEGRAL_TYPEDEF(uint64, 8, 4, FFI_TYPE_UINT64); @@ -91,6 +96,11 @@ FFI_INTEGRAL_TYPEDEF(longdouble, 12, 4, FFI_TYPE_LONGDOUBLE); #elif defined ARM + +FFI_INTEGRAL_TYPEDEF(double, 8, 4, FFI_TYPE_DOUBLE); +FFI_INTEGRAL_TYPEDEF(longdouble, 8, 4, FFI_TYPE_LONGDOUBLE); + +#elif defined SH FFI_INTEGRAL_TYPEDEF(double, 8, 4, FFI_TYPE_DOUBLE); FFI_INTEGRAL_TYPEDEF(longdouble, 8, 4, FFI_TYPE_LONGDOUBLE);