rust/src
bors 503e129328 Auto merge of #118568 - DianQK:no-builtins-symbols, r=pnkfelix
Avoid adding builtin functions to `symbols.o`

We found performance regressions in #113923. The problem seems to be that `--gc-sections` does not remove these symbols. I tested that lld removes these symbols, but ld and gold do not.

I found that `used` adds symbols to `symbols.o` at 3e202ead60/compiler/rustc_codegen_ssa/src/back/linker.rs (L1786-L1791).
The PR removes builtin functions.

Note that under LTO, ld still preserves these symbols. (lld will still remove them.)

The first commit also fixes #118559. But I think the second commit also makes sense.
2023-12-07 20:31:55 +00:00
..
bootstrap Rollup merge of #117981 - Urgau:check-cfg-remove-deprecated-syntax, r=b-naber 2023-12-06 21:52:30 +01:00
ci Auto merge of #118463 - cuviper:restore-cg_gcc-ci, r=cuviper,GuillaumeGomez 2023-12-07 09:57:44 +00:00
doc Auto merge of #116565 - Sword-Destiny:master, r=Amanieu 2023-12-07 05:22:21 +00:00
etc Auto merge of #115274 - bjorn3:tidy_improvements, r=davidtwco 2023-11-04 02:28:17 +00:00
librustdoc Auto merge of #118605 - fee1-dead-contrib:rm-rustc_host, r=compiler-errors 2023-12-06 16:00:24 +00:00
llvm-project@7738295178 Update to LLVM 17.0.5 2023-11-14 12:06:30 +01:00
rustdoc-json-types rustdoc-json: Rename typedef to type alias 2023-08-21 14:02:34 -07:00
tools Auto merge of #118568 - DianQK:no-builtins-symbols, r=pnkfelix 2023-12-07 20:31:55 +00:00
README.md
stage0.json Bump stage0 to latest 2023-11-15 19:40:51 -05:00
version Bump nightly version 2023-11-11 11:29:33 -05:00

This directory contains some source code for the Rust project, including:

  • The bootstrapping build system
  • Various submodules for tools, like cargo, tidy, etc.

For more information on how various parts of the compiler work, see the rustc dev guide.