diff options
author | Arthur Cohen <arthur.cohen@embecosm.com> | 2023-03-14 17:28:54 +0100 |
---|---|---|
committer | CohenArthur <arthur.cohen@embecosm.com> | 2023-03-15 10:34:27 +0000 |
commit | 7cd4f74e3d485202a1433d487adbce43d271ebe5 (patch) | |
tree | 68fc924738fe6aab4936b96cb833ea9b4e132f1c /gcc/rust | |
parent | 1ff171adfdca213d285d56a1beec23c81bc4bcdb (diff) | |
download | gcc-7cd4f74e3d485202a1433d487adbce43d271ebe5.zip gcc-7cd4f74e3d485202a1433d487adbce43d271ebe5.tar.gz gcc-7cd4f74e3d485202a1433d487adbce43d271ebe5.tar.bz2 |
gccrs: Rename compiler proper
ChangeLog:
* README.md (process): Rename `rust1` to `crab1` in examples.
gcc/rust/ChangeLog:
* Make-lang.in: Rename `rust1` to `crab1`.
* config-lang.in: Likewise.
* lang-specs.h: Likewise.
* rustspec.cc (lang_specific_driver): Likewise.
Diffstat (limited to 'gcc/rust')
-rw-r--r-- | gcc/rust/Make-lang.in | 10 | ||||
-rw-r--r-- | gcc/rust/config-lang.in | 2 | ||||
-rw-r--r-- | gcc/rust/lang-specs.h | 2 | ||||
-rw-r--r-- | gcc/rust/rustspec.cc | 4 |
4 files changed, 9 insertions, 9 deletions
diff --git a/gcc/rust/Make-lang.in b/gcc/rust/Make-lang.in index c721089..f7648fe 100644 --- a/gcc/rust/Make-lang.in +++ b/gcc/rust/Make-lang.in @@ -33,9 +33,9 @@ GCCRS_INSTALL_NAME := $(shell echo gccrs|sed '$(program_transform_name)') GCCRS_TARGET_INSTALL_NAME := $(target_noncanonical)-$(shell echo gccrs|sed '$(program_transform_name)') # Define the names for selecting rust in LANGUAGES. -rust: rust1$(exeext) +rust: crab1$(exeext) -rust.serial = rust1$(exeext) +rust.serial = crab1$(exeext) # Tell GNU make to ignore files by these names if they exist. .PHONY: rust @@ -177,8 +177,8 @@ 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) $(rust.prev) +# The compiler itself is called crab1 +crab1$(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) @@ -285,7 +285,7 @@ rust.uninstall: selftest-rust: s-selftest-rust RUST_SELFTEST_FLAGS = -xrust -frust-incomplete-and-experimental-compiler-do-not-use $(SELFTEST_FLAGS) -RUST_SELFTEST_DEPS = rust1$(exeext) $(SELFTEST_DEPS) +RUST_SELFTEST_DEPS = crab1$(exeext) $(SELFTEST_DEPS) # Run the rust selftests s-selftest-rust: $(RUST_SELFTEST_DEPS) diff --git a/gcc/rust/config-lang.in b/gcc/rust/config-lang.in index 89055be..b1e3a9d 100644 --- a/gcc/rust/config-lang.in +++ b/gcc/rust/config-lang.in @@ -25,7 +25,7 @@ # compilers - value to add to $(COMPILERS) language="rust" -compilers="rust1\$(exeext)" +compilers="crab1\$(exeext)" build_by_default="no" diff --git a/gcc/rust/lang-specs.h b/gcc/rust/lang-specs.h index 366eefc..18a5a43 100644 --- a/gcc/rust/lang-specs.h +++ b/gcc/rust/lang-specs.h @@ -22,5 +22,5 @@ {".rs", "@rust", 0, 1, 0}, {"@rust", - "rust1 %i %(cc1_options) %{I*} %{L*} %D %{!fsyntax-only:%(invoke_as)}", 0, 1, + "crab1 %i %(cc1_options) %{I*} %{L*} %D %{!fsyntax-only:%(invoke_as)}", 0, 1, 0}, diff --git a/gcc/rust/rustspec.cc b/gcc/rust/rustspec.cc index c89e33b..68974f2 100644 --- a/gcc/rust/rustspec.cc +++ b/gcc/rust/rustspec.cc @@ -159,8 +159,8 @@ lang_specific_driver (struct cl_decoded_option **in_decoded_options, } /* If we didn't see a -o option, add one. This is because we need - the driver to pass all .rs files to rust1. Without a -o option the - driver will invoke rust1 separately for each input file. FIXME: + the driver to pass all .rs files to crab1. Without a -o option the + driver will invoke crab1 separately for each input file. FIXME: This should probably use some other interface to force the driver to set combine_inputs. */ if (!saw_opt_o) |