Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
1437559
Add -Zindirect-branch-cs-prefix (from draft PR)
Darksonn May 7, 2025
5d6ec1e
Add `-Zindirect-branch-cs-prefix` option
ojeda May 7, 2025
24c770b
aarch64: Make `outline-atomics` a known target feature
tgross35 Aug 1, 2025
566cdab
Clarify `value_path_str_with_args`.
nnethercote Aug 1, 2025
b0c36dd
Rename most of the printers.
nnethercote Aug 1, 2025
d76eef4
Simplify multiple things.
nnethercote Aug 1, 2025
070425e
Add aarch64_be-unknown-none-softfloat target
Gelbpunkt Aug 5, 2025
dfd38f0
Add comments to `Printer`.
nnethercote Aug 1, 2025
69bcd79
Move `should_truncate` from trait `Printer` to sub-trait `PrettyPrint…
nnethercote Aug 3, 2025
b8adda6
Rename some `Printer` methods.
nnethercote Aug 3, 2025
42a1042
Rename some `PrettyPrinter` methods.
nnethercote Aug 3, 2025
378dd7c
Add regression test for former ICE involving malformed meta items con…
fmease Aug 11, 2025
2563e4a
[AVR] Changed data_layout
tomtor Aug 11, 2025
db1a64c
simplify stack handling, be completely lazy
lcnr Aug 5, 2025
0b855bc
Switch to a bitflags `MacroKinds` to support macros with more than on…
joshtriplett Aug 8, 2025
d7b30be
Expand documentation of `GlobDelegation`
joshtriplett Aug 9, 2025
c81fcac
Only suggest changing `#[derive(mymacro)]` to `#[mymacro]` for attrib…
joshtriplett Aug 9, 2025
ba231db
Detect and report macro kind mismatches early, and more precisely
joshtriplett Aug 9, 2025
b74e1cb
mbe: Rename macro parsing state names to use `Bang` instead of `Not`
joshtriplett Aug 9, 2025
33ba4a2
clippy: Update for switch to `MacroKinds`
joshtriplett Aug 9, 2025
e1fc89a
rustdoc: Minimal fixes to compile with `MacroKinds`
joshtriplett Aug 9, 2025
95c651d
Remove `ONLY_HOSTS` value overrides that just set the default value a…
Kobzol Aug 12, 2025
a43def7
Rename and document `ONLY_HOSTS` in bootstrap
Kobzol Aug 12, 2025
cd79c71
Correctly handle when there are no unstable items in the documented c…
GuillaumeGomez Aug 13, 2025
dc0707a
Add another example for escaped `#` character in doctest in rustdoc book
GuillaumeGomez Aug 13, 2025
6c96c94
Add missing entry in STAGE0_MISSING_TARGETS
Gelbpunkt Aug 13, 2025
945b5df
Rollup merge of #140740 - ojeda:indirect-branch-cs-prefix, r=davidtwco
GuillaumeGomez Aug 13, 2025
2da75af
Rollup merge of #144761 - tgross35:cfg-outline-atomics, r=davidtwco
GuillaumeGomez Aug 13, 2025
e8261fb
Rollup merge of #144949 - nnethercote:more-Printer-cleanups, r=davidtwco
GuillaumeGomez Aug 13, 2025
9b5ff0e
Rollup merge of #144955 - lcnr:lazily-update-non-parent-goals, r=BoxyUwU
GuillaumeGomez Aug 13, 2025
58130ee
Rollup merge of #144962 - Gelbpunkt:aarch64_be-unknown-none-softfloat…
GuillaumeGomez Aug 13, 2025
4288e19
Rollup merge of #145153 - joshtriplett:macro-kinds-plural, r=petroche…
GuillaumeGomez Aug 13, 2025
58201d2
Rollup merge of #145241 - tomtor:avr-layout, r=nikic
GuillaumeGomez Aug 13, 2025
fe29e7b
Rollup merge of #145250 - fmease:regr-test-for-attr-meta-ice, r=jdons…
GuillaumeGomez Aug 13, 2025
0531431
Rollup merge of #145324 - Kobzol:bootstrap-host-only, r=jieyouxu
GuillaumeGomez Aug 13, 2025
f66f868
Rollup merge of #145349 - GuillaumeGomez:unstable-items-search, r=lol…
GuillaumeGomez Aug 13, 2025
630e0ed
Rollup merge of #145356 - GuillaumeGomez:doctest-escaped, r=fmease
GuillaumeGomez Aug 13, 2025
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
Prev Previous commit
Next Next commit
[AVR] Changed data_layout
  • Loading branch information
tomtor committed Aug 12, 2025
commit 2563e4a7ffe47e93c69283c14e6d660b08834cf1
6 changes: 6 additions & 0 deletions compiler/rustc_codegen_llvm/src/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,12 @@ pub(crate) unsafe fn create_module<'ll>(
target_data_layout = target_data_layout.replace("p8:128:128:128:48", "p8:128:128")
}
}
if llvm_version < (22, 0, 0) {
if sess.target.arch == "avr" {
// LLVM 22.0 updated the default layout on avr: https://github.com/llvm/llvm-project/pull/153010
target_data_layout = target_data_layout.replace("n8:16", "n8")
}
}

// Ensure the data-layout values hardcoded remain the defaults.
{
Expand Down
2 changes: 1 addition & 1 deletion compiler/rustc_target/src/spec/targets/avr_none.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ pub(crate) fn target() -> Target {
host_tools: None,
std: None,
},
data_layout: "e-P1-p:16:8-i8:8-i16:8-i32:8-i64:8-f32:8-f64:8-n8-a:8".into(),
data_layout: "e-P1-p:16:8-i8:8-i16:8-i32:8-i64:8-f32:8-f64:8-n8:16-a:8".into(),
llvm_target: "avr-unknown-unknown".into(),
pointer_width: 16,
options: TargetOptions {
Expand Down
Loading