From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 124938 invoked by alias); 20 May 2016 12:51:47 -0000 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 Received: (qmail 124925 invoked by uid 89); 20 May 2016 12:51:45 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=77,7 X-HELO: smtprelay.synopsys.com Received: from smtprelay4.synopsys.com (HELO smtprelay.synopsys.com) (198.182.47.9) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Fri, 20 May 2016 12:51:35 +0000 Received: from dc8secmta1.synopsys.com (dc8secmta1.synopsys.com [10.13.218.200]) by smtprelay.synopsys.com (Postfix) with ESMTP id 15A5C24E0F13; Fri, 20 May 2016 05:51:32 -0700 (PDT) Received: from dc8secmta1.internal.synopsys.com (dc8secmta1.internal.synopsys.com [127.0.0.1]) by dc8secmta1.internal.synopsys.com (Service) with ESMTP id 093E627113; Fri, 20 May 2016 05:51:32 -0700 (PDT) Received: from mailhost.synopsys.com (mailhost1.synopsys.com [10.12.238.239]) by dc8secmta1.internal.synopsys.com (Service) with ESMTP id E087E27102; Fri, 20 May 2016 05:51:31 -0700 (PDT) Received: from mailhost.synopsys.com (localhost [127.0.0.1]) by mailhost.synopsys.com (Postfix) with ESMTP id CC6FC9FE; Fri, 20 May 2016 05:51:31 -0700 (PDT) Received: from US01WEHTC2.internal.synopsys.com (us01wehtc2-vip.internal.synopsys.com [10.12.239.238]) by mailhost.synopsys.com (Postfix) with ESMTP id C06599FD; Fri, 20 May 2016 05:51:30 -0700 (PDT) Received: from us01wembx1.internal.synopsys.com ([169.254.1.215]) by US01WEHTC2.internal.synopsys.com ([10.12.239.237]) with mapi id 14.03.0195.001; Fri, 20 May 2016 05:51:30 -0700 From: Vineet Gupta To: Claudiu Zissulescu , "gcc-patches@gcc.gnu.org" CC: "gnu@amylaar.uk" , "Francois.Bedard@synopsys.com" , Cupertino Miranda Subject: Re: [PATCH] ARC: configure script to allow non uclibc based triplets Date: Fri, 20 May 2016 12:51:00 -0000 Message-ID: References: <1463720503-3336-1-git-send-email-vgupta@synopsys.com> <098ECE41A0A6114BB2A07F1EC238DE896619A909@de02wembxa.internal.synopsys.com> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-SW-Source: 2016-05/txt/msg01642.txt.bz2 On Friday 20 May 2016 05:28 PM, Claudiu Zissulescu wrote: > Hi Vineet, > >> gcc/ >> 2016-05-20 Vineet Gupta >> >> * config.gcc: Remove uclibc from arc target spec >> >> -arc*-*-linux-uclibc*) >> +arc*-*-linux*) > Actually may make sense to have something like arc*-*-*linux-glibc* here = (or something of a sort) as we can properly select gcc driver configuration= s for each system, as ARM for example does. I didn't see any explicit glibc suffixes in the switch case for other arche= s hence the above. Actually autoconf automatically defines LIBC_{GLIBC,UCLIBC} based on the tr= iplet - so u get the desired multiplexer for driver configuration already - althoug= h I doubt differences will be needed for ARC for uclibc/glibc ! In light of above, Cupertino pointed me another thing which we need fixing - something like below diff --git a/gcc/config/arc/arc.h b/gcc/config/arc/arc.h index 44f812dfdbe9..10329524c710 100644 --- a/gcc/config/arc/arc.h +++ b/gcc/config/arc/arc.h @@ -77,7 +77,7 @@ along with GCC; see the file COPYING3. If not see /* Names to predefine in the preprocessor for this target machine. */ #define TARGET_CPU_CPP_BUILTINS() arc_cpu_cpp_builtins (pfile) =20 -#if DEFAULT_LIBC =3D=3D LIBC_UCLIBC +#if (DEFAULT_LIBC =3D=3D LIBC_UCLIBC) || (DEFAULT_LIBC =3D=3D LIBC_GLIBC) = || (DEFAULT_LIBC =3D=3D LIBC_BIONIC) =20 #define TARGET_OS_CPP_BUILTINS() \ do \