From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29245 invoked by alias); 2 Jun 2009 12:23:42 -0000 Received: (qmail 29235 invoked by uid 22791); 2 Jun 2009 12:23:42 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from mx.transitive.com (HELO mx.transitive.com) (85.91.225.206) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 02 Jun 2009 12:23:38 +0000 Received: by mx.transitive.com (Postfix, from userid 65534) id DCBBA13EEE; Tue, 2 Jun 2009 13:13:47 +0100 (BST) X-Spam-Score: -2.4 Received: from richards-desktop.transitives.com (richards-desktop.transitives.com [192.168.2.43]) by mx.transitive.com (Postfix) with ESMTP id 7B1C713A64; Tue, 2 Jun 2009 13:13:46 +0100 (BST) Received: from richards-desktop.transitives.com (localhost.localdomain [127.0.0.1]) by richards-desktop.transitives.com (8.13.8/8.13.8) with ESMTP id n52CNYin021394; Tue, 2 Jun 2009 13:23:34 +0100 Received: (from richards@localhost) by richards-desktop.transitives.com (8.13.8/8.13.8/Submit) id n52CNYUu021393; Tue, 2 Jun 2009 13:23:34 +0100 From: Richard Sandiford To: gcc-patches@gcc.gnu.org Mail-Followup-To: gcc-patches@gcc.gnu.org,libstdc++@gcc.gnu.org, richards@transitive.com Cc: libstdc++@gcc.gnu.org Subject: [6/8] Add AIX support to GLIBCXX_CROSSCONFIG References: Date: Tue, 02 Jun 2009 12:23:00 -0000 In-Reply-To: (Richard Sandiford's message of "Tue\, 02 Jun 2009 13\:03\:21 +0100") Message-ID: User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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: 2009-06/txt/msg00149.txt.bz2 This patch adds AIX cross support to libstdc++ configure. It uses: GLIBCXX_CHECK_LINKER_FEATURES GLIBCXX_CHECK_MATH_SUPPORT GLIBCXX_CHECK_STDLIB_SUPPORT just like native toolchains, and just like other cross toolchains that require a "working" linker and access to the sysroot. I've treated TLS as unsupported. AIX does have a defined TLS ABI, but we don't use it yet. I don't think we should rely on emultls when a dedicated ABI is available. I've assumed /dev/random and /dev/urandom are both available. This is certainly true on the AIX 6.1 box that I have access to. Tested on powerpc-ibm-aix6.1 and x86_64-linux-gnu. OK to install? Richard libstdc++-v3/ * crossconfig.m4 (GLIBCXX_CROSSCONFIG): Handle AIX targets. * configure: Regenerate. Index: libstdc++-v3/crossconfig.m4 =================================================================== --- libstdc++-v3/crossconfig.m4 2009-06-02 13:05:35.000000000 +0100 +++ libstdc++-v3/crossconfig.m4 2009-06-02 13:06:07.000000000 +0100 @@ -28,6 +28,16 @@ case "${host}" in AC_DEFINE(HAVE_SQRTF) ;; + *-aix*) + GLIBCXX_CHECK_LINKER_FEATURES + GLIBCXX_CHECK_MATH_SUPPORT + GLIBCXX_CHECK_STDLIB_SUPPORT + AC_DEFINE(_GLIBCXX_USE_RANDOM_TR1) + # We don't yet support AIX's TLS ABI. + #GCC_CHECK_TLS + AM_ICONV + ;; + *-darwin*) # Darwin versions vary, but the linker should work in a cross environment, # so we just check for all the features here.