From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3731 invoked by alias); 29 Apr 2011 16:26:48 -0000 Received: (qmail 3679 invoked by uid 22791); 29 Apr 2011 16:26:45 -0000 X-SWARE-Spam-Status: No, hits=-6.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,TW_BF,TW_IB,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 29 Apr 2011 16:26:28 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p3TGQJnP023245 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 29 Apr 2011 12:26:19 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p3TGQIhw014425; Fri, 29 Apr 2011 12:26:19 -0400 Received: from opsy.redhat.com (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id p3TGQHZm006473; Fri, 29 Apr 2011 12:26:18 -0400 Received: by opsy.redhat.com (Postfix, from userid 500) id 83E673782ED; Fri, 29 Apr 2011 10:26:17 -0600 (MDT) From: Tom Tromey To: "Joseph S. Myers" Cc: gcc-patches@gcc.gnu.org, java-patches@gcc.gnu.org, bonzini@gnu.org, dj@redhat.com, neroden@gcc.gnu.org, aoliva@redhat.com, Ralf.Wildenhues@gmx.de, green@redhat.com Subject: Re: Toplevel cleanup: disable Java when libffi not supported References: Date: Fri, 29 Apr 2011 16:26:00 -0000 In-Reply-To: (Joseph S. Myers's message of "Wed, 27 Apr 2011 16:33:54 +0000 (UTC)") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-IsSubscribed: yes Mailing-List: contact java-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-patches-owner@gcc.gnu.org X-SW-Source: 2011-q2/txt/msg00032.txt.bz2 >>>>> "Joseph" == Joseph S Myers writes: Joseph> This patch, relative to a tree with Joseph> applied, Joseph> continues the cleanup of toplevel cases relating to disabling Java or Joseph> Java libraries by arranging for Java to be disabled (via Joseph> unsupported_languages) on targets not supporting libffi It does make sense to build libjava without libffi. It just means that libjava has somewhat degraded functionality -- libffi is needed for the interpreter, for JNI, and for some kinds of reflection (Method.invoke). I am not sure if there are any existing targets where libjava works but libffi does not. Looking at libjava/configure.host, maybe `arm*-elf' (but maybe configure.host is out of data, it is certainly possible). There is also --without-libffi, though; I didn't look to see what your patch does with this. A better gate for libjava might be boehm-gc. It is required to run any sort of real program. Joseph> The ideal would be for information about libffi-supported targets to Joseph> come from a configure fragment in the libffi/ directory, as per item 4 Joseph> in . This would help libjava's configury as well. Tom