bjorn3
d9f29fa018
Rustfmt all scripts
2024-03-31 09:13:11 +00:00
bjorn3
7cdec71868
Move the rustc testing section out of the readme
...
To make the readme a bit easier to read.
2024-03-31 09:01:37 +00:00
bjorn3
e7829154b6
Rustup to rustc 1.79.0-nightly ( faae5f1ff
2024-03-29)
2024-03-30 11:02:18 +00:00
bjorn3
362caf7a70
Sync from rust faae5f1ffe
2024-03-30 10:50:14 +00:00
bors
b2f6349b49
Auto merge of #122450 - Urgau:simplify-trim-paths-feature, r=michaelwoerister
...
Simplify trim-paths feature by merging all debuginfo options together
This PR simplifies the trim-paths feature by merging all debuginfo options together, as described in https://github.com/rust-lang/rust/issues/111540#issuecomment-1994010274 .
And also do some correctness fixes found during the review.
cc `@weihanglo`
r? `@michaelwoerister`
2024-03-29 14:00:21 +00:00
bors
e8c13080f7
Auto merge of #122671 - Mark-Simulacrum:const-panic-msg, r=Nilstrieb
...
Codegen const panic messages as function calls
This skips emitting extra arguments at every callsite (of which there
can be many). For a librustc_driver build with overflow checks enabled,
this cuts 0.7MB from the resulting shared library (see [perf]).
A sample improvement from nightly:
```
leaq str.0(%rip), %rdi
leaq .Lalloc_d6aeb8e2aa19de39a7f0e861c998af13(%rip), %rdx
movl $25, %esi
callq *_ZN4core9panicking5panic17h17cabb89c5bcc999E@GOTPCREL(%rip)
```
to this PR:
```
leaq .Lalloc_d6aeb8e2aa19de39a7f0e861c998af13(%rip), %rdi
callq *_RNvNtNtCsduqIKoij8JB_4core9panicking11panic_const23panic_const_div_by_zero@GOTPCREL(%rip)
```
[perf]: https://perf.rust-lang.org/compare.html?start=a7e4de13c1785819f4d61da41f6704ed69d5f203&end=64fbb4f0b2d621ff46d559d1e9f5ad89a8d7789b&stat=instructions:u
2024-03-29 00:24:01 +00:00
Urgau
4d7ded634a
Replace Session should_remap_filepaths with filename_display_preference
2024-03-28 18:47:26 +01:00
Urgau
6a2b2b43bd
Introduce FileNameMapping::to_real_filename
and use it everywhere
2024-03-28 18:47:26 +01:00
Urgau
d6a817a7d9
Make local_crate_source_file return a RealFileName
...
so it can be remapped (or not) by callers
2024-03-28 18:47:26 +01:00
Urgau
5de668acb0
Replace RemapFileNameExt::for_codegen
with explicit calls
2024-03-28 18:47:26 +01:00
bjorn3
29b2d426b5
Merge branch 'sync_from_rust'
2024-03-28 11:45:32 +00:00
bjorn3
c5c31447a7
Merge commit '09fae60a86b848a2fc0ad219ecc4e438dc1eef86' into sync_cg_clif-2024-03-28
2024-03-28 11:43:35 +00:00
bjorn3
09fae60a86
Fix rustc test suite
2024-03-28 11:38:15 +00:00
bjorn3
ef0b3d1def
Rustup to rustc 1.79.0-nightly ( c9f8f3438
2024-03-27)
2024-03-28 11:17:20 +00:00
bjorn3
4f0cde1e51
Define return type for functions in debuginfo
2024-03-27 20:36:49 +00:00
bjorn3
0634aedbb7
Implement debug_type for tuples
2024-03-27 20:29:50 +00:00
bjorn3
55a2446a53
Don't panic when layout can't be computed and fix generation of array type debuginfo
2024-03-27 20:07:36 +00:00
bjorn3
fee1204ffa
Stop taking FunctionCx's fn_abi field
2024-03-27 19:49:20 +00:00
bjorn3
69363cf9e7
Merge pull request #1472 from rust-lang/debuginfo_improvements2
...
Add debuginfo for statics
2024-03-27 19:22:09 +01:00
bjorn3
4b80941ae3
Add debuginfo for statics
...
Most types are still unimplemented and get a placeholder byte array
instead.
2024-03-27 16:53:57 +00:00
bjorn3
f086e7abaf
Allow debuginfo to reference global variables
2024-03-27 15:01:25 +00:00
bjorn3
1f75f0fcad
Move FileId caching to DebugContext::add_source_file
2024-03-27 14:14:30 +00:00
bjorn3
68b59311fa
Merge pull request #1470 from rust-lang/debuginfo_improvements
...
Various small debuginfo improvements
2024-03-27 15:08:07 +01:00
bjorn3
41246b2cf6
Remove fixed todos
2024-03-27 13:35:32 +00:00
bjorn3
a64387bb6b
Emit DW_AT_external if applicable
2024-03-27 13:28:40 +00:00
bjorn3
98eaaeda11
Match unit names with cg_llvm
2024-03-27 12:57:24 +00:00
bjorn3
e48d7d242f
Emit namespace debuginfo
2024-03-27 12:43:47 +00:00
bjorn3
c76c269aa4
Reduce debuginfo divergence between cg_llvm and cg_clif
2024-03-27 11:04:35 +00:00
bjorn3
09ec683ae7
Emit DW_AT_frame_base debuginfo attribute
2024-03-27 10:57:13 +00:00
bjorn3
cfd7325f20
Merge pull request #1469 from rust-lang/fix_some_rustc_tests
...
Fix a bunch of rustc tests
2024-03-26 12:19:01 +01:00
bjorn3
34d0f6a1d4
Re-enable fixed rustc test
2024-03-26 11:03:50 +00:00
bjorn3
23868af850
Correctly implement --emit
2024-03-26 10:55:46 +00:00
bjorn3
ad1886a5f0
Fix rustdoc help message when no args are passed
2024-03-26 10:27:19 +00:00
bjorn3
dc6595ddbc
Implement nearbyintf32 and nearbyintf64 and remove two test ignores
2024-03-26 10:18:44 +00:00
bjorn3
60921608f7
Rustup to rustc 1.79.0-nightly ( 5f2c7d2bf
2024-03-25)
2024-03-26 09:56:55 +00:00
bjorn3
d183a5186f
Sync from rust 5f2c7d2bfd
2024-03-26 09:50:48 +00:00
Matthias Krüger
22e4175bd6
Rollup merge of #123034 - bjorn3:test_ignores, r=compiler-errors
...
Add a bunch of needs-unwind annotations to tests
To filter out tests that fail with cg_clif due to missing panic=unwind support.
2024-03-25 17:05:36 +01:00
bjorn3
49777c3bfa
Add needs-unwind for proc macro tests
...
Rustc gives a warning when compiling proc macros with panic=abort.
2024-03-25 15:02:55 +00:00
bjorn3
654ce59f70
Remove ignore for fixed rustc test
2024-03-25 14:41:19 +00:00
bjorn3
187decaf18
Fix rustc test suite
2024-03-25 14:29:11 +00:00
bjorn3
c53025b45d
Add needs-unwind annotations to a couple of tests
2024-03-25 14:19:07 +00:00
bjorn3
0231d65cec
Rustup to rustc 1.79.0-nightly ( 0824b300e
2024-03-24)
2024-03-25 14:05:11 +00:00
bjorn3
28d480b881
Sync from rust 0824b300eb
2024-03-25 13:59:27 +00:00
Michael Goulet
4609a48d6a
Add async-closures/once.rs back to cranelift tests
2024-03-24 21:42:32 -04:00
Scott McMurray
629a772585
Add+Use mir::BinOp::Cmp
2024-03-23 23:23:41 -07:00
Ralf Jung
905550149f
also rename the SIMD intrinsic
2024-03-23 23:03:37 +01:00
Ralf Jung
a517adc66e
move assert_unsafe_preconditions to its own file
...
These macros and functions are not intrinsics, after all.
2024-03-23 18:44:17 +01:00
Ralf Jung
c7ab6b5030
rename MIR int2ptr casts to match library name
2024-03-23 13:18:33 +01:00
bors
7f0f9f6580
Auto merge of #122852 - compiler-errors:raw-ptr, r=lcnr
...
Remove `TypeAndMut` from `ty::RawPtr` variant, make it take `Ty` and `Mutability`
Pretty much mechanically converting `ty::RawPtr(ty::TypeAndMut { ty, mutbl })` to `ty::RawPtr(ty, mutbl)` and its fallout.
r? lcnr
cc rust-lang/types-team#124
2024-03-22 20:34:14 +00:00
bjorn3
593228373d
Remove workaround for UB in cranelift-jit that has been fixed
2024-03-22 18:58:36 +00:00