From patchwork Fri Aug 1 02:01:44 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan Hundven X-Patchwork-Id: 375497 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id C96E114009B for ; Fri, 1 Aug 2014 12:02:09 +1000 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id:in-reply-to :references; q=dns; s=default; b=Pej2FfPfF7l65Tvlt+fgJcehFLGS7qJ U5i8iK9r6+ND2qXwLJk6LywuM9ssIWnVP72gHIXyyqCQXXJjeCpb3kV5xUWiaSrz oskHIRRqCnINTeXpv7H+HYRqbMBvo2oy5jUONQANPuXmbQ7HS8KkKOHH9+3zEf8h aJ56lnj+TxG0= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id:in-reply-to :references; s=default; bh=YfptaFSBj7JjF9tqjauNJLuZ5Vc=; b=o11ak XB3R+OOreHvgiIBukFP/iecba/+5iZNr2O+L2fIHRgKoXPDttEFT5MuuG6v2RQXl roP8rcDjVlJ2qJZcwValXF6xi9475Iu8vyJ0WTKlfJk5ax8vxUAY/3LyZnyVsJBG 8S2eKSR/sdyvxZLrSKMlKIfvTOp3vlThp4y3F8= Received: (qmail 4639 invoked by alias); 1 Aug 2014 02:02:00 -0000 Mailing-List: contact crossgcc-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: crossgcc-owner@sourceware.org Delivered-To: mailing list crossgcc@sourceware.org Received: (qmail 3032 invoked by uid 89); 1 Aug 2014 02:01:57 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-pa0-f45.google.com Received: from mail-pa0-f45.google.com (HELO mail-pa0-f45.google.com) (209.85.220.45) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Fri, 01 Aug 2014 02:01:54 +0000 Received: by mail-pa0-f45.google.com with SMTP id eu11so4788531pac.32 for ; Thu, 31 Jul 2014 19:01:51 -0700 (PDT) X-Received: by 10.68.93.65 with SMTP id cs1mr2258910pbb.52.1406858511915; Thu, 31 Jul 2014 19:01:51 -0700 (PDT) Received: from fuzzy.hsd1.wa.comcast.net. (c-50-135-131-187.hsd1.wa.comcast.net. [50.135.131.187]) by mx.google.com with ESMTPSA id qm12sm6896512pbb.15.2014.07.31.19.01.51 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 31 Jul 2014 19:01:51 -0700 (PDT) From: Bryan Hundven To: "Yann E. MORIN" Cc: crossgcc@sourceware.org, Bryan Hundven Subject: [PATCH 2/4] libc: libces are responsible for naming their threads implementation Date: Thu, 31 Jul 2014 19:01:44 -0700 Message-Id: <1406858506-4690-3-git-send-email-bryanhundven@gmail.com> In-Reply-To: <1406858506-4690-1-git-send-email-bryanhundven@gmail.com> References: <1406858506-4690-1-git-send-email-bryanhundven@gmail.com> X-IsSubscribed: yes From: "Yann E. MORIN" This will help add new implementations, such as the one in musl. Signed-off-by: "Yann E. MORIN" Signed-off-by: Bryan Hundven --- config/libc.in | 7 ++----- config/libc/eglibc.in | 3 +++ config/libc/glibc.in | 3 +++ config/libc/mingw.in | 3 +++ config/libc/none.in | 6 ++++++ config/libc/uClibc.in | 4 ++++ 6 files changed, 21 insertions(+), 5 deletions(-) diff --git a/config/libc.in b/config/libc.in index 240a01e..ba6da8f 100644 --- a/config/libc.in +++ b/config/libc.in @@ -39,13 +39,10 @@ config LIBC_SUPPORT_THREADS_WIN32 config LIBC_SUPPORT_THREADS_NONE bool +# C libraries should provide other values config THREADS string - default "nptl" if THREADS_NATIVE - default "linuxthreads" if THREADS_LT - default "win32" if THREADS_WIN32 - default "none" if THREADS_NONE || LIBC_none -# No C library, no threads! + default "none" if THREADS_NONE if ! LIBC_none diff --git a/config/libc/eglibc.in b/config/libc/eglibc.in index b677df0..e939d03 100644 --- a/config/libc/eglibc.in +++ b/config/libc/eglibc.in @@ -12,6 +12,9 @@ ## help cross-compilation support. EGLIBC also includes some embedded ports ## help (such as e500/spe) that are normally separate add-ons of GLIBC. +config THREADS + default "nptl" + choice bool prompt "eglibc version" diff --git a/config/libc/glibc.in b/config/libc/glibc.in index 5870995..2e34793 100644 --- a/config/libc/glibc.in +++ b/config/libc/glibc.in @@ -8,6 +8,9 @@ ## help The de-facto standard for Linux distributions. ## help Feature-rich, but large... Most usefull for desktop-like systems. +config THREADS + default "nptl" + choice bool prompt "glibc version" diff --git a/config/libc/mingw.in b/config/libc/mingw.in index 8c32b91..8b4d98a 100644 --- a/config/libc/mingw.in +++ b/config/libc/mingw.in @@ -7,6 +7,9 @@ ## ## help The de-facto standard for Mingw distributions. +config THREADS + default "win32" + choice bool prompt "Windows API version" diff --git a/config/libc/none.in b/config/libc/none.in index 78a0612..d587faf 100644 --- a/config/libc/none.in +++ b/config/libc/none.in @@ -11,3 +11,9 @@ ## help on the C library. ## help ## help If unsure: do *not* choose that, and use another option in the choice. + +# The no-threads is usually set in the main libc.in config file. +# But since the "none" C library does not show the threads choice, +# we have to define the no-threads value ourselves here: +config THREADS + default "none" diff --git a/config/libc/uClibc.in b/config/libc/uClibc.in index f641a6f..1529642 100644 --- a/config/libc/uClibc.in +++ b/config/libc/uClibc.in @@ -11,6 +11,10 @@ ## help Highly configurable, thus as feature-rich as you ## help need, without compromising for size. +config THREADS + default "nptl" if THREADS_NATIVE + default "linuxthreads" if THREADS_LT + if ARCH_FLOAT_SOFTFP comment "'softfp' ABI and uClibc is not entirely tested in crosstool-NG" comment "You may experience issues, although it should work just fine"