Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
430d353
Drop armebv7r-none-eabi* to Tier 3
thejpster Sep 7, 2025
7eea65f
Stop linking rs{begin,end} on x86_64-*-windows-gnu
mati865 Sep 19, 2025
e99e226
Switch `dummy_bang` from `LegacyBang` to `Bang`
joshtriplett Sep 21, 2025
a1646bf
mbe: Switch dummy extension used for errors from `LegacyBang` to `Bang`
joshtriplett Sep 21, 2025
9acc63a
port `#[debugger_visualizer]` to the new attribute system
jdonszelmann Sep 18, 2025
d226e7a
Use standard attribute logic for allocator shim
nikic Sep 19, 2025
9e3f748
mbe: Simplify check_redundant_vis_repetition
joshtriplett Sep 25, 2025
f89660e
resolve: Do not finalize shadowed bindings
petrochenkov Aug 1, 2025
0374fc5
Rename `rust.use-lld` to `rust.bootstrap-override-lld`
Kobzol Sep 25, 2025
fc703ec
fix doc comments to be more standard
hkBst Sep 25, 2025
7a2c173
Add new `tyalias` intra-doc link disambiguator
GuillaumeGomez Sep 25, 2025
dba45cd
Add tests for new `tyalias` intra-doc link disambiguator
GuillaumeGomez Sep 25, 2025
62c457b
Mention `tyalias` in intra-doc link rustdoc book chapter
GuillaumeGomez Sep 25, 2025
a535c7b
Ignore more failing ui tests for GCC backend
GuillaumeGomez Sep 26, 2025
ae70e6b
Rollup merge of #145113 - petrochenkov:lessfinalize, r=lcnr
matthiaskrgr Sep 26, 2025
10b98d6
Rollup merge of #146523 - thejpster:demote-armebv7r-targets, r=jackh726
matthiaskrgr Sep 26, 2025
48884f0
Rollup merge of #146704 - jdonszelmann:port-debug-visualizer, r=petro…
matthiaskrgr Sep 26, 2025
bfd21c1
Rollup merge of #146758 - mati865:amd64_mingw_no_rs_objects, r=petroc…
matthiaskrgr Sep 26, 2025
178f50b
Rollup merge of #146778 - nikic:allocator-shim-attributes, r=jackh726
matthiaskrgr Sep 26, 2025
e497ed3
Rollup merge of #146849 - joshtriplett:macro-reduce-legacy-bang, r=pe…
matthiaskrgr Sep 26, 2025
c1ee12c
Rollup merge of #147016 - hkBst:whitespace-1, r=nnethercote
matthiaskrgr Sep 26, 2025
c0502cf
Rollup merge of #147027 - GuillaumeGomez:tyalias-disambiguator, r=lol…
matthiaskrgr Sep 26, 2025
66cfbfe
Rollup merge of #147031 - joshtriplett:mbe-opt-collect, r=lcnr
matthiaskrgr Sep 26, 2025
9d33ef3
Rollup merge of #147046 - Kobzol:bootstrap-ll, r=jieyouxu
matthiaskrgr Sep 26, 2025
69a3cac
Rollup merge of #147058 - GuillaumeGomez:ignore-more-ui-tests, r=Kobzol
matthiaskrgr Sep 26, 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
Stop linking rs{begin,end} on x86_64-*-windows-gnu
Until now, x86_64-pc-windows-gnu linked `rsbegin.o` and `rsend.o` just
like i686-pc-windows-gnu, even though they were no-ops for it.
This was likely done for the simplicity back when it was introduced.

Today the things are different and these startup/end objects harm other
features, like `build-std`. Given the demotion of i686-pc-windows-gnu
from tier 1, there is no point in hurting x86_64-pc-windows-gnu,
which remains a tier 1.

The files are still shipped in case downstream crates expect them, as in
case of the unmaintained `xargo`.
  • Loading branch information
