Skip to content

Sync 2024-08-12 #556

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 51 commits into from
Sep 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
3eb2844
Give Instance::expect_resolve a span
compiler-errors Jun 12, 2024
007fa3b
Fix spans
compiler-errors Jul 1, 2024
fb47385
Miri function identity hack: account for possible inlining
RalfJung Jul 2, 2024
24ab684
Remove lang feature for type ascription
compiler-errors Jul 11, 2024
6199de2
Sync ar_archive_writer to LLVM 18.1.3
bjorn3 Apr 16, 2024
f34f3c7
Align cg_gcc rustfmt.toml with rust's
GuillaumeGomez Jul 17, 2024
fd56f44
Format cg_gcc with same formatting parameters
GuillaumeGomez Jul 17, 2024
88f7508
stabilize `is_sorted`
slanterns Jul 27, 2024
1cbbac3
Reformat `use` declarations.
nnethercote Jul 28, 2024
78f5ee6
Update compiler_builtins to 0.1.114
nicholasbishop May 11, 2024
c57eb55
Move temp file name generation out of the create_dll_import_lib method
bjorn3 Jul 25, 2024
50b3746
Move computation of decorated names out of the create_dll_import_lib …
bjorn3 Jul 25, 2024
e80199c
Refactor and fill out target feature lists
calebzulawski Aug 2, 2024
51130e1
Hide implicit target features from diagnostics when possible
calebzulawski Aug 5, 2024
f824fb6
Update compiler-builtins version to 0.1.118
GuillaumeGomez Aug 8, 2024
b373147
Fixes in various places
Nadrieril Mar 20, 2024
8bd9b48
Update compiler version to nightly-2024-08-11
GuillaumeGomez Aug 12, 2024
dd76ad4
Fix libcore patch
GuillaumeGomez Aug 6, 2024
8643c13
Fix patch `libgccjit12/0001-core-Disable-portable-simd-test.patch`
GuillaumeGomez Aug 6, 2024
fb6118b
Rename `compiler-builtins-no-f16-f128` into `std/compiler-builtins-no…
GuillaumeGomez Aug 6, 2024
3b45cf4
Update sysroot Cargo.lock
GuillaumeGomez Aug 12, 2024
afb14f7
Unpin compiler-builtins
GuillaumeGomez Aug 12, 2024
b70a1ec
Add missing impl Copy for *mut T
antoyo Aug 13, 2024
b4ef898
Fix formatting
antoyo Aug 13, 2024
d3cfb72
Fix clippy lint
antoyo Aug 13, 2024
0bdc5ff
Support the weak variable attribute
antoyo Sep 1, 2024
4dd288c
Fix tests
antoyo Sep 1, 2024
d3c9cc5
Add support for missing SIMD intrinsics
antoyo Sep 3, 2024
e064b72
Add missing intrinsic translation for `llvm.x86.xsave64`
GuillaumeGomez Sep 3, 2024
197df44
Regenerate intrinsics
GuillaumeGomez Sep 3, 2024
2e7d256
Add more SIMD intrinsics
antoyo Sep 3, 2024
139eea9
fmt
GuillaumeGomez Sep 3, 2024
244ac08
Add missing intrinsic translation for `llvm.x86.xrstor64`
GuillaumeGomez Sep 3, 2024
39e1910
Add missing intrinsic translation for `llvm.x86.xsaveopt64`
GuillaumeGomez Sep 3, 2024
623dc09
Add support for more SIMD intrinsics
antoyo Sep 4, 2024
c207bad
Add missing intrinsics translation for `llvm.x86.xsavec64` and fix mo…
GuillaumeGomez Sep 4, 2024
cb0b519
Add more SIMD intrinsics
antoyo Sep 6, 2024
62f44d7
Add more SIMD intrinsics
antoyo Sep 6, 2024
bcc5a1c
Update libgccjit version
antoyo Sep 6, 2024
42d03f6
Add support for more SIMD intrinsics
antoyo Sep 8, 2024
2c93ffb
Add SIMD intrinsic
antoyo Sep 11, 2024
17f3dbf
Add more SIMD intrinsics
antoyo Sep 11, 2024
cb36d78
Add more SIMD intrinsics
antoyo Sep 15, 2024
88445ee
Add missing SIMD intrinsics
antoyo Sep 24, 2024
0a52b65
Update to Ubuntu 24.04 to get a more recent GNU as
antoyo Sep 24, 2024
79a6e4e
Add documentation for stdarch tests
antoyo Sep 25, 2024
7d4d356
Enable the cfg stdarch_intel_sde to fix the segfault when running the…
antoyo Sep 25, 2024
1e8354a
Fix mapping
antoyo Sep 25, 2024
11f4f16
Implement a hack for an intrinsic mapping where we need to output a d…
antoyo Sep 27, 2024
117cf3e
Fix for libgccjit 12
antoyo Sep 27, 2024
12575df
Cleanup
antoyo Sep 27, 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
6 changes: 3 additions & 3 deletions .github/workflows/m68k.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,14 @@ jobs:
- name: Build sample project with target defined as JSON spec
run: |
./y.sh prepare --only-libcore --cross
./y.sh build --sysroot --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
./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 --target-triple m68k-unknown-linux-gnu
./y.sh build --sysroot --features compiler_builtins/no-f16-f128 --target-triple m68k-unknown-linux-gnu
CG_GCC_TEST_TARGET=m68k-unknown-linux-gnu cargo test
./y.sh clean all

Expand All @@ -107,4 +107,4 @@ jobs:

- name: Run tests
run: |
./y.sh test --release --clean --build-sysroot ${{ matrix.commands }}
./y.sh test --release --clean --build-sysroot --sysroot-features compiler_builtins/no-f16-f128 ${{ matrix.commands }}
12 changes: 10 additions & 2 deletions .github/workflows/stdarch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ env:

jobs:
build:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04

strategy:
fail-fast: false
Expand All @@ -36,6 +36,13 @@ jobs:
- name: Install packages
run: sudo apt-get install ninja-build ripgrep

# TODO: remove when we have binutils version 2.43 in the repo.
- name: Install more recent binutils
run: |
echo "deb http://archive.ubuntu.com/ubuntu oracular main universe" | sudo tee /etc/apt/sources.list.d/oracular-copies.list
sudo apt-get update
sudo apt-get install binutils

- name: Install Intel Software Development Emulator
if: ${{ matrix.cargo_runner }}
run: |
Expand Down Expand Up @@ -96,4 +103,5 @@ jobs:
run: |
# FIXME: these tests fail when the sysroot is compiled with LTO because of a missing symbol in proc-macro.
# TODO: remove --skip test_mm512_stream_ps when stdarch is updated in rustc.
STDARCH_TEST_EVERYTHING=1 CHANNEL=release CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_RUNNER="${{ matrix.cargo_runner }}" TARGET=x86_64-unknown-linux-gnu CG_RUSTFLAGS="-Ainternal_features" ./y.sh cargo test --manifest-path build/build_sysroot/sysroot_src/library/stdarch/Cargo.toml -- --skip rtm --skip tbm --skip sse4a --skip test_mm512_stream_ps
# TODO: remove --skip test_tile_ when it's implemented.
STDARCH_TEST_EVERYTHING=1 CHANNEL=release CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_RUNNER="${{ matrix.cargo_runner }}" TARGET=x86_64-unknown-linux-gnu CG_RUSTFLAGS="-Ainternal_features --cfg stdarch_intel_sde" ./y.sh cargo test --manifest-path build/build_sysroot/sysroot_src/library/stdarch/Cargo.toml -- --skip rtm --skip tbm --skip sse4a --skip test_mm512_stream_ps --skip test_tile_
2 changes: 2 additions & 0 deletions .rustfmt.toml
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
version = "Two"
use_small_heuristics = "Max"
merge_derives = false
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ master = ["gccjit/master"]
default = ["master"]

[dependencies]
gccjit = "2.1"
gccjit = "2.2"
#gccjit = { git = "https://github.com/rust-lang/gccjit.rs" }

# Local copy.
#gccjit = { path = "../gccjit.rs" }
Expand Down
101 changes: 55 additions & 46 deletions build_system/build_sysroot/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 17 additions & 3 deletions build_system/build_sysroot/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ resolver = "2"

[dependencies]
core = { path = "./sysroot_src/library/core" }
# TODO: after the sync, revert to using version 0.1.
# compiler_builtins = "0.1"
compiler_builtins = "=0.1.109"
compiler_builtins = "0.1"
alloc = { path = "./sysroot_src/library/alloc" }
std = { path = "./sysroot_src/library/std", features = ["panic_unwind", "backtrace"] }
test = { path = "./sysroot_src/library/test" }
Expand All @@ -19,6 +17,22 @@ rustc-std-workspace-core = { path = "./sysroot_src/library/rustc-std-workspace-c
rustc-std-workspace-alloc = { path = "./sysroot_src/library/rustc-std-workspace-alloc" }
rustc-std-workspace-std = { path = "./sysroot_src/library/rustc-std-workspace-std" }

# For compiler-builtins we always use a high number of codegen units.
# The goal here is to place every single intrinsic into its own object
# file to avoid symbol clashes with the system libgcc if possible. Note
# that this number doesn't actually produce this many object files, we
# just don't create more than this number of object files.
#
# It's a bit of a bummer that we have to pass this here, unfortunately.
# Ideally this would be specified through an env var to Cargo so Cargo
# knows how many CGUs are for this specific crate, but for now
# per-crate configuration isn't specifiable in the environment.
[profile.dev.package.compiler_builtins]
codegen-units = 10000

[profile.release.package.compiler_builtins]
codegen-units = 10000

[profile.release]
debug = "limited"
#lto = "fat" # TODO(antoyo): re-enable when the failing LTO tests regarding proc-macros are fixed.
Loading