This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] ARC: configure script to allow non uclibc based triplets


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 \



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]