Commit Graph

1432 Commits

Author SHA1 Message Date
Nicholas Nethercote
427d6176c5 Rename DiagnosticArg{,Map,Name,Value} as DiagArg{,Map,Name,Value}. 2024-02-28 08:55:37 +11:00
Nicholas Nethercote
7005ef9699 Rename DiagnosticBuilder as Diag.
Much better!

Note that this involves renaming (and updating the value of)
`DIAGNOSTIC_BUILDER` in clippy.
2024-02-28 08:55:35 +11:00
antoyo
64fc213926
Merge pull request #456 from GuillaumeGomez/clone-gcc
Add clone-gcc command
2024-02-27 13:34:42 -05:00
Guillaume Gomez
6560fecbdf Add documentation on git_clone_root_dir 2024-02-27 18:48:29 +01:00
Erik Desjardins
70346fe2a4 introduce and use ptradd/inbounds_ptradd instead of gep 2024-02-26 22:45:53 -05:00
Erik Desjardins
19a648218f remove struct_gep, use manual layout calculations for va_arg 2024-02-26 22:28:09 -05:00
Erik Desjardins
7d086c72f7 always use gep inbounds i8 (ptradd) for field offsets 2024-02-26 22:28:09 -05:00
bors
b4b180c218 Auto merge of #121635 - 823984418:remove_archive_builder_lifetime_a, r=nnethercote
Remove useless lifetime of ArchiveBuilder

`trait ArchiveBuilder<'a>` has a seemingly useless lifetime a, so I remove it. If this is intentional, please reject this PR.

```rust
pub trait ArchiveBuilder<'a> {
    fn add_file(&mut self, path: &Path);

    fn add_archive(
        &mut self,
        archive: &Path,
        skip: Box<dyn FnMut(&str) -> bool + 'static>,
    ) -> io::Result<()>;

    fn build(self: Box<Self>, output: &Path) -> bool;
}
```
2024-02-27 03:27:48 +00:00
Guillaume Gomez
aed59f0a51 Add clone-gcc command 2024-02-26 22:43:46 +01:00
823984418
7f34119c1a remove useless lifetime of ArchiveBuilder 2024-02-26 22:37:04 +08:00
Ralf Jung
a06a87b37d rename 'try' intrinsic to 'catch_unwind' 2024-02-26 11:10:18 +01:00
Gary Guo
c7607b024e Implement asm goto for LLVM and GCC backend 2024-02-24 18:50:09 +00:00
tempdragon
2ffe9d1eef feat(int.rs&build.rs): Add location info to arithmetic operators
TODO:
1. Clean the unnecessary locations in builder.rs & int.rs
2. Add demangling support
3. Add debug scope support
4. Add vtable support
5. Clean up builder.rs locations
2024-02-24 20:12:08 +08:00
tempdragon
c638defad7 feat(debuginfo): Init Commit for debuginfo Support
TODO:
1. Add int.rs locations
2. Add demangling support
3. Add debug scope support
4. Add vtable support
5. Clean up builder.rs locations
2024-02-24 20:12:08 +08:00
antoyo
2262073092
Merge pull request #454 from rust-lang/update/gcc
Update gcc version
2024-02-23 12:51:42 -05:00
Antoni Boucher
bb5b75f28d Update gcc version 2024-02-23 12:32:14 -05:00
Ralf Jung
0abd3b76b7 remove simd_reduce_{min,max}_nanless 2024-02-21 20:50:47 +01:00
Ralf Jung
a9b5c0832f make simd_reduce_{mul,add}_unordered use only the 'reassoc' flag, not all fast-math flags 2024-02-21 16:28:20 +01:00
antoyo
2e67633d3c
Merge pull request #452 from GuillaumeGomez/master-cfg
Remove unused `feature = "master"` cfg in build_system
2024-02-21 09:28:12 -05:00
Guillaume Gomez
114c25feeb Pass --no-default-features to codegen as well 2024-02-21 14:58:04 +01:00
Guillaume Gomez
d2210d4976 Correctly pass --no-default-features when argument is passed 2024-02-21 14:42:24 +01:00
Guillaume Gomez
b87de7325f Correctly handle "master" feature 2024-02-21 14:31:34 +01:00
bors
7a991d522a Auto merge of #120718 - saethlin:reasonable-fast-math, r=nnethercote
Add "algebraic" fast-math intrinsics, based on fast-math ops that cannot return poison

Setting all of LLVM's fast-math flags makes our fast-math intrinsics very dangerous, because some inputs are UB. This set of flags permits common algebraic transformations, but according to the [LangRef](https://llvm.org/docs/LangRef.html#fastmath), only the flags `nnan` (no nans) and `ninf` (no infs) can produce poison.

And this uses the algebraic float ops to fix https://github.com/rust-lang/rust/issues/120720

