From patchwork Sun Jul 9 04:44:38 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krister Walfridsson X-Patchwork-Id: 785870 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 3x4wkQ0bSzz9s7g for ; Sun, 9 Jul 2017 14:45:00 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="R5GM48yO"; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :date:to:subject:message-id:mime-version:content-type; q=dns; s= default; b=gkWGGlZSHa/MZYiUlVCRi1hBOXQ0mqwPV4YWLF2LUhfEDtWphUlms ks99fxOoy0mSIPwDqmFFXNZBgGCP1Um7KH/G3wj2oMSR6x/kidT6cGMl+Uh0djvp YEcXnh+u2vVT2R/edkrq+QOzDIRWsjItKzY30bwbN5JFIy0HgVZN8A= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :date:to:subject:message-id:mime-version:content-type; s= default; bh=HS4jF+gDSLbzrjPzo4HwcDRuYgw=; b=R5GM48yOurMU9L+LaqWS AnR0foGGLLyV3q9EORaRNbWY/Cyhd9JAcRFGR5d5UzJmheG+mi5pHr1HyeLHHROC dn87nt01XtuuW/2sNpqwWCCeY1hIgM/chhUa8+09b8ZZyQ3H8qUa5gBz73a+juV7 uvECdLCjTUf1fLHS+iGWd7Q= Received: (qmail 58410 invoked by alias); 9 Jul 2017 04:44:51 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 58188 invoked by uid 89); 9 Jul 2017 04:44:45 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-9.8 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, GIT_PATCH_2, GIT_PATCH_3, KAM_ASCII_DIVIDERS, RCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_SPAM, SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:1950, H*c:HHHH X-HELO: mail-lf0-f50.google.com Received: from mail-lf0-f50.google.com (HELO mail-lf0-f50.google.com) (209.85.215.50) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 09 Jul 2017 04:44:43 +0000 Received: by mail-lf0-f50.google.com with SMTP id t72so42838465lff.1 for ; Sat, 08 Jul 2017 21:44:43 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:subject:message-id:mime-version; bh=3WiBHvicIX0m7zT+X/7lnqNpXGIQQ4CMr3YfHceOgAA=; b=m98kJK3aPjCJLgDmXaMFa9zVj8oXABC5WAoMOhTyGxrYU9wLY5GJrAULzn0PWs4Nqd GMWtt4KoiWWJcYvj1Qy5gJe9Ki8i07pf6LcHI3XaCeUWhet1yO428YHgkjpKILQD/hlq oqa/c6g/7QLPS/8wBvUJCltof2rZ7eJHSfkRPh0WhiErOTvQhjpDeF55cJ2HWdxVnWhv gX3ifynhbNDimC5iZZdMGylaA/Ql3fjAtnktkdwZOMFpmR2WAtw14Fovhb/cN3mBJZBo C/BMJ4VQGaQlhqHzPaSCwBSjaGDzDTbd4qx1GKX5T7sOyGBgS/J9mRVF2MPeHFAQEYxB t7Lw== X-Gm-Message-State: AKS2vOwqfzPIijhc4Jduijf8CnH1+Ks8SHl7U0csg7k1dnwhp3IKtnDn nddFQU4bHFjNFa0k X-Received: by 10.25.94.5 with SMTP id s5mr21186017lfb.86.1499575481064; Sat, 08 Jul 2017 21:44:41 -0700 (PDT) Received: from [192.168.0.12] (c83-254-142-38.bredband.comhem.se. [83.254.142.38]) by smtp.gmail.com with ESMTPSA id m16sm1572889ljb.26.2017.07.08.21.44.39 for (version=TLS1_1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 08 Jul 2017 21:44:40 -0700 (PDT) From: Krister Walfridsson X-Google-Original-From: Krister Walfridsson Date: Sun, 9 Jul 2017 06:44:38 +0200 (CEST) To: gcc-patches@gcc.gnu.org Subject: committed: Always assume NetBSD support pthreads Message-ID: MIME-Version: 1.0 X-IsSubscribed: yes I have committed the attached patch to remove checks for obsolete NetBSD releases from the 1990s that do not support pthreads. Bootstrapped and tested on i386-unknown-netbsdelf6.1 and x86_64-unknown-netbsd6.1. /Krister 2017-07-09 Krister Walfridsson * config.gcc (*-*-netbsd*): Remove check for NetBSD versions not supporting pthreds. * config/netbsd.h (NETBSD_LIBGCC_SPEC): Always enable pthreads. Index: gcc/config.gcc =================================================================== --- gcc/config.gcc (revision 250080) +++ gcc/config.gcc (revision 250081) @@ -794,22 +794,8 @@ gas=yes gnu_ld=yes use_gcc_stdint=wrap - - # NetBSD 2.0 and later get POSIX threads enabled by default. - # Allow them to be explicitly enabled on any other version. case ${enable_threads} in - "") - case ${target} in - *-*-netbsd[2-9]* | *-*-netbsdelf[2-9]*) - thread_file='posix' - tm_defines="${tm_defines} NETBSD_ENABLE_PTHREADS" - ;; - esac - ;; - yes | posix) - thread_file='posix' - tm_defines="${tm_defines} NETBSD_ENABLE_PTHREADS" - ;; + "" | yes | posix) thread_file='posix' ;; esac # NetBSD 2.0 and later provide __cxa_atexit(), which we use by Index: gcc/config/netbsd.h =================================================================== --- gcc/config/netbsd.h (revision 250080) +++ gcc/config/netbsd.h (revision 250081) @@ -84,7 +84,6 @@ FIXME: Could eliminate the duplication here if we were allowed to use string concatenation. */ -#ifdef NETBSD_ENABLE_PTHREADS #define NETBSD_LIB_SPEC \ "%{pthread: \ %{!p: \ @@ -103,21 +102,6 @@ %{!pg:-lc}} \ %{p:-lc_p} \ %{pg:-lc_p}}}" -#else -#define NETBSD_LIB_SPEC \ - "%{posix: \ - %{!p: \ - %{!pg:-lposix}} \ - %{p:-lposix_p} \ - %{pg:-lposix_p}} \ - %{shared:-lc} \ - %{!shared: \ - %{!symbolic: \ - %{!p: \ - %{!pg:-lc}} \ - %{p:-lc_p} \ - %{pg:-lc_p}}}" -#endif #undef LIB_SPEC #define LIB_SPEC NETBSD_LIB_SPEC