From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 7871) id 5C4B73858C52; Tue, 20 Dec 2022 08:12:08 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5C4B73858C52 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1671523928; bh=B2ef15CQV4wm0vsvDqcwRf+Pq8LXjFK7z5SxnGINq7Q=; h=From:To:Subject:Date:From; b=JaECAjF0kfQ2zsIkMGY2pxihCKxOhcT8N0uoHq5fA51hrENnDXnJCCgroMISnJPo0 vGtPlpvsv30wUfnLISftOT5a17munQVEQc7uKofnSRSJiNEwMw4Y9f3bTYQ/sI+XzA Tbg+nWXLw+XeCD1OUXB1SIfIO4/CKZS+saMc6Rwk= MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" From: Marc Poulhi?s To: gcc-cvs@gcc.gnu.org Subject: [gcc r13-4804] rust: fix link serialization [PR108113] X-Act-Checkin: gcc X-Git-Author: =?utf-8?q?Marc_Poulhi=C3=A8s?= X-Git-Refname: refs/heads/master X-Git-Oldrev: 1060cd2ad00b5174f4f8ef8ca3d8c283e321ffca X-Git-Newrev: 02c031088ac0bbf716aec52e027d615b7a5a572b Message-Id: <20221220081208.5C4B73858C52@sourceware.org> Date: Tue, 20 Dec 2022 08:12:08 +0000 (GMT) List-Id: https://gcc.gnu.org/g:02c031088ac0bbf716aec52e027d615b7a5a572b commit r13-4804-g02c031088ac0bbf716aec52e027d615b7a5a572b Author: Marc Poulhiès Date: Wed Dec 14 21:29:13 2022 +0100 rust: fix link serialization [PR108113] 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 Diff: --- 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.