Skip to content

Sync from rust 2025/07/04 #735

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

Merged
merged 23 commits into from
Jul 18, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
b9382e9
Implement `simd_round_ties_even` for miri, cg_clif and cg_gcc
sayantn Jun 5, 2025
56af662
Merge commit 'b7091eca6d8eb0fe88b58cc9a7aec405d8de5b85' into subtree-…
GuillaumeGomez Jun 28, 2025
5a29ddd
Remove unwanted semi-colon in `rustc_codegen_gcc`
GuillaumeGomez Jun 28, 2025
2359b6b
Fix signature of `filter_landing_pad`
GuillaumeGomez Jun 28, 2025
6e63599
give Pointer::into_parts a more scary name and offer a safer alternative
RalfJung Jun 28, 2025
a7715a4
Remove `()` returned value
GuillaumeGomez Jun 28, 2025
8c45692
Rollup merge of #142078 - sayantn:more-intrinsics, r=workingjubilee
GuillaumeGomez Jun 29, 2025
f1d6f48
Stop backends from needing to support nullary intrinsics
oli-obk Jun 21, 2025
609a8ab
Merge commit '4b5c44b14166083eef8d71f15f5ea1f53fc976a0' into subtree-…
GuillaumeGomez Jun 30, 2025
43e9b04
Auto merge of #143239 - GuillaumeGomez:subtree-update_cg_gcc_2025-06-…
bors Jun 30, 2025
7d904ae
Rollup merge of #143140 - RalfJung:ptr-into-parts, r=oli-obk
matthiaskrgr Jun 30, 2025
44b7484
Auto merge of #143254 - matthiaskrgr:rollup-7x8bxek, r=matthiaskrgr
bors Jun 30, 2025
a0e7630
Merge branch 'master' into sync_from_rust_2025_07_04
antoyo Jul 4, 2025
312dcd7
Update to nightly-2025-07-04
antoyo Jul 4, 2025
0bb092a
Fix building the sysroot
antoyo Jul 12, 2025
1954034
Comment test that cannot be fixed currently
antoyo Jul 12, 2025
56a82a2
Fix empty backtrace
antoyo Jul 13, 2025
623609e
Ignore failing test
antoyo Jul 13, 2025
b01bbe0
Fix no-f16-f128 feature name
antoyo Jul 13, 2025
b0ab2bf
Fix LTO test
antoyo Jul 13, 2025
83fbcab
Fix warnings in tests
antoyo Jul 16, 2025
ecd958f
Fix LTO errors
antoyo Jul 16, 2025
4d16951
Comment some tests in the m68k CI because we cannot run programs on a…
antoyo Jul 18, 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
42 changes: 24 additions & 18 deletions .github/workflows/m68k.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,16 +82,20 @@ jobs:
- name: Build sample project with target defined as JSON spec
run: |
./y.sh prepare --only-libcore --cross
./y.sh build --sysroot --features compiler_builtins/no-f16-f128 --target-triple m68k-unknown-linux-gnu --target ${{ github.workspace }}/target_specs/m68k-unknown-linux-gnu.json
./y.sh build --sysroot --features compiler-builtins-no-f16-f128 --target-triple m68k-unknown-linux-gnu --target ${{ github.workspace }}/target_specs/m68k-unknown-linux-gnu.json
CG_RUSTFLAGS="-Clinker=m68k-unknown-linux-gnu-gcc" ./y.sh cargo build --manifest-path=./tests/hello-world/Cargo.toml --target ${{ github.workspace }}/target_specs/m68k-unknown-linux-gnu.json
./y.sh clean all

- name: Build
run: |
./y.sh prepare --only-libcore --cross
./y.sh build --sysroot --features compiler_builtins/no-f16-f128 --target-triple m68k-unknown-linux-gnu
./y.sh build --sysroot --features compiler-builtins-no-f16-f128 --target-triple m68k-unknown-linux-gnu
./y.sh test --mini-tests --target-triple m68k-unknown-linux-gnu
CG_GCC_TEST_TARGET=m68k-unknown-linux-gnu ./y.sh test --cargo-tests --target-triple m68k-unknown-linux-gnu
# FIXME: since https://github.com/rust-lang/rust/pull/140809, we cannot run programs for architectures not
# supported by the object crate, since this adds a dependency on symbols.o for the panic runtime.
# And as such, a wrong order of the object files in the linker command now fails with an undefined reference
# to some symbols like __rustc::rust_panic.
#CG_GCC_TEST_TARGET=m68k-unknown-linux-gnu ./y.sh test --cargo-tests --target-triple m68k-unknown-linux-gnu
./y.sh clean all

- name: Prepare dependencies
Expand All @@ -100,21 +104,23 @@ jobs:
git config --global user.name "User"
./y.sh prepare --cross

- name: Run tests
run: |
./y.sh test --target-triple m68k-unknown-linux-gnu --release --clean --build-sysroot --sysroot-features compiler_builtins/no-f16-f128 ${{ matrix.commands }}

- name: Run Hello World!
run: |
./y.sh build --target-triple m68k-unknown-linux-gnu

vm_dir=$(pwd)/vm
cd tests/hello-world
CG_RUSTFLAGS="-Clinker=m68k-unknown-linux-gnu-gcc" ../../y.sh cargo build --target m68k-unknown-linux-gnu
sudo cp target/m68k-unknown-linux-gnu/debug/hello_world $vm_dir/home/
sudo chroot $vm_dir qemu-m68k-static /home/hello_world > hello_world_stdout
expected_output="40"
test $(cat hello_world_stdout) == $expected_output || (echo "Output differs. Actual output: $(cat hello_world_stdout)"; exit 1)
# FIXME: We cannot run programs for architectures not supported by the object crate. See comment above.
#- name: Run tests
#run: |
#./y.sh test --target-triple m68k-unknown-linux-gnu --release --clean --build-sysroot --sysroot-features compiler-builtins-no-f16-f128 ${{ matrix.commands }}

# FIXME: We cannot run programs for architectures not supported by the object crate. See comment above.
#- name: Run Hello World!
#run: |
#./y.sh build --target-triple m68k-unknown-linux-gnu

#vm_dir=$(pwd)/vm
#cd tests/hello-world
#CG_RUSTFLAGS="-Clinker=m68k-unknown-linux-gnu-gcc" ../../y.sh cargo build --target m68k-unknown-linux-gnu
#sudo cp target/m68k-unknown-linux-gnu/debug/hello_world $vm_dir/home/
#sudo chroot $vm_dir qemu-m68k-static /home/hello_world > hello_world_stdout
#expected_output="40"
#test $(cat hello_world_stdout) == $expected_output || (echo "Output differs. Actual output: $(cat hello_world_stdout)"; exit 1)

# Summary job for the merge queue.
# ALL THE PREVIOUS JOBS NEED TO BE ADDED TO THE `needs` SECTION OF THIS JOB!
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ jobs:
- name: Run tests
run: |
# FIXME(antoyo): we cannot enable LTO for stdarch tests currently because of some failing LTO tests using proc-macros.
echo -n 'lto = "fat"' >> build_system/build_sysroot/Cargo.toml
# FIXME(antoyo): this should probably not be needed since we embed the LTO bitcode.
printf '[profile.release]\nlto = "fat"\n' >> build/build_sysroot/sysroot_src/library/Cargo.toml
EMBED_LTO_BITCODE=1 ./y.sh test --release --clean --release-sysroot --build-sysroot --keep-lto-tests ${{ matrix.commands }}
- name: Run y.sh cargo build
Expand Down
Loading