Commit Graph

1383 Commits

Author SHA1 Message Date
Guillaume Gomez
45aa965bd5 Update rustc version to 2024-03-10 2024-03-10 17:19:48 +01:00
Guillaume Gomez
5a89328710 Merge branch 'master' into sync_branch_name 2024-03-10 17:18:06 +01:00
Ralf Jung
dd9407dcbe use Instance::expect_resolve() instead of unwraping Instance::resolve() 2024-03-10 11:49:33 +01:00
daxpedda
d0dc94334b Introduce perma-unstable wasm-c-abi flag 2024-03-10 09:00:01 +01:00
Guillaume Gomez
ed5c3bc397 Fix cg_gcc merge 2024-03-10 01:01:52 +01:00
Guillaume Gomez
d9a491b776 Merge remote-tracking branch 'upstream/master' into HEAD 2024-03-09 18:04:39 +01:00
Michael Goulet
929e12d199 Stabilize associated type bounds 2024-03-08 20:56:25 +00:00
Matthias Krüger
568d3949c1 Rollup merge of #119365 - nbdd0121:asm-goto, r=Amanieu
Add asm goto support to `asm!`

Tracking issue: #119364

This PR implements asm-goto support, using the syntax described in "future possibilities" section of [RFC2873](https://rust-lang.github.io/rfcs/2873-inline-asm.html#asm-goto).

Currently I have only implemented the `label` part, not the `fallthrough` part (i.e. fallthrough is implicit). This doesn't reduce the expressive though, since you can use label-break to get arbitrary control flow or simply set a value and rely on jump threading optimisation to get the desired control flow. I can add that later if deemed necessary.

r? ``@Amanieu``
cc ``@ojeda``
2024-03-08 08:19:17 +01:00
Guillaume Gomez
c860ac459e Correctly handle cargo_target_dir 2024-03-06 16:24:02 +01:00
Guillaume Gomez
9aa01ca9e9 Correctly handle "master" feature 2024-03-05 20:17:29 +01:00
Guillaume Gomez
17aa31bfe2 Fix cg_gcc build 2024-03-05 20:17:29 +01:00
Guillaume Gomez
06d07f816a Remove unneeded special case for rust CI 2024-03-05 19:59:40 +01:00
Guillaume Gomez
faebf73983 Merge commit 'b385428e3ddf330805241e7758e773f933357c4b' into subtree-update_cg_gcc_2024-03-05 2024-03-05 19:58:36 +01:00
antoyo
b385428e3d
Merge pull request #464 from rust-lang/sync_from_rust_2024_03_04
Sync from rust 2024/03/04
2024-03-05 13:27:49 -05:00
Antoni Boucher
3b4c58d7f5 Fix rand tests 2024-03-05 12:53:40 -05:00
Antoni Boucher
86a2bb760c Fix CI 2024-03-05 11:55:51 -05:00
Guillaume Gomez
42a0d63238 Ignore rand tests warnings 2024-03-05 15:50:28 +01:00
Antoni Boucher
499d3c229d Fix CI 2024-03-05 09:19:03 -05:00
Ralf Jung
0975461837 only set noalias on Box with the global allocator 2024-03-05 15:03:33 +01:00
Antoni Boucher
cd75da1f2c Fix formatting 2024-03-05 08:33:42 -05:00
Antoni Boucher
b76515708b Workaround for linker error about missing -lLLVM-18-rust-1.78.0-nightly 2024-03-05 08:23:27 -05:00
Antoni Boucher
1605928023 Merge branch 'master' into sync_from_rust_2024_03_04 2024-03-05 08:21:27 -05:00
antoyo
e4ec64a1c4
Merge pull request #459 from tempdragon/master
fix(fmt/style): Clippy-generated Code Correction
2024-03-04 08:07:26 -05:00
antoyo
3937fd15b5
Merge pull request #460 from mu001999/patch-1
Remove unused structs
2024-03-03 20:21:05 -05:00
bors
1abbf610fe Auto merge of #121665 - erikdesjardins:ptradd, r=nikic
Always generate GEP i8 / ptradd for struct offsets

This implements #98615, and goes a bit further to remove `struct_gep` entirely.

Upstream LLVM is in the beginning stages of [migrating to `ptradd`](https://discourse.llvm.org/t/rfc-replacing-getelementptr-with-ptradd/68699). LLVM 19 will [canonicalize](https://github.com/llvm/llvm-project/pull/68882) all constant-offset GEPs to i8, which has roughly the same effect as this change.

Fixes #121719.

Split out from #121577.

r? `@nikic`
2024-03-03 22:21:53 +00:00
antoyo
5178a8d6e8
Merge pull request #463 from rust-lang/fix/panic-doesnt-fail-tests
Update lang_tester so that panicking in a test results in the test failing
2024-03-01 19:13:37 -05:00
Antoni Boucher
4baadb7859 Update lang_tester so that panicking in a test results in the test failing 2024-03-01 17:28:57 -05:00
antoyo
bf5770ad03
Merge pull request #462 from rust-lang/fix/new-special-chars-libgccjit-api
Switch to the new set_special_chars_allowed_in_func_names API
2024-03-01 17:28:23 -05:00
Antoni Boucher
56dc8de1db Switch to the new set_special_chars_allowed_in_func_names API 2024-03-01 12:21:31 -05:00
bors
27b669adc2 Auto merge of #121728 - tgross35:f16-f128-step1-ty-updates, r=compiler-errors
Add stubs in IR and ABI for `f16` and `f128`

This is the very first step toward the changes in https://github.com/rust-lang/rust/pull/114607 and the [`f16` and `f128` RFC](https://rust-lang.github.io/rfcs/3453-f16-and-f128.html). It adds the types to `rustc_type_ir::FloatTy` and `rustc_abi::Primitive`, and just propagates those out as `unimplemented!` stubs where necessary.

These types do not parse yet so there is no feature gate, and it should be okay to use `unimplemented!`.

The next steps will probably be AST support with parsing and the feature gate.

r? `@compiler-errors`
cc `@Nilstrieb` suggested breaking the PR up in https://github.com/rust-lang/rust/pull/120645#issuecomment-1925900572
2024-03-01 03:36:11 +00:00
r01and
7e4b53e45b
Remove unused fluent messages 2024-03-01 09:50:33 +08:00
r01and
1b124a9bbd
Format codes 2024-02-29 23:26:34 +08:00
r01and
6f54eeb070
Remove unused structs 2024-02-29 23:13:09 +08:00
Oli Scherer
3ca0c5913e Forbid implementing Freeze even if the trait is stabilized 2024-02-29 14:10:29 +00:00
tempdragon
aeffc2fcaa fix(fmt/style): Clippy-generated Code Correction
Modifications to Commit:
	Modified:     src/allocator.rs
	Modified:     src/asm.rs
	Modified:     src/back/lto.rs
	Modified:     src/consts.rs
	Modified:     src/debuginfo.rs
	Modified:     src/intrinsic/mod.rs
	Modified:     src/lib.rs
	Modified:     src/mono_item.rs
	Modified:     src/type_.rs
	Modified:     tests/lang_tests_common.rs
2024-02-29 10:33:11 +08:00
antoyo
d0ecf0c262
Merge pull request #458 from rust-lang/format-code
Format the code
2024-02-28 18:13:20 -05:00
Antoni Boucher
c2c68e3f4d Format the code 2024-02-28 17:49:16 -05:00
antoyo
6ec50107e6
Merge pull request #455 from tempdragon/master
feat(debuginfo): Add support for debuginfo, without scope support
2024-02-28 16:59:16 -05:00
tempdragon
7c3565e569 fix(builder.rs): Add space after self when necessary 2024-02-29 04:02:27 +08:00
tempdragon
9cc0a4204d fix(debuginfo.rs): Cleanup of redundant code.
1. Revert to the original `lookup_debug_loc` of DebugLoc return type
2. Removed the commented code of scope lookup
2024-02-29 03:56:17 +08:00
tempdragon
8c975d9861 fix(builder.rs): Rename r to rvalue in set_rval_location 2024-02-29 03:18:51 +08:00
tempdragon
fba0dae5fe fix(builder.rs): Apply a variable name change to func param. 2024-02-29 03:04:48 +08:00
tempdragon
e18d3c3dfd
fix(builder.rs): Apply suggestions from code review
Co-authored-by: antoyo <antoyo@users.noreply.github.com>
2024-02-29 03:00:46 +08:00
tempdragon
ef158f295e feat(debuginfo.rs): Add Comments on functions of LLVM Origin 2024-02-29 02:39:39 +08:00
Trevor Gross
8dd96baddf Add f16 and f128 to rustc_type_ir::FloatTy and rustc_abi::Primitive
Make changes necessary to support these types in the compiler.
2024-02-28 12:58:32 -05:00
tempdragon
eaeb54448e fix(base): Remove the set_debug_info() in compile_codegen_unit 2024-02-29 01:29:20 +08:00
tempdragon
51cd5f1c78
fix(code fmt): Apply style suggestions from code review
Co-authored-by: antoyo <antoyo@users.noreply.github.com>
2024-02-29 01:10:51 +08:00
tempdragon
09fd9087b6 fix(code fmt): builder.rs & base.rs 2024-02-28 11:38:44 +08:00
tempdragon
6170f48e3f fix(builder.rs): Add cfg(feature = "master") to set_location 2024-02-28 10:04:25 +08:00
tempdragon
5b053a3c3c fix(Cargo.lock): Update Cargo.lock 2024-02-28 09:18:22 +08:00