cc `@orlp`
2024-02-21 09:43:33 +00:00
antoyo
e785093382
Merge pull request #450 from rust-lang/sync_from_rust_2024_02_20
Sync from rust 2024/02/20
2024-02-20 17:01:46 -05:00
Ben Kimock
6ff147b205 Add "algebraic" versions of the fast-math intrinsics 2024-02-20 12:39:03 -05:00
Antoni Boucher
e7b7c98e1c Fix tests 2024-02-20 12:02:09 -05:00
Antoni Boucher
c3d5b7fe3b Fix patches 2024-02-20 10:42:37 -05:00
Antoni Boucher
f6e16e95df Merge branch 'master' into sync_from_rust_2024_02_20 2024-02-20 10:24:06 -05:00
Antoni Boucher
6bbbf59951 Update to nightly-2024-02-20 2024-02-20 10:23:05 -05:00
antoyo
3e02db23af
Merge pull request #446 from sadlerap/fix-simd-gather
fix tests/ui/simd/issue-89193.rs and mark as passing
2024-02-18 14:26:57 -05:00
Andy Sadler
4ec4209ff5
use default as output type source in simd_gather
Signed-off-by: Andy Sadler <andrewsadler122@gmail.com>
2024-02-18 12:40:20 -06:00
antoyo
7600140979
Merge pull request #447 from tempdragon/master
feat(Cargo.toml): Set `rustc_private` to `true` to allow lsp parsing
2024-02-18 07:43:41 -05:00
bors
c350ae83e8 Auto merge of #121034 - obeis:improve-static-mut-ref, r=RalfJung
Improve wording of `static_mut_ref`

Close #120964
2024-02-18 08:00:34 +00:00
tempdragon
1f34c881e8 feat(Cargo.toml): Set rustc_private to true to allow lsp parsing 2024-02-18 14:36:39 +08:00
Obei Sideg
b959fc1d0a Improve wording of static_mut_ref
Rename `static_mut_ref` lint to `static_mut_refs`.
2024-02-18 06:01:40 +03:00
Andy Sadler
087456f122
mark tests/ui/simd/issue-89193.rs as failing for libgccjit12
Signed-off-by: Andy Sadler <andrewsadler122@gmail.com>
2024-02-17 18:07:11 -06:00
Andy Sadler
5ac9bee7f1
fix tests/ui/simd/issue-89193.rs and mark as passing
Work around an issue where usize and isize can sometimes (but not
always) get canonicalized to their corresponding integer type.  This
causes shuffle_vector to panic, since the types of the vectors it got
passed aren't the same.

Also insert a cast on the mask element, since we might get passed a
signed integer of any size, not just i32.  For now, we always cast to
i32.

Signed-off-by: Andy Sadler <andrewsadler122@gmail.com>
2024-02-17 17:24:46 -06:00
antoyo
32523557e7
Merge pull request #440 from rust-lang/use-default-mangling
Use the default rust mangling
2024-02-17 16:19:35 -05:00
Antoni Boucher
e116cb7811 Fix to use the correct libgccjit for the CI where 128-bit integers are disabled 2024-02-17 15:16:09 -05:00
Guillaume Gomez
1d171ae0cd
Merge pull request #445 from rust-lang/revert-432-master
Revert "Use shallow clone in test.rs to reduce cloning overhead"
2024-02-17 20:31:39 +01:00
Guillaume Gomez
0a66c555bd
Revert "Use shallow clone in test.rs to reduce cloning overhead" 2024-02-17 20:04:17 +01:00
Guillaume Gomez
79c8780d84
Merge pull request #432 from tempdragon/master
Use shallow clone in test.rs to reduce cloning overhead
2024-02-17 20:01:28 +01:00
Matthias Krüger
bd53510a9f Rollup merge of #121209 - nnethercote:infallible-join_codegen, r=bjorn3
Make `CodegenBackend::join_codegen` infallible.

Because they all are, in practice.

r? ```@bjorn3```
2024-02-17 18:47:42 +01:00
Matthias Krüger
e9aa2540c3 Rollup merge of #121085 - davidtwco:always-eager-diagnostics, r=nnethercote
errors: only eagerly translate subdiagnostics

Subdiagnostics don't need to be lazily translated, they can always be eagerly translated. Eager translation is slightly more complex as we need to have a `DiagCtxt` available to perform the translation, which involves slightly more threading of that context.

This slight increase in complexity should enable later simplifications - like passing `DiagCtxt` into `AddToDiagnostic` and moving Fluent messages into the diagnostic structs rather than having them in separate files (working on that was what led to this change).

r? ```@nnethercote```
2024-02-17 18:47:40 +01:00
antoyo
3c6a265ae4
Merge pull request #444 from GuillaumeGomez/improve-docs
Improve docs
2024-02-17 12:30:47 -05:00
Guillaume Gomez
79316d4e83 Split Readme even further 2024-02-17 17:58:29 +01:00
Guillaume Gomez
cb14f43de6 Improve instructions to start working on the project 2024-02-17 17:04:32 +01:00
Guillaume Gomez
6bdcc3c4c7 Move subtree part of Readme into its own doc file 2024-02-17 16:59:30 +01:00
Nicholas Nethercote
7b1ac28f1c Make CodegenBackend::join_codegen infallible.
Because they all are, in practice.
2024-02-17 10:51:35 +11:00
Antoni Boucher
af289a5eac Use the default rust mangling 2024-02-16 11:13:26 -05:00