Commit graph

1278 commits

Author SHA1 Message Date
Nicholas Bishop
e4e03883ed Enable chkstk/alloca intrinsics on i686-unknown-uefi 2024-05-08 21:47:12 -04:00
Amanieu d'Antras
4781f0d75f
Merge pull request #602 from Amanieu/release-0.1.111
Release version 0.1.111
2024-05-04 21:00:53 +02:00
Amanieu d'Antras
2faef31e96 Release version 0.1.111 2024-05-04 19:57:27 +01:00
Amanieu d'Antras
52b85a1968
Merge pull request #601 from Patryk27/fix_avr_floats
fix: Add `#[avr_skip]` for `__addsf3` & `__adddf3`
2024-05-04 19:53:36 +02:00
Patryk Wychowaniec
461682bd91 fix: Add #[avr_skip] for __addsf3 & __adddf3
It looks like I've forgotten about them [back in 2023](https://github.com/rust-lang/compiler-builtins/pull/527).
2024-05-04 19:50:22 +02:00
Amanieu d'Antras
1ea3044bdf
Merge pull request #600 from Amanieu/release-0.1.110
Release version 0.1.110
2024-05-04 16:35:15 +02:00
Amanieu d'Antras
060391b020 Release version 0.1.110 2024-05-04 15:31:14 +01:00
Amanieu d'Antras
1af94b21ad
Merge pull request #599 from Enselic/update-ref
Update reference to rustc-std-workspace-core
2024-05-04 16:11:12 +02:00
Martin Nordholts
8c0c504d4f Update reference to rustc-std-workspace-core 2024-05-04 14:56:01 +02:00
Amanieu d'Antras
55f590fe3b
Merge pull request #598 from Amjad50/remove_weak-intrinsics
Apply `weak` attributes to all intrinsics
2024-05-03 13:30:21 +02:00
Amjad Alsharafi
ce8a0c346d Cleanup manged-names macro
Don't generate the whole function if we are not going to use `no_mangle`, there is no point
2024-05-03 13:27:03 +02:00
Amjad Alsharafi
e232a79146 Remove unneeded weak for optimized-c function
`weak` is only used with `no_mangle`
2024-05-03 13:27:03 +02:00
Amjad Alsharafi
2e096145c3 Apply weak attributes to all intrinsics
Removed the `weak-intrinsics` feature, so that all functions
will have the `weak` linkage attribute.

Also this fixed the bug in
https://github.com/rust-lang/rust/issues/124042.

Before this commit, generated code will be
```rust
pub extern "C" fn <name>(...) -> ... {
        // code...
}
pub mod <name> {
    #[linkage = "weak"]
    #[no_mangle]
    pub extern "C" fn <name>(...) -> ... {
        super::<name>(...)
    }
}
```

The issue is that there is 2 `weak` linkage, the first one is not required.
Along refactoring `weak` attributes, this was fixed.
2024-05-03 13:27:03 +02:00
Amanieu d'Antras
5daaeeaebc
Merge pull request #593 from beetrees/fix-f16-conv-c
Add builtins for `f16`/`f128` float conversions
2024-05-02 13:53:15 +02:00
beetrees
229babb1d0 Add builtins for f16/f128 float conversions 2024-05-02 13:49:24 +02:00
Chris Denton
0b4ddb1738
Merge pull request #594 from Amjad50/fix_libm_weak_link
Fix math libraries not being linked on some platforms
2024-04-30 21:32:48 +00:00
Amjad Alsharafi
656106f050 Updated libm to fix clippy warning 2024-04-30 23:28:43 +02:00
Amjad Alsharafi
f761f03822 Fix clippy warnings in math
The solution is not pretty, but not sure why we still get clippy
warning from one of the files in `libm` even though we use
`allow(clippy::all)`
2024-04-30 23:28:43 +02:00
Amjad Alsharafi
2ce9bc0cc1 Fix math libraries not being linked on some platforms
This is a continuation/fix of 018616e. In that commit, we made it add
the math functions to all platforms (except apple-targets and windows),
and use `weak` linking, so that it can be used if the system doesn't
have those functions.

Didn't notice `mod math` was behind another set of `cfg`, so removed it
as well here.
2024-04-30 23:28:43 +02:00
Amanieu d'Antras
6c10d7f035
Merge pull request #597 from beetrees/i128-readme
Update status of 128-bit integers in README.md
2024-04-29 12:10:20 +02:00
beetrees
a2587f7b02
Update status of 128-bit integers in README.md 2024-04-28 17:41:35 +01:00
Amanieu d'Antras
c9b8b33a5c
Merge pull request #591 from tgross35/testing-updates
Add a way to test more targets on non-linux machines
2024-04-19 18:05:23 +02:00
Trevor Gross
1b679e5cee Apply some more fixes suggested by Shellcheck 2024-04-19 11:49:23 -04:00
Trevor Gross
a55604fd8c Add a way to run tests on non-linux machines
Allow using the `rust-lang/rust:nightly` docker image to run tests in
cases where the host rust and cargo cannot be used, such as non-linux
hosts.
2024-04-19 11:49:23 -04:00
Amanieu d'Antras
f8002a4861
Merge pull request #592 from tgross35/lse-gating
Add a fix for aarch64-darwin and enable it in CI
2024-04-17 02:30:30 +02:00
Trevor Gross
d5bc2de9ec Add CI testing for AArch64 Darwin
The Apple ARM silicon has been around for a while now and hopefully will
become Rust Tier 1 at some point. Add it to CI since it is distinct
enough from aarch64-linux and x86_86-darwin that there may be
differences.
2024-04-16 14:04:47 -04:00
Trevor Gross
47f2241db9 Change aarch64_linux module and lse tests to have the same gating
Trying to run testcrate on non-linux aarch64 currently hits a
compilation error. Make this test linux-only, to be consistent with the
`aarch64_linux` module that it depends on.

Additionally, enable the `aarch64_linux` module for `target_arch =
"arm64ec"` to be the same as these tests.
2024-04-16 14:04:47 -04:00
Amanieu d'Antras
3eab86ff86
Merge pull request #589 from Amanieu/release-0.1.109
Release 0.1.109
2024-04-10 14:24:37 +02:00
Amanieu d'Antras
bd48df66bd Release 0.1.109 2024-04-10 13:16:43 +01:00
Amanieu d'Antras
16a1878dd3
Merge pull request #577 from Amjad50/weak_link_libm
Always have math functions but with `weak` linking attribute if we can
2024-04-10 13:44:16 +02:00
Amjad Alsharafi
6cf5c13e87 Do not include math intrinsics for windows and apple targets 2024-04-10 13:40:59 +02:00
Amjad Alsharafi
5416c204a9 Always have math functions but with weak linking attribute if we can
This is a replacement for https://github.com/rust-lang/libm/pull/290

This fixes crashes during compilations for targets that don't have math
symbols by default.

So, we will provide them libm symbols, but mark it as `weak` (if its
supported), so that the linker will choose the system builtin functions,
since those are sometimes more optimized.
If the linker couldn't find those, it will go with `libm`
implementation.
2024-04-10 13:40:59 +02:00
Amanieu d'Antras
73c95f89bc
Merge pull request #586 from RalfJung/lib.miri.rs
add lib.miri.rs file for miri-test-libstd
2024-04-10 13:02:03 +02:00
Ralf Jung
bf0ce314e9 add lib.miri.rs file for miri-test-libstd 2024-04-10 12:59:14 +02:00
Amanieu d'Antras
ee3aac600b
Merge pull request #588 from jeremyd2019/x86-add-__chkstk
Add __chkstk on i686-pc-windows-gnu.
2024-04-10 12:53:01 +02:00
Jeremy Drake
f23a83c53c Add __chkstk on i686-pc-windows-gnu.
libLLVMSupport.a(DynamicLibrary.cpp.obj) references ___chkstk, which is
an alias of __alloca in libgcc.  This crate provided __alloca, but
libgcc's implementation was also pulled in by the linker due to the
reference to ___chkstk, causing a multiple definition linker error.
Providing that symbol here prevents that.

Fixes #585
2024-04-07 13:08:27 -07:00
Amanieu d'Antras
45aa0926c0
Merge pull request #575 from kleisauke/sync-chkstk
Sync x86 chkstk intrinsics with LLVM
2024-03-30 19:21:10 +01:00
Kleis Auke Wolthuizen
f04f8a6a9d Sync x86 chkstk intrinsics with LLVM
Incorporates the following commits:
885d7b759b
1f9eff100c
7a5cba8bea
2024-03-29 19:51:56 +01:00
Amanieu d'Antras
2e5b0ec1fe
Merge pull request #580 from dpaoliello/arm64ec
Add support for arm64ec
2024-03-29 10:44:39 +00:00
Daniel Paoliello
30182128c9 Add support for arm64ec 2024-03-28 09:20:13 -07:00
Amanieu d'Antras
42ff3b3b23
Merge pull request #574 from trevyn/issue-167
Remove duplicate symbol workaround
2024-03-28 14:22:24 +00:00
trevyn
dc1321a5ca Remove duplicate symbol workaround 2024-03-28 14:19:13 +00:00
Amanieu d'Antras
b2bbd9dbbf
Merge pull request #579 from heiher/loongarch64-musl
Add compiler-rt fallbacks on loongarch64-musl
2024-03-28 14:16:05 +00:00
WANG Rui
75624cc8ae Add compiler-rt fallbacks on loongarch64-musl 2024-03-28 14:12:16 +00:00
Amanieu d'Antras
2012bf5c55
Merge pull request #583 from RalfJung/c_unwind
add c_unwind feature
2024-03-28 14:11:53 +00:00
Ralf Jung
ce85d06f3b add c_unwind feature 2024-03-28 11:33:03 +01:00
Amanieu d'Antras
69c38a77c0
Merge pull request #582 from Amanieu/ci-symbols
Fix CI
2024-03-28 10:21:48 +00:00
Amanieu d'Antras
68b5a7a0ad Clean up and rework CI script 2024-03-28 10:17:42 +00:00
Amanieu d'Antras
079d7d857c Release 0.1.108 2024-02-04 06:40:51 +00:00
Amanieu d'Antras
a1ff6ac8a9
Merge pull request #572 from nikic/remove-80-bit-builtins
Remove 80-bit builtins entirely
2024-02-04 06:37:17 +00:00