From patchwork Tue Dec 20 08:15:49 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Marc_Poulhi=C3=A8s?= X-Patchwork-Id: 34987 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:e747:0:0:0:0:0 with SMTP id c7csp2838341wrn; Tue, 20 Dec 2022 00:17:04 -0800 (PST) X-Google-Smtp-Source: AMrXdXszsnbojUMZFw4oDrkOKBzWnBASG8zcFVGrghMo9NkgUjGfQyGSuAJmyoYAPc+VSf9wNIcc X-Received: by 2002:aa7:c3d0:0:b0:471:4ba9:f138 with SMTP id l16-20020aa7c3d0000000b004714ba9f138mr979685edr.36.1671524224079; Tue, 20 Dec 2022 00:17:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671524224; cv=none; d=google.com; s=arc-20160816; b=EUNGJrTSH/GNJj7KW0MLPpKGUkSykTEkMjkKZ3vmxxGtzP3yuciSzMALnjK8UdSRHg M/1eNDtYBv76eh4oShQiwcDXw0eamuZvB1BzT12ai2YFVYerd3xqXFB5YkOqFwGhrzcy Wz/fmKt9hjqy79VxTpEFu1Xsjs41as89uOJct1QWuxF2EgSF2jN8ra/XnySKV8j+ibwG Mi8ShG0jrdvh75t+TEHpyIN3O2grgX8xHLCpNgffWH2tpSX8cAM44qJum6ODTtuOnxUM zb6FS+Rg6Xy3m26I/jwpJ6TMax+0HWEDmcYgBmAHJ1Ao8PHx334BgUoMBS6WqiY09cfU e2eA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-transfer-encoding:mime-version:message-id:date:subject:cc :to:dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=nDoMKahL5VcZqK+ZMQUrRsWmlnKVQDP5QmXl4YOH5C0=; b=0vApRn8gSYP4xQZZfhqncDcjT2AUFpYwI42cfePYqrLnmrUM0dYGxB8mTtT7gqYx4T AFG/uEq8yk1glywxRJaCyVA/DiWfj9k1YkB1Uz4E3U6pVsH/WflWV+/LeRXixtiRR0CL NAk3IXvpZt0+g2GOKFqSYqQwMN7vn4o8t+6m8H/achw2/MLeuGVnKQcV2QVNKalk/zTI yAPM3NvwonZSuBrT43SLnLkJb2e8twVdEjRYTLLwRieoejA+/SbWGO/8o6Y9vTKT1ugJ Rp55xHaHKzt5hnn8YzwlldK/h0zK+SONsWnPyJGI4AttPcPd42hCrngHbtt5MQ8i417K XNeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=yzB9ucCF; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id f10-20020aa7d84a000000b0046b2327d140si9956403eds.334.2022.12.20.00.17.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Dec 2022 00:17:04 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=yzB9ucCF; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id D8C303858C20 for ; Tue, 20 Dec 2022 08:17:02 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D8C303858C20 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1671524222; bh=nDoMKahL5VcZqK+ZMQUrRsWmlnKVQDP5QmXl4YOH5C0=; h=To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=yzB9ucCFba+RvzFcwYFq04KYMdU9SWXGObBoDP5x8M2WgbfdklGpmJUfdCM2YW4+l uFvVQhz+oRatv9r3imirR1a9GGgMOpTGsFySRsqRYmRb4iwPMsIEB9sXA45uzZ3BM8 CV1JecHtkuBqY7xblp9KeVLOmDwKCNKCF3ODG8So= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org 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 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 To: gcc-patches@gcc.gnu.org Cc: =?utf-8?q?Marc_Poulhi=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 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 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: , X-Patchwork-Original-From: =?utf-8?q?Marc_Poulhi=C3=A8s_via_Gcc-patches?= From: =?utf-8?q?Marc_Poulhi=C3=A8s?= Reply-To: =?utf-8?q?Marc_Poulhi=C3=A8s?= 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?1752720185172638249?= X-GMAIL-MSGID: =?utf-8?q?1752720185172638249?= 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.