mati865 committed Sep 19, 2025
commit 7eea65f8e0544d3e51ce383513c0108e9d02e874
3 changes: 0 additions & 3 deletions compiler/rustc_target/src/spec/base/windows_gnu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,7 @@ pub(crate) fn opts() -> TargetOptions {
binary_format: BinaryFormat::Coff,
allows_weak_linkage: false,
pre_link_args,
pre_link_objects: crt_objects::pre_mingw(),
post_link_objects: crt_objects::post_mingw(),
pre_link_objects_self_contained: crt_objects::pre_mingw_self_contained(),
post_link_objects_self_contained: crt_objects::post_mingw_self_contained(),
link_self_contained: LinkSelfContainedDefault::InferredForMingw,
late_link_args,
late_link_args_dynamic,
Expand Down
17 changes: 14 additions & 3 deletions compiler/rustc_target/src/spec/crt_objects.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,17 @@ pub(super) fn post_musl_self_contained() -> CrtObjects {
}

pub(super) fn pre_mingw_self_contained() -> CrtObjects {
new(&[
(LinkOutputKind::DynamicNoPicExe, &["crt2.o"]),
(LinkOutputKind::DynamicPicExe, &["crt2.o"]),
(LinkOutputKind::StaticNoPicExe, &["crt2.o"]),
(LinkOutputKind::StaticPicExe, &["crt2.o"]),
(LinkOutputKind::DynamicDylib, &["dllcrt2.o"]),
(LinkOutputKind::StaticDylib, &["dllcrt2.o"]),
])
}

pub(super) fn pre_i686_mingw_self_contained() -> CrtObjects {
new(&[
(LinkOutputKind::DynamicNoPicExe, &["crt2.o", "rsbegin.o"]),
(LinkOutputKind::DynamicPicExe, &["crt2.o", "rsbegin.o"]),
Expand All @@ -95,15 +106,15 @@ pub(super) fn pre_mingw_self_contained() -> CrtObjects {
])
}

pub(super) fn post_mingw_self_contained() -> CrtObjects {
pub(super) fn post_i686_mingw_self_contained() -> CrtObjects {
all("rsend.o")
}

pub(super) fn pre_mingw() -> CrtObjects {
pub(super) fn pre_i686_mingw() -> CrtObjects {
all("rsbegin.o")
}

pub(super) fn post_mingw() -> CrtObjects {
pub(super) fn post_i686_mingw() -> CrtObjects {
all("rsend.o")
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
use crate::spec::{Cc, FramePointer, LinkerFlavor, Lld, RustcAbi, Target, TargetMetadata, base};
use crate::spec::{
Cc, FramePointer, LinkerFlavor, Lld, RustcAbi, Target, TargetMetadata, base, crt_objects,
};

pub(crate) fn target() -> Target {
let mut base = base::windows_gnu::opts();
Expand All @@ -15,6 +17,10 @@ pub(crate) fn target() -> Target {
&["-m", "i386pe", "--large-address-aware"],
);
base.add_pre_link_args(LinkerFlavor::Gnu(Cc::Yes, Lld::No), &["-Wl,--large-address-aware"]);
base.pre_link_objects = crt_objects::pre_i686_mingw();
base.post_link_objects = crt_objects::post_i686_mingw();
base.pre_link_objects_self_contained = crt_objects::pre_i686_mingw_self_contained();
base.post_link_objects_self_contained = crt_objects::post_i686_mingw_self_contained();

Target {
llvm_target: "i686-pc-windows-gnu".into(),
Expand Down
2 changes: 2 additions & 0 deletions src/bootstrap/src/core/build_steps/compile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -895,6 +895,8 @@ impl Step for StartupObjects {
fn run(self, builder: &Builder<'_>) -> Vec<(PathBuf, DependencyType)> {
let for_compiler = self.compiler;
let target = self.target;
// Even though no longer necessary on x86_64, they are kept for now to
// avoid potential issues in downstream crates.
if !target.is_windows_gnu() {
return vec![];
}
Expand Down
Loading