This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] ARC: configure script to allow non uclibc based triplets
- From: Vineet Gupta <Vineet dot Gupta1 at synopsys dot com>
- To: Claudiu Zissulescu <Claudiu dot Zissulescu at synopsys dot com>, "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Cc: "gnu at amylaar dot uk" <gnu at amylaar dot uk>, "Francois dot Bedard at synopsys dot com" <Francois dot Bedard at synopsys dot com>, Cupertino Miranda <Cupertino dot Miranda at synopsys dot com>
- Date: Fri, 20 May 2016 12:51:29 +0000
- Subject: Re: [PATCH] ARC: configure script to allow non uclibc based triplets
- Authentication-results: sourceware.org; auth=none
- References: <1463720503-3336-1-git-send-email-vgupta at synopsys dot com> <098ECE41A0A6114BB2A07F1EC238DE896619A909 at de02wembxa dot internal dot synopsys dot com>
On Friday 20 May 2016 05:28 PM, Claudiu Zissulescu wrote:
> Hi Vineet,
>
>> gcc/
>> 2016-05-20 Vineet Gupta <vgupta@synopsys.com>
>>
>> * 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 configurations for each system, as ARM for example does.
I didn't see any explicit glibc suffixes in the switch case for other arches hence
the above.
Actually autoconf automatically defines LIBC_{GLIBC,UCLIBC} based on the triplet -
so u get the desired multiplexer for driver configuration already - although 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)
-#if DEFAULT_LIBC == LIBC_UCLIBC
+#if (DEFAULT_LIBC == LIBC_UCLIBC) || (DEFAULT_LIBC == LIBC_GLIBC) ||
(DEFAULT_LIBC == LIBC_BIONIC)
#define TARGET_OS_CPP_BUILTINS() \
do \