Message ID | 20220131133813.1142801-1-shorne@gmail.com |
---|---|
State | New |
Headers | show
Return-Path: <gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.a=rsa-sha256 header.s=default header.b=UnZcV57F; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=<UNKNOWN>) Received: from sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4JnTfr5nGwz9s8q for <incoming@patchwork.ozlabs.org>; Tue, 1 Feb 2022 00:38:43 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id AB378385801F for <incoming@patchwork.ozlabs.org>; Mon, 31 Jan 2022 13:38:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AB378385801F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1643636320; bh=x/K+F52w2BErx+IjTpBaAmIyz1YSpEe2UQiKHBDQPGs=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=UnZcV57F1GtIKiqKjVhCgIdqNu+7lzQ2d78b7TBtLeARiNwt9V6gDo+RJoqxij54t FiXDSV+Ccprek6E02ribLrFFUThxNo86LYlIOkafG4j15Xaln55VE/pOp9RsiRFAwU ab6A3WR0CIEFJD8h5Ai7XPprvTaOJoZJX36Zg20w= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-pl1-x634.google.com (mail-pl1-x634.google.com [IPv6:2607:f8b0:4864:20::634]) by sourceware.org (Postfix) with ESMTPS id D7FEB3858D28 for <gcc-patches@gcc.gnu.org>; Mon, 31 Jan 2022 13:38:19 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org D7FEB3858D28 Received: by mail-pl1-x634.google.com with SMTP id j16so12346098plx.4 for <gcc-patches@gcc.gnu.org>; Mon, 31 Jan 2022 05:38:19 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=x/K+F52w2BErx+IjTpBaAmIyz1YSpEe2UQiKHBDQPGs=; b=3XIqo3aP03Kodc4EtEx9ul105txE/UYJd9NZZn8PS47QPuliaj2XuxZkfqoseEtJ9i tikie6eCfGIouH3gWn+3k+FSliHBpKjol+cbNIdBD2K2SgVUqE1YObRjTdd2hzc9QbFx yzHxpTOXP/bGstmM+IU0c+fY0QPiKVKrsqzZ/AtoxcMdMD1cXW4WbPy/r3KkedA5FFyJ DU1hWvUfD8jEmYuUVsoXM/McAQSgLLfrQZG4KsimaKt4o7b9RNQmITmX0OFilgjBR1/Z nVcFCmYcmoSsoyaNHk+rXHLj0HA+UVAmRt4V/3RvpzcI3oSYI2duWAh6cpvFjyi9cz5a dEMA== X-Gm-Message-State: AOAM533gosiNkN+NaO5SCKmNDD8TMStOqdUwL8F5Rh532YFMRpkWchDG 9LAcm16dIhT9uipMjeqduo2x3ztIIwdD5g== X-Google-Smtp-Source: ABdhPJzgIYyF5PgIn6yzVvrGSSmP9Y+EB7uVu8SE/7Name7zPY21j7CtXZ7jiCRSuWojtiG0Aizo2w== X-Received: by 2002:a17:902:70cb:: with SMTP id l11mr20611189plt.128.1643636298398; Mon, 31 Jan 2022 05:38:18 -0800 (PST) Received: from localhost ([2409:10:24a0:4700:e8ad:216a:2a9d:6d0c]) by smtp.gmail.com with ESMTPSA id q15sm11464306pjj.19.2022.01.31.05.38.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 31 Jan 2022 05:38:17 -0800 (PST) To: GCC patches <gcc-patches@gcc.gnu.org> Subject: [PATCH] gcc: define _REENTRANT for OpenRISC when -pthread is passed Date: Mon, 31 Jan 2022 22:38:13 +0900 Message-Id: <20220131133813.1142801-1-shorne@gmail.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-10.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> From: Stafford Horne via Gcc-patches <gcc-patches@gcc.gnu.org> Reply-To: Stafford Horne <shorne@gmail.com> Cc: Bernd Kuhls <bernd.kuhls@t-online.de>, Openrisc <openrisc@lists.librecores.org> Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org Sender: "Gcc-patches" <gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org> |
Series |
gcc: define _REENTRANT for OpenRISC when -pthread is passed
|
expand
|
diff --git a/gcc/config/or1k/linux.h b/gcc/config/or1k/linux.h index 52909af41a6..80f77c72232 100644 --- a/gcc/config/or1k/linux.h +++ b/gcc/config/or1k/linux.h @@ -32,6 +32,8 @@ #undef MUSL_DYNAMIC_LINKER #define MUSL_DYNAMIC_LINKER "/lib/ld-musl-or1k.so.1" +#define CPP_SPEC "%{pthread:-D_REENTRANT}" + #undef LINK_SPEC #define LINK_SPEC "%{h*} \ %{static:-Bstatic} \