Skip to content

Subtree update cg gcc 2025 07 18 #144140

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 45 commits into from
Jul 19, 2025
Merged
Show file tree
Hide file tree
Changes from 44 commits
Commits
Show all changes
45 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
1d2b874
Remove OVERWRITE_TARGET_TRIPLE env var now that config.sh is gone
antoyo Jul 1, 2025
1bbe594
Fix installation of libgccjit for m68k
antoyo Jul 1, 2025
89f0cb3
Specify linker in m68k CI
antoyo Jul 1, 2025
cf509d8
Add missing --target-triple flags in m68k CI
antoyo Jul 1, 2025
fec79b8
Add missing space before --target-triple
antoyo Jul 1, 2025
3021598
Specify the linker when building the test project in m68k CI
antoyo Jul 1, 2025
0b61286
Fix m68k CI
antoyo Jul 2, 2025
bd100e2
Merge pull request #727 from rust-lang/test/ci
antoyo Jul 2, 2025
ed1e9b7
Manually run in a VM in the m68k CI
antoyo Jul 2, 2025
21c8639
Fix to use the correct expected output for m68k CI test
antoyo Jul 2, 2025
1881087
Update the doc to reflect the new way to specify the linker for cross…
antoyo Jul 2, 2025
f1c71ff
Clean some config stuff up
antoyo Jul 2, 2025
75a4fb9
Merge pull request #424 from rust-lang/remove-overwrite-target-triple…
antoyo Jul 2, 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
2961464
Change the implementation of supports_parallel to signal tha cg_gcc i…
FractalFir Jul 8, 2025
6388524
Skip needlessly setting the default visibility on functions
FractalFir Jul 9, 2025
7e84472
Inserted a local variable in volatile_load, to ensure reads don't mov…
FractalFir Jul 8, 2025
86f5318
Merge pull request #732 from FractalFir/thread_soundness_fix
antoyo Jul 9, 2025
35bdf8b
Merge pull request #734 from FractalFir/remove_needless_attr
antoyo Jul 9, 2025
8a9af5f
Merge pull request #733 from FractalFir/volatile_load_tmp
antoyo Jul 9, 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
f682d09
Merge pull request #735 from rust-lang/sync_from_rust_2025_07_04
antoyo Jul 18, 2025
66017df
Merge commit 'f682d09eefc6700b9e5851ef193847959acf4fac' into subtree-…
GuillaumeGomez Jul 18, 2025
f16474f
Remove forgotten git annotations
GuillaumeGomez 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
40 changes: 27 additions & 13 deletions compiler/rustc_codegen_gcc/.github/workflows/m68k.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ permissions:
env:
# Enable backtraces for easier debugging
RUST_BACKTRACE: 1
# TODO: remove when confish.sh is removed.
OVERWRITE_TARGET_TRIPLE: m68k-unknown-linux-gnu

jobs:
build:
Expand Down Expand Up @@ -59,14 +57,12 @@ jobs:

- name: Setup path to libgccjit
run: |
sudo dpkg -i gcc-m68k-15.deb
sudo dpkg --force-overwrite -i gcc-m68k-15.deb
echo 'gcc-path = "/usr/lib/"' > config.toml

- name: Set env
run: |
echo "workspace="$GITHUB_WORKSPACE >> $GITHUB_ENV



#- name: Cache rust repository
## We only clone the rust repository for rustc tests
Expand All @@ -86,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 cargo build --manifest-path=./tests/hello-world/Cargo.toml --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 test --mini-tests
CG_GCC_TEST_TARGET=m68k-unknown-linux-gnu ./y.sh test --cargo-tests
./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
# 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 @@ -104,9 +104,23 @@ jobs:
git config --global user.name "User"
./y.sh prepare --cross

- name: Run tests
run: |
./y.sh test --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 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 compiler/rustc_codegen_gcc/.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
Loading