diff mbox

ARC: configure script to allow non uclibc based triplets

Message ID C2D7FE5348E1B147BCA15975FBA23075F4EAC730@us01wembx1.internal.synopsys.com
State New
Headers show

Commit Message

Vineet Gupta May 20, 2016, 12:51 p.m. UTC
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

   do \
diff mbox

Patch

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() \