-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Subtree update cg gcc 2024 03 05 #122042
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
bors
merged 257 commits into
rust-lang:master
from
GuillaumeGomez:subtree-update_cg_gcc_2024-03-05
Mar 10, 2024
Merged
Subtree update cg gcc 2024 03 05 #122042
Changes from 1 commit
Commits
Show all changes
257 commits
Select commit
Hold shift + click to select a range
cc7c9be
implement simd_bswap intrinsic
sadlerap 6d13f94
remove generic-bswap-byte from failing test list
sadlerap 70586a2
fix simd_frem intrinsic implementation
sadlerap 8d42a82
impl simd_bitreverse intrinsic
sadlerap 03e11a2
impl simd_ctlz/simd_cttz intrinsic
sadlerap 3a22132
fix simd_neg implementation for ints
sadlerap 17b2c46
remove generic-arithmetic-pass from failing tests
sadlerap bb4d0be
Fix build instructions
GuillaumeGomez 0a67e9c
Merge pull request #391 from GuillaumeGomez/fix-build-instructions
antoyo f9a228d
Rename some arguments.
nnethercote 04f32f2
Allow rustfmt to run on `build_system`
GuillaumeGomez 7b76ac4
Rustify `test.sh`
GuillaumeGomez 84ca4f5
Remove `test.sh`, `config.sh` and all calls and documentation pointin…
GuillaumeGomez d3e14a4
Display stdout and stderr if a command failed to run
GuillaumeGomez 8cc024c
Fix invalid path in `build_sysroot_inner`
GuillaumeGomez 694a80d
Add missing `--build-sysroot` option
GuillaumeGomez c27fe3e
Correctly handle channel in config
GuillaumeGomez 9d104a0
Clone rust repository before modifying it
GuillaumeGomez 87c284c
Only read rust test files
GuillaumeGomez 23c97b5
Replace `xargs` command with pure Rust
GuillaumeGomez 673661d
Remove newline for llvm FileCheck binary path
GuillaumeGomez d793f80
Correctly pass `cfg` option
GuillaumeGomez 4bed89f
Correctly pass toolchain to cargo command
GuillaumeGomez 3c6bae7
Use the correct folder when deleting rust UI tests
GuillaumeGomez 7013ecc
Add missing code comment
GuillaumeGomez ad1d541
Set RUSTDOCFLAGS environment variable in `run_cargo_command_with_call…
GuillaumeGomez 7d71b87
Correctly set `--cap-lints` when running regex tests
GuillaumeGomez 970b2c7
Fix `build_sysroot` by adding missing `RUSTFLAGS` environment variable
GuillaumeGomez ff04316
Remove `--target` option
GuillaumeGomez 53b2759
Show command which failed
GuillaumeGomez 2ec8d46
Correctly handle `OVERWRITE_TARGET_TRIPLE` env variable
GuillaumeGomez 996635b
Fix chroot command
GuillaumeGomez ebb7aa0
Apply suggestions
GuillaumeGomez 2baa073
Add emulated TLS support
quininer 19e1176
Update rustc_codegen_gcc libc
Urgau 3cfff05
Allow internal_features in rustc_codegen_gcc examples
Urgau cb32ffd
ctfe interpreter: extend provenance so that it can track whether a po…
RalfJung 17f0dd5
Auto merge of #118324 - RalfJung:ctfe-read-only-pointers, r=saethlin
bors c578f43
Auto merge of #117873 - quininer:android-emutls, r=Amanieu
bors 92de9d4
Remove dead codes
mu001999 a72e20d
Fix rustc codegen gcc tests
Urgau 867ea12
Fix non-running rustc ui tests
GuillaumeGomez e1f039f
Add unstable `-Zdefault-hidden-visibility` cmdline flag for `rustc`.
anforowicz b1affb9
Move rustc_codegen_ssa target features to rustc_target
Urgau db9b932
Fix sysroot build
GuillaumeGomez 95dfe5e
Simplify `split_args` code, add a unit test for it and run it into CI
GuillaumeGomez 9882d7c
Apply suggestions
GuillaumeGomez 335e3ec
Auto merge of #118828 - mu001999:master, r=b-naber
bors 590e0d9
Rename `Handler` as `DiagCtxt`.
nnethercote a5c63ae
Rename `CodegenContext::create_diag_handler` as `CodegenContext::crea…
nnethercote 5ea71c1
Rename many `DiagCtxt` arguments.
nnethercote 472ea06
Add `level` arg to `into_diagnostic`.
nnethercote a8b0e30
Error earlier if the rustc host cannot be found
GuillaumeGomez f516c96
Add comment about why `-Cpanic=abort` option is needed
GuillaumeGomez bb4fd2c
Simplify code by removing unneeded pattern matching
GuillaumeGomez 984e045
Show output of `--mini-tests` and `--std-tests` commands
GuillaumeGomez a46066c
Remove ignored commands from gcc12 CI
GuillaumeGomez db49437
Merge pull request #382 from sadlerap/impl-generic-arithmetic-pass
antoyo 6e53832
Simplify `Runner` type alias
GuillaumeGomez 8e870c7
Remove unused `TestArgs::use_backend` and display messages in case a …
GuillaumeGomez e0c4d65
Merge pull request #384 from GuillaumeGomez/rustify-test
antoyo 05ef689
Remove unused `build_sysroot.sh` file
GuillaumeGomez e26e074
Rustify `clean_all.sh`
GuillaumeGomez 7dad07a
Merge pull request #396 from GuillaumeGomez/rustify-clean-all
antoyo 9a8245f
Remove unused `rustup.sh` script
GuillaumeGomez 9131ece
Merge pull request #397 from GuillaumeGomez/rm-rustup-sh
antoyo 87a704a
If the rustc commit cannot be retrieve, just checkout the repository
GuillaumeGomez 6631dd9
Don't stop test if llvm FileCheck cannot be found
GuillaumeGomez a53495a
Add comment
antoyo b2e0cc5
Merge pull request #399 from GuillaumeGomez/checkout
antoyo 2e52b08
Rustify `cargo.sh`
GuillaumeGomez ec94074
Correctly take into account potential position of cargo command in `y…
GuillaumeGomez 02ed790
Remove `Session` methods that duplicate `DiagCtxt` methods.
nnethercote 69b5a9f
Change `rustc_codegen_ssa`'s `atomic_cmpxchg` interface to return a p…
eca05c6
Remove movability from TyKind::Coroutine
compiler-errors c122376
Don't show `cargo` command errors
GuillaumeGomez a2efaf0
Auto merge of #118705 - WaffleLapkin:codegen-atomic-exhange-untuple, …
bors a91d9e1
Merge pull request #405 from GuillaumeGomez/rustify-cargo-sh
antoyo a56eff2
Rename some `Diagnostic` setters.
nnethercote f93e985
Support reg_addr register class in s390x inline assembly
taiki-e b5681ca
Update intrinsics conversion
GuillaumeGomez fac7c31
Merge pull request #408 from GuillaumeGomez/intrinsics-conversion
antoyo fe71e04
Rollup merge of #119431 - taiki-e:asm-s390x-reg-addr, r=Amanieu
matthiaskrgr 41b758f
Rollup merge of #119538 - nnethercote:cleanup-errors-5, r=compiler-er…
compiler-errors 47b0606
Update test for `E0796` and `static_mut_ref` lint
obeis b10f5dd
Fix typo Readme.md
vuittont60 4e8627c
Fix typo src/base.rs
vuittont60 f8e079a
Fix typo src/intrinsic/llvm.rs
vuittont60 47373be
Merge pull request #410 from vuittont60/master
antoyo 558d051
Rename `{create,emit}_warning` as `{create,emit}_warn`.
nnethercote 45137dd
Fix the destination path of the sysroot copy
antoyo 5032d33
Merge pull request #411 from rust-lang/fix/sysroot-copy-path
antoyo 0fe5c7f
Switch from actions-rs to preinstalled rustup
tgross35 1a8e0c3
Merge pull request #412 from tgross35/gha-update
antoyo 0783d45
add avx512fp16 to x86 target features
usamoi 5294637
Honor $RUSTUP_HOME
NCGThompson 7dd3f6f
call rustup which
NCGThompson dcb531f
Update build_system/src/test.rs
NCGThompson 94ed9d1
rename `y.sh test --clean-ui-tests` to `y.sh clean ui-tests`
rowan-sl e4e9365
Merge pull request #413 from NCGThompson/check-rustup-home-flag
antoyo d34789f
update Intel Software Development Emulator
rowan-sl e747d42
Merge pull request #415 from rowan-sl/rename-clean-ui-tests
antoyo 599492a
replace filter with skip and take
Liewyec b2a7afd
Further Implement `is_val_statically_known`
NCGThompson 215284a
remove StructuralEq trait
RalfJung d645e16
Auto merge of #119911 - NCGThompson:is-statically-known, r=oli-obk
bors bb121d1
Auto merge of #116167 - RalfJung:structural-eq, r=lcnr
bors b9d44ee
Remove the lifetime from `DiagnosticArgValue`.
nnethercote 04e4c5d
Remove `ffi_returns_twice` feature
clubby789 2a36f58
Merge pull request #416 from Liewyec/feature/improve-iterator-for-fil…
antoyo ad8e820
Update for rebased gcc
antoyo b04824a
Merge pull request #421 from rust-lang/update/gcc
antoyo 0a38748
Renable intrinsics-integer.rs test
antoyo fe7be54
Rollup merge of #119543 - usamoi:avx512fp16, r=oli-obk
matthiaskrgr 007cea3
Invert diagnostic lints.
nnethercote 31f7f03
Add CoroutineClosure to TyKind, AggregateKind, UpvarArgs
compiler-errors 1f5316a
Rollup merge of #120502 - clubby789:remove-ffi-returns-twice, r=compi…
matthiaskrgr 8235b26
Merge pull request #423 from rust-lang/fix/bswap128
antoyo 5a12a89
Rollup merge of #120693 - nnethercote:invert-diagnostic-lints, r=davi…
matthiaskrgr 6b05753
Run the tests of popular crates in the CI
antoyo 357cae8
Merge pull request #426 from rust-lang/ci/projects
antoyo 2640b31
Switch to `config.toml` instead of `gcc-path`
GuillaumeGomez 0b2402f
Update CI scripts to work with `config.toml`
GuillaumeGomez 79241b8
Update tests to use `config.toml` instead
GuillaumeGomez de9d1b6
Add `--config-file` option to override default location of `config.toml`
GuillaumeGomez 560e65c
Merge pull request #427 from GuillaumeGomez/config-file
antoyo 588db24
Correctly handle `--use-system-gcc`
GuillaumeGomez 64dfa4f
Teach llvm backend how to fall back to default bodies
oli-obk 5d5137c
Rework the download function to only contain the platform-specific code
antoyo eee04a4
Add support for "download"
GuillaumeGomez 0a4b0af
Generate symbolic link to libgccjit.so as well
GuillaumeGomez 5c6cdf5
Add `info` command to help get some information
GuillaumeGomez 65f4b63
Add CI for download config
GuillaumeGomez d04ffb0
Update lang_tests_common.rs test
GuillaumeGomez 59546ea
Merge `download.yml` into `ci.yml`
GuillaumeGomez 2bcc735
Don't join config file path if provided through `--config-file` option
GuillaumeGomez 1096b1b
Add more explanation on what `cg_gcc_path` is used for and improve he…
GuillaumeGomez b80a999
Improve code readability and add more code comments
GuillaumeGomez ac708d9
Merge pull request #430 from GuillaumeGomez/download-config
antoyo 7faff65
Merge pull request #434 from rust-lang/fix/platform-specific-function
antoyo 267aaef
Move some top-level folders into `build`
GuillaumeGomez 896b1a9
Generate libgccjit.so into the `build` folder
GuillaumeGomez 436fea8
Add `build` folder into the ignored git entries
GuillaumeGomez 46d6e77
Update `tests/lang_tests_common.rs` test
GuillaumeGomez 6afabce
Merge pull request #435 from GuillaumeGomez/clean-up-repo
antoyo 452ebf5
feat(test.rs): Clone only 1 layer in build_system
tempdragon 17e3297
feat(test.rs): Lookup the commit with cat-file to avoid re-fetches
tempdragon a883c6d
Move `crates_patches` and `cross_patches` into the `patches` folder
GuillaumeGomez ebac107
Remove paths that don't exist anymore from file
GuillaumeGomez 826a20b
Merge pull request #436 from GuillaumeGomez/cleanup-patches
antoyo de57533
Implement dummy emit=llvm-ir
antoyo 77b9804
Merge pull request #437 from rust-lang/dummy-emit-ir
antoyo ec5328b
errors: only eagerly translate subdiagnostics
davidtwco 98c1efd
Put back `master` feature as default
GuillaumeGomez e69f125
Merge pull request #438 from GuillaumeGomez/master-feature-default
antoyo af289a5
Use the default rust mangling
antoyo 7b1ac28
Make `CodegenBackend::join_codegen` infallible.
nnethercote 6bdcc3c
Move subtree part of Readme into its own doc file
GuillaumeGomez cb14f43
Improve instructions to start working on the project
GuillaumeGomez 79316d4
Split Readme even further
GuillaumeGomez 3c6a265
Merge pull request #444 from GuillaumeGomez/improve-docs
antoyo e9aa254
Rollup merge of #121085 - davidtwco:always-eager-diagnostics, r=nneth…
matthiaskrgr bd53510
Rollup merge of #121209 - nnethercote:infallible-join_codegen, r=bjorn3
matthiaskrgr 79c8780
Merge pull request #432 from tempdragon/master
GuillaumeGomez 0a66c55
Revert "Use shallow clone in test.rs to reduce cloning overhead"
GuillaumeGomez 1d171ae
Merge pull request #445 from rust-lang/revert-432-master
GuillaumeGomez e116cb7
Fix to use the correct libgccjit for the CI where 128-bit integers ar…
antoyo 3252355
Merge pull request #440 from rust-lang/use-default-mangling
antoyo 5ac9bee
fix tests/ui/simd/issue-89193.rs and mark as passing
sadlerap 087456f
mark tests/ui/simd/issue-89193.rs as failing for libgccjit12
sadlerap b959fc1
Improve wording of static_mut_ref
obeis 1f34c88
feat(Cargo.toml): Set `rustc_private` to `true` to allow lsp parsing
tempdragon c350ae8
Auto merge of #121034 - obeis:improve-static-mut-ref, r=RalfJung
bors 7600140
Merge pull request #447 from tempdragon/master
antoyo 4ec4209
use `default` as output type source in simd_gather
sadlerap 3e02db2
Merge pull request #446 from sadlerap/fix-simd-gather
antoyo 6bbbf59
Update to nightly-2024-02-20
antoyo f6e16e9
Merge branch 'master' into sync_from_rust_2024_02_20
antoyo c3d5b7f
Fix patches
antoyo e7b7c98
Fix tests
antoyo 6ff147b
Add "algebraic" versions of the fast-math intrinsics
saethlin e785093
Merge pull request #450 from rust-lang/sync_from_rust_2024_02_20
antoyo 7a991d5
Auto merge of #120718 - saethlin:reasonable-fast-math, r=nnethercote
bors b87de73
Correctly handle "master" feature
GuillaumeGomez d2210d4
Correctly pass `--no-default-features` when argument is passed
GuillaumeGomez 114c25f
Pass `--no-default-features` to codegen as well
GuillaumeGomez 2e67633
Merge pull request #452 from GuillaumeGomez/master-cfg
antoyo a9b5c08
make simd_reduce_{mul,add}_unordered use only the 'reassoc' flag, not…
RalfJung 0abd3b7
remove simd_reduce_{min,max}_nanless
RalfJung bb5b75f
Update gcc version
antoyo 2262073
Merge pull request #454 from rust-lang/update/gcc
antoyo c638def
feat(debuginfo): Init Commit for debuginfo Support
tempdragon 2ffe9d1
feat(int.rs&build.rs): Add location info to arithmetic operators
tempdragon a06a87b
rename 'try' intrinsic to 'catch_unwind'
RalfJung 7f34119
remove useless lifetime of ArchiveBuilder
823984418 aed59f0
Add `clone-gcc` command
GuillaumeGomez b4b180c
Auto merge of #121635 - 823984418:remove_archive_builder_lifetime_a, …
bors 7d086c7
always use gep inbounds i8 (ptradd) for field offsets
erikdesjardins 19a6482
remove struct_gep, use manual layout calculations for va_arg
erikdesjardins 70346fe
introduce and use ptradd/inbounds_ptradd instead of gep
erikdesjardins 6560fec
Add documentation on git_clone_root_dir
GuillaumeGomez 64fc213
Merge pull request #456 from GuillaumeGomez/clone-gcc
antoyo 7005ef9
Rename `DiagnosticBuilder` as `Diag`.
nnethercote 427d617
Rename `DiagnosticArg{,Map,Name,Value}` as `DiagArg{,Map,Name,Value}`.
nnethercote 8879155
fix(libgccjit.version): Update GCC commit version
tempdragon 5b053a3
fix(Cargo.lock): Update Cargo.lock
tempdragon 6170f48
fix(builder.rs): Add `cfg(feature = "master")` to set_location
tempdragon 09fd908
fix(code fmt): builder.rs & base.rs
tempdragon 51cd5f1
fix(code fmt): Apply style suggestions from code review
tempdragon eaeb544
fix(base): Remove the `set_debug_info()` in `compile_codegen_unit`
tempdragon 8dd96ba
Add `f16` and `f128` to `rustc_type_ir::FloatTy` and `rustc_abi::Prim…
tgross35 ef158f2
feat(debuginfo.rs): Add Comments on functions of LLVM Origin
tempdragon e18d3c3
fix(builder.rs): Apply suggestions from code review
tempdragon fba0dae
fix(builder.rs): Apply a variable name change to func param.
tempdragon 8c975d9
fix(builder.rs): Rename `r` to `rvalue` in `set_rval_location`
tempdragon 9cc0a42
fix(debuginfo.rs): Cleanup of redundant code.
tempdragon 7c3565e
fix(builder.rs): Add space after self when necessary
tempdragon 6ec5010
Merge pull request #455 from tempdragon/master
antoyo c2c68e3
Format the code
antoyo d0ecf0c
Merge pull request #458 from rust-lang/format-code
antoyo aeffc2f
fix(fmt/style): Clippy-generated Code Correction
tempdragon 6f54eeb
Remove unused structs
mu001999 1b124a9
Format codes
mu001999 7e4b53e
Remove unused fluent messages
mu001999 27b669a
Auto merge of #121728 - tgross35:f16-f128-step1-ty-updates, r=compile…
bors 56dc8de
Switch to the new set_special_chars_allowed_in_func_names API
antoyo bf5770a
Merge pull request #462 from rust-lang/fix/new-special-chars-libgccji…
antoyo 4baadb7
Update lang_tester so that panicking in a test results in the test fa…
antoyo 5178a8d
Merge pull request #463 from rust-lang/fix/panic-doesnt-fail-tests
antoyo 1abbf61
Auto merge of #121665 - erikdesjardins:ptradd, r=nikic
bors 3937fd1
Merge pull request #460 from mu001999/patch-1
antoyo e4ec64a
Merge pull request #459 from tempdragon/master
antoyo 1605928
Merge branch 'master' into sync_from_rust_2024_03_04
antoyo b765157
Workaround for linker error about missing -lLLVM-18-rust-1.78.0-nightly
antoyo cd75da1
Fix formatting
antoyo 499d3c2
Fix CI
antoyo 42a0d63
Ignore rand tests warnings
GuillaumeGomez 86a2bb7
Fix CI
antoyo 3b4c58d
Fix rand tests
antoyo b385428
Merge pull request #464 from rust-lang/sync_from_rust_2024_03_04
antoyo 0d359ef
Merge commit 'b385428e3ddf330805241e7758e773f933357c4b' into subtree-…
GuillaumeGomez e378787
Remove unneeded special case for rust CI
GuillaumeGomez 3aefb2e
Fix cg_gcc build
GuillaumeGomez 4256928
Correctly handle "master" feature
GuillaumeGomez 4bcaa4f
Correctly handle `cargo_target_dir`
GuillaumeGomez 95b49e7
Build libgccjit in CI
GuillaumeGomez 379908e
Build libgccjit for all CI testsuites using it
GuillaumeGomez 2b5b43e
Merge remote-tracking branch 'upstream/master' into HEAD
GuillaumeGomez 1d058a0
Fix cg_gcc merge
GuillaumeGomez c5c6729
Use full commit hash and remove `libgccjit.version` file
GuillaumeGomez File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
src/ci/docker/host-x86_64/dist-x86_64-linux/build-gccjit.sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/bin/sh | ||
|
||
set -ex | ||
|
||
cd $1 | ||
|
||
# Setting up folders for GCC | ||
git clone https://github.com/antoyo/gcc gcc-src | ||
cd gcc-src | ||
git checkout $(head -1 /scripts/libgccjit.version) | ||
|
||
mkdir ../gcc-build ../gcc-install | ||
cd ../gcc-build | ||
|
||
# Building GCC. | ||
../gcc-src/configure \ | ||
--enable-host-shared \ | ||
--enable-languages=jit \ | ||
--enable-checking=release \ | ||
--disable-bootstrap \ | ||
--disable-multilib \ | ||
--prefix=$(pwd)/../gcc-install | ||
make | ||
make install | ||
|
||
rm -rf ../gcc-src | ||
ln -s /scripts/gcc-install/lib/libgccjit.so /usr/lib/x86_64-linux-gnu/libgccjit.so | ||
ln -s /scripts/gcc-install/lib/libgccjit.so /usr/lib/x86_64-linux-gnu/libgccjit.so.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
b6f163f52 | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.