diff options
| author | bors <bors@rust-lang.org> | 2025-05-24 21:00:10 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2025-05-24 21:00:10 +0000 |
| commit | 3d86494a0d0131c32eb15e3a4b685707b9ff000d (patch) | |
| tree | b19c09c14261a26eed35a68a5a6218e286fce343 /compiler/rustc_codegen_gcc | |
| parent | 5e16c662062fd6dee91f0fe2a1580483488d80cf (diff) | |
| parent | 7cd749deff558e95202b336c0744f625e725fd41 (diff) | |
| download | rust-3d86494a0d0131c32eb15e3a4b685707b9ff000d.tar.gz rust-3d86494a0d0131c32eb15e3a4b685707b9ff000d.zip | |
Auto merge of #141518 - GuillaumeGomez:rollup-ivjep2j, r=GuillaumeGomez
Rollup of 6 pull requests Successful merges: - rust-lang/rust#140066 (Stabilize `<[T; N]>::as_mut_slice` as `const`) - rust-lang/rust#141105 (additional edge cases tests for `path.rs` 🧪 ) - rust-lang/rust#141487 (Update askama to `0.14.0`) - rust-lang/rust#141498 (Use C-string literals to reduce boilerplate) - rust-lang/rust#141505 (rename internal panicking::try to catch_unwind) - rust-lang/rust#141511 (Cleanup CodegenFnAttrFlags) r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'compiler/rustc_codegen_gcc')
| -rw-r--r-- | compiler/rustc_codegen_gcc/src/consts.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_gcc/src/consts.rs b/compiler/rustc_codegen_gcc/src/consts.rs index 033afc0f8fb..8aed04c836a 100644 --- a/compiler/rustc_codegen_gcc/src/consts.rs +++ b/compiler/rustc_codegen_gcc/src/consts.rs @@ -154,7 +154,7 @@ impl<'gcc, 'tcx> StaticCodegenMethods for CodegenCx<'gcc, 'tcx> { // TODO(antoyo): set link section. } - if attrs.flags.contains(CodegenFnAttrFlags::USED) + if attrs.flags.contains(CodegenFnAttrFlags::USED_COMPILER) || attrs.flags.contains(CodegenFnAttrFlags::USED_LINKER) { self.add_used_global(global.to_rvalue()); |
