Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rollup of 8 pull requests #122182

Merged
merged 35 commits into from
Mar 8, 2024
Merged
Changes from 2 commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
547f3ce
fixing error std::fs::read_to_string example documentation
haydonryan Dec 11, 2023
6e9ca48
Updating fs::read example to remove SocketAddress
haydonryan Dec 11, 2023
f4b65f5
Docs for std::ptr::slice_from_raw_parts
kornelski Feb 3, 2024
9539feb
Update library/std/src/fs.rs
haydonryan Feb 15, 2024
b5e1ca3
Update library/std/src/fs.rs
haydonryan Feb 15, 2024
93fa857
Add asm label support to AST and HIR
nbdd0121 Dec 25, 2023
040ab7d
Add asm label support to THIR
nbdd0121 Dec 25, 2023
7152993
Use slice.chain(option) for Successors
nbdd0121 Dec 26, 2023
b044aaa
Change InlineAsm to allow multiple targets instead
nbdd0121 Dec 26, 2023
3b1dd1b
Implement asm goto in MIR and MIR lowering
nbdd0121 Dec 26, 2023
27e6ee1
Add callbr support to LLVM wrapper
nbdd0121 Dec 26, 2023
5e4fd6b
Implement asm goto for LLVM and GCC backend
nbdd0121 Dec 27, 2023
5e4e3d7
Ensure asm noreturn works with labels
nbdd0121 Dec 26, 2023
31f078e
Forbid asm unwind to work with labels
nbdd0121 Dec 26, 2023
4677a71
Add tests for asm goto
nbdd0121 Dec 27, 2023
84bc9e9
Add asm-goto to unstable book
nbdd0121 Dec 28, 2023
626a5f5
Add assertions and clarify asm-goto with noreturn
nbdd0121 Feb 24, 2024
8212fc5
Fix quadratic behavior of repeated vectored writes
blyxxyz Mar 3, 2024
d756375
Add new Tier-3 target: `loongarch64-unknown-linux-musl`
heiher Jun 5, 2023
95e3847
tests: Add loongarch64-unknown-linux-musl target
heiher Mar 1, 2024
36d271f
Update src/doc/rustc/src/platform-support.md
wesleywiser Mar 5, 2024
cc38c1e
Add #[inline] to BTreeMap::new constructor
Urgau Mar 6, 2024
0ee0f29
Bless aarch64 asm test
nbdd0121 Feb 25, 2024
ef626d7
PassWrapper: update for llvm/llvm-project@a3319371970b
durin42 Mar 7, 2024
cf299dd
Make TAITs capture all higher-ranked lifetimes in scope
compiler-errors Mar 6, 2024
99df5a2
Simplify ImplTraitContext
compiler-errors Mar 6, 2024
74d5bbb
Rename some functions to represent their generalized behavior
compiler-errors Mar 6, 2024
876847b
Rollup merge of #118623 - haydonryan:master, r=workingjubilee
matthiaskrgr Mar 8, 2024
d774fbe
Rollup merge of #119365 - nbdd0121:asm-goto, r=Amanieu
matthiaskrgr Mar 8, 2024
b1aca86
Rollup merge of #120608 - kornelski:slice-ptr-doc, r=cuviper
matthiaskrgr Mar 8, 2024
7e6a6d0
Rollup merge of #121832 - heiher:loongarch64-musl, r=wesleywiser
matthiaskrgr Mar 8, 2024
f586a79
Rollup merge of #121938 - blyxxyz:quadratic-vectored-write, r=Amanieu
matthiaskrgr Mar 8, 2024
d16c55d
Rollup merge of #122099 - Urgau:btreemap-inline-new, r=Amanieu
matthiaskrgr Mar 8, 2024
d4d18d2
Rollup merge of #122103 - compiler-errors:taits-capture-everything, r…
matthiaskrgr Mar 8, 2024
0d235ef
Rollup merge of #122143 - durin42:llvm-19-compression-options, r=work…
matthiaskrgr Mar 8, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -451,14 +451,30 @@ extern "C" LLVMTargetMachineRef LLVMRustCreateTargetMachine(
Options.ObjectFilenameForDebug = OutputObjFile;
}
if (!strcmp("zlib", DebugInfoCompression) && llvm::compression::zlib::isAvailable()) {
#if LLVM_VERSION_GE(19, 0)
Options.MCOptions.CompressDebugSections = DebugCompressionType::Zlib;
#else
Options.CompressDebugSections = DebugCompressionType::Zlib;
#endif
} else if (!strcmp("zstd", DebugInfoCompression) && llvm::compression::zstd::isAvailable()) {
#if LLVM_VERSION_GE(19, 0)
Options.MCOptions.CompressDebugSections = DebugCompressionType::Zstd;
#else
Options.CompressDebugSections = DebugCompressionType::Zstd;
#endif
} else if (!strcmp("none", DebugInfoCompression)) {
#if LLVM_VERSION_GE(19, 0)
Options.MCOptions.CompressDebugSections = DebugCompressionType::None;
#else
Options.CompressDebugSections = DebugCompressionType::None;
#endif
}

#if LLVM_VERSION_GE(19, 0)
Options.MCOptions.X86RelaxRelocations = RelaxELFRelocations;
#else
Options.RelaxELFRelocations = RelaxELFRelocations;
#endif
Options.UseInitArray = UseInitArray;

#if LLVM_VERSION_LT(17, 0)
Expand Down
Loading