From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26663 invoked by alias); 10 Dec 2010 11:53:56 -0000 Received: (qmail 26434 invoked by uid 22791); 10 Dec 2010 11:53:46 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (38.113.113.100) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 10 Dec 2010 11:53:16 +0000 Received: (qmail 14243 invoked from network); 10 Dec 2010 11:52:58 -0000 Received: from unknown (HELO dirichlet.schwinge.homeip.net) (thomas@127.0.0.2) by mail.codesourcery.com with ESMTPA; 10 Dec 2010 11:52:58 -0000 From: Thomas Schwinge To: "Joseph S. Myers" Cc: gcc-patches@gcc.gnu.org, maxim@codesourcery.com, thomas@schwinge.name Subject: Re: [PATCH] glibc / uclibc / bionic switch vs. non-Linux, GNU-based systems References: <1291821876-23891-1-git-send-email-thomas@schwinge.name> Date: Fri, 10 Dec 2010 12:34:00 -0000 In-Reply-To: (Joseph S. Myers's message of "Wed, 8 Dec 2010 16:33:35 +0000 (UTC)") Message-ID: <87zksddeut.fsf@dirichlet.schwinge.homeip.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" 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: 2010-12/txt/msg00865.txt.bz2 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-length: 1471 Hallo! On 2010-12-08 16:33, Joseph S. Myers wrote: > This alternative patch limits use of linux.opt to those targets for > which it is relevant - that is, *-*-linux* (systems using the Linux > kernel and an MMU-based ABI), as those are the systems for which > alternative libcs may be available withing a single compiler > configuration. I reviewed this patch (with Joseph's additional change to not duplicate the DEFAULT_LIBC definition in certain cases), and it appears correct to me. (I cannot formally approve it, however.) I also tested this one instead of my original patch, and successfully built GCC natively on i686 GNU/Hurd. > 2010-12-08 Joseph Myers > > * config/alpha/linux.h (OPTION_GLIBC): Define differently if > SINGLE_LIBC. > * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): > Define differently if SINGLE_LIBC. > * config/rs6000/linux.h (OPTION_GLIBC): Define differently if > SINGLE_LIBC. > * config/rs6000/linux64.h (OPTION_GLIBC): Define differently if > SINGLE_LIBC. > * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu | > *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu): Define > DEFAULT_LIBC and SINGLE_LIBC instead of OPTION_GLIBC. s%DEFAULT_LIBC and %% as per your follow-up email. > (*-*-uclinux*): Define DEFAULT_LIBC and SINGLE_LIBC. > (bfin*-uclinux*, moxie-*-uclinux*, m68k-*-uclinux*): Don't define > DEFAULT_LIBC or use linux.opt. Gr=C3=BC=C3=9Fe, Thomas --=-=-= Content-Type: application/pgp-signature Content-length: 197 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAk0CFIsACgkQC9ZuxbdEiFhFVwCg0ESQZI6dOSpxaLShx+aO8xLc 3u8AnR6fB/pp+aTp10/4tVZ0EX2NVqhm =60zD -----END PGP SIGNATURE----- --=-=-=--