From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gandi.kataplop.net (gandi.kataplop.net [46.226.111.114]) by sourceware.org (Postfix) with ESMTPS id BAC713858CDA for ; Tue, 20 Dec 2022 08:16:17 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org BAC713858CDA Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=kataplop.net Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=kataplop.net DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kataplop.net; s=rsa1; h=Content-Transfer-Encoding:Content-Type:MIME-Version :Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=nDoMKahL5VcZqK+ZMQUrRsWmlnKVQDP5QmXl4YOH5C0=; b=WMHgKOuLvkbgRkhepxviunoDRR 2JseJx6dl/voTTxCTJ4X7RF083A7ZyfAQCrI4ylBDhfng8UZyDNnso7fSzckTCkuHp9PAemRR3V7u HsXjIhKHUIq7pPoldJM2QCwSxZz6BfHJwsMXq/ZNKp9SZFEf944GE/6yOMU3cSY2w4TY=; Received: from [176.191.105.132] (helo=arrakis.kataplop.net) by gandi.kataplop.net with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1p7XnJ-0002Nm-08; Tue, 20 Dec 2022 09:16:13 +0100 From: =?UTF-8?q?Marc=20Poulhi=C3=A8s?= To: gcc-patches@gcc.gnu.org Cc: =?UTF-8?q?Marc=20Poulhi=C3=A8s?= Subject: [COMMITTED] rust: fix link serialization [PR108113] Date: Tue, 20 Dec 2022 09:15:49 +0100 Message-Id: <20221220081549.339006-1-dkm@kataplop.net> X-Mailer: git-send-email 2.39.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam_score: -1.0 X-Spam_bar: - X-Spam-Status: No, score=-9.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,GIT_PATCH_0,SPF_HELO_NONE,SPF_PASS,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 List-Id: The Make-lang.in was missing the link serialization support. PR rust/108113 gcc/rust * Make-lang.in (rust.serial): New variable. (rust1$(exeext)): Depend on $(rust.prev). Call LINK_PROGRESS. Signed-off-by: Marc Poulhiès --- Already reviewed and ACKed by Jakub: https://github.com/Rust-GCC/gccrs/pull/1704 bootstrapped on x86_64-linux with --enable-link-serialization=1 --enable-languages=c,c++,rust,lto. Committed on master. gcc/rust/Make-lang.in | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/rust/Make-lang.in b/gcc/rust/Make-lang.in index 681ac7b3fee..713582cfe0c 100644 --- a/gcc/rust/Make-lang.in +++ b/gcc/rust/Make-lang.in @@ -35,6 +35,8 @@ GCCRS_TARGET_INSTALL_NAME := $(target_noncanonical)-$(shell echo gccrs|sed '$(pr # Define the names for selecting rust in LANGUAGES. rust: rust1$(exeext) +rust.serial = rust1$(exeext) + # Tell GNU make to ignore files by these names if they exist. .PHONY: rust @@ -163,9 +165,11 @@ RUST_ALL_OBJS = $(GRS_OBJS) $(RUST_TARGET_OBJS) rust_OBJS = $(RUST_ALL_OBJS) rust/rustspec.o # The compiler itself is called rust1 (formerly grs1) -rust1$(exeext): $(RUST_ALL_OBJS) attribs.o $(BACKEND) $(LIBDEPS) +rust1$(exeext): $(RUST_ALL_OBJS) attribs.o $(BACKEND) $(LIBDEPS) $(rust.prev) + @$(call LINK_PROGRESS,$(INDEX.rust),start) +$(LLINKER) $(ALL_LINKERFLAGS) $(LDFLAGS) -o $@ \ $(RUST_ALL_OBJS) attribs.o $(BACKEND) $(LIBS) $(BACKENDLIBS) + @$(call LINK_PROGRESS,$(INDEX.rust),end) # Build hooks. -- 2.39.0