From patchwork Tue Nov 22 09:41:28 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Martin_Li=C5=A1ka?= X-Patchwork-Id: 24223 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2102886wrr; Tue, 22 Nov 2022 01:42:12 -0800 (PST) X-Google-Smtp-Source: AA0mqf76nHOKMnPR69zX1C1wLpOxkr8e3oLOYJdBRuOMg+9u+CM8sZay2Zi5n3/OgfB0WaZqp/Z+ X-Received: by 2002:a17:906:1412:b0:7a0:3313:a775 with SMTP id p18-20020a170906141200b007a03313a775mr8512896ejc.474.1669110132092; Tue, 22 Nov 2022 01:42:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669110132; cv=none; d=google.com; s=arc-20160816; b=sLSEReyIOO44ryDPkXYYdx+ct1J/lwXBvEYQ4zXuFNBgmtaP4sQiwsS/0wlJQteR45 XDn0QUzMTekzavkrAnmS++gbJ1TQzFHFdHA5PNMdUA83sdGlHbvueqAtllATuc3tqpIq wFUCbjVbfg3FiZNVYYNEsdcjPNJrdyfyWnc36Un528MHuD6xsxzxmpjo2PyAMFhy/B+l 1UmRdgfXagyLOrFgtXTA/aaQvQBf2PkHjXNIEIInOECsz7WV5IgASLVQmhF0yw6Ew/KD OMYuCE7UIFgUf8J6lVeS5NV06EOTqfRMJ6Vqzlwrhrrah1ym/MNKc0zyNhT74EBiodss KiBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding:cc :content-language:to:subject:from:user-agent:mime-version:date :message-id:dkim-signature:dkim-signature:dmarc-filter:delivered-to; bh=rgAFvaIdc64aPmP+yWT5NMN/t4pQB6ESx3zeBnrnqMA=; b=pPKAsVwzyODk/p43J5uhXz7Qn2UuyBI6MKqG8/gjcsiZwmSVtvOgfvfqegFP6t+3uG sttzVl10E6dvtQLArNW3UUhvcovut2wvFgx/3vuQsXfsoUnzg/v4yz7QHb7uABmIPyG7 4IYxLSRN28A72NxIHG/4FGwwTiOG8fBUUa8m42pmY0ET4e+Y15x3ZdSjnT/ORtRtvouR NFY4hKSWaQEj/kebJ92rpe1J+y6hyMAO0EkL89uCD0wctbUJizvZrbk/cbzQpFfrpral anmfDeki/i2kh6vNkOP2aowKdSuRFm0NBXCHuhpab9WZSRVKhJupddEMaRz1H0cwra6G p3Mw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=Q6KCCTfh; dkim=neutral (no key) header.i=@gcc.gnu.org; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id a26-20020a50ff1a000000b00461dca37cd0si9804576edu.126.2022.11.22.01.42.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Nov 2022 01:42:12 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=Q6KCCTfh; dkim=neutral (no key) header.i=@gcc.gnu.org; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id A3C533858C50 for ; Tue, 22 Nov 2022 09:42:10 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by sourceware.org (Postfix) with ESMTPS id B4A313858C20 for ; Tue, 22 Nov 2022 09:41:29 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org B4A313858C20 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=suse.cz Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=suse.cz Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 90E8121D65; Tue, 22 Nov 2022 09:41:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1669110088; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=rgAFvaIdc64aPmP+yWT5NMN/t4pQB6ESx3zeBnrnqMA=; b=Q6KCCTfhl4iS1eO5XEZUkcsNOVUgsDsmvmZzsnRitAmK4gTaBWFIVFYDtEKCtfhHGKIkz9 8pK6czm1P291EILiu3O9XKBJwt3rWxHbbC5tZ+bDCTqAQxTEDsyFcHsusiDyWgvGTb1sBy /XKfFm78td+xA1YGczJWbyDtngd7StY= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1669110088; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=rgAFvaIdc64aPmP+yWT5NMN/t4pQB6ESx3zeBnrnqMA=; b=yzD1ubAXah95L01eT5yzmJqlu9Rlh0/l6doS0JHiaa9GSZHsJ/kEjTY3zw0uAWG6bTbM9x TgKmBMj9VAjvmgDQ== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 79A2213AA1; Tue, 22 Nov 2022 09:41:28 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id hl+aHEiZfGPGQQAAMHmgww (envelope-from ); Tue, 22 Nov 2022 09:41:28 +0000 Message-ID: Date: Tue, 22 Nov 2022 10:41:28 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.0 From: =?utf-8?q?Martin_Li=C5=A1ka?= Subject: [PATCH] d: respect --enable-link-mutex configure option To: gcc-patches@gcc.gnu.org Content-Language: en-US Cc: Iain Buclaw X-Spam-Status: No, score=-11.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, SPF_HELO_NONE, SPF_SOFTFAIL, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750188825968551149?= X-GMAIL-MSGID: =?utf-8?q?1750188825968551149?= I noticed the option is ignored because @DO_LINK_MUTEX@ is not defined in d/Make-lang.in. Tested locally before and after the patch. Ready to be installed? Thanks, Martin gcc/ChangeLog: * Makefile.in: Set DO_LINK_MUTEX. gcc/d/ChangeLog: * Make-lang.in: Use it as $DO_LINK_MUTEX. --- gcc/Makefile.in | 1 + gcc/d/Make-lang.in | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/gcc/Makefile.in b/gcc/Makefile.in index 5ad638f59d8..c57d62229ee 100644 --- a/gcc/Makefile.in +++ b/gcc/Makefile.in @@ -272,6 +272,7 @@ COMPILER += $(CET_HOST_FLAGS) NO_PIE_CFLAGS = @NO_PIE_CFLAGS@ NO_PIE_FLAG = @NO_PIE_FLAG@ +DO_LINK_MUTEX = @DO_LINK_MUTEX@ # We don't want to compile the compilers with -fPIE, it make PCH fail. COMPILER += $(NO_PIE_CFLAGS) diff --git a/gcc/d/Make-lang.in b/gcc/d/Make-lang.in index 6f9b2e5c26a..984b1d63dcb 100644 --- a/gcc/d/Make-lang.in +++ b/gcc/d/Make-lang.in @@ -70,7 +70,7 @@ DPOSTCOMPILE = @mv $(@D)/$(DEPDIR)/$(*F).TPo $(@D)/$(DEPDIR)/$(*F).Po DLINKER = $(GDC) $(NO_PIE_FLAG) -lstdc++ # Like LINKER, but use a mutex for serializing front end links. -ifeq (@DO_LINK_MUTEX@,true) +ifeq ($(DO_LINK_MUTEX),true) DLLINKER = $(SHELL) $(srcdir)/lock-and-run.sh linkfe.lck $(DLINKER) else DLLINKER = $(DLINKER)