Amanieu d'Antras
092bbb67d4
Merge pull request #465 from thomcc/cast-before-transmute
2022-05-24 19:24:15 +02:00
Amanieu d'Antras
f1fe94e882
Merge pull request #462 from Patryk27/avr
2022-05-24 16:41:59 +02:00
Thom Chiovoloni
dcdd9bbc56
Avoid int to ptr transmute by casting first
2022-05-23 23:34:10 -07:00
Amanieu d'Antras
ddc5aa4ffb
Merge pull request #463 from m-ou-se/cfg-attr
2022-05-23 23:58:09 +02:00
Mara Bos
7ed26a7e7a
De-duplicate 128 bit float conv intrinsics using cfg_attr.
2022-05-20 15:04:36 +02:00
Mara Bos
2063e07b35
Support cfg_attr attributes in intrinsics!() macro.
2022-05-20 15:01:50 +02:00
Patryk Wychowaniec
a695a800d5
Fix division on AVRs
...
For division and modulo, AVR uses a custom calling convention that does
not match compiler_builtins' expectations, leading to non-working code¹.
Ideally we'd just use hand-written naked functions (as, afair, ARM
does), but that's a lot of code to port², so hopefully we'll be able to
do it gradually later.
For the time being, I'd suggest not compiling problematic functions for
AVR target - this causes avr-gcc (which is a mandatory part of Rust+AVR
toolchain anyway) to link hand-written assembly from libgcc, which is
confirmed to work.
I've tested the code locally on simavr and the patch seems to be working
correctly :-)
¹ https://github.com/rust-lang/rust/issues/82242 ,
https://github.com/rust-lang/rust/issues/83281
² 31048012db/libgcc/config/avr/lib1funcs.S
Closes https://github.com/rust-lang/rust/issues/82242
Closes https://github.com/rust-lang/rust/issues/83281
2022-05-17 23:21:45 +02:00
Amanieu d'Antras
7b90df962d
Merge pull request #461 from johannst/rv64-muldi3
2022-05-12 00:44:18 +02:00
Johannes Stoelp
65ec71d386
rv32 rv64: adapt conditional compilation
...
Adapt conditional compilation as:
rv32i : riscv:__mulsi3, riscv:__muldi3
rv32im: riscv:__mulsi3, int/mul:__muldi3
rv64i : riscv:__mulsi3, riscv:__muldi3
rv64im: riscv:__mulsi3, int/mul:__muldi3
2022-05-12 00:34:49 +02:00
Johannes Stoelp
10971912e8
rv64 implement muldi3 intrinsic
...
Implement the __muldi3 intrinsic to prevent infinite recursion during
multiplication on rv64 without the 'm' extension.
2022-05-02 23:00:12 +02:00
Amanieu d'Antras
c307915e78
Bump to 0.1.72
2022-03-30 19:39:47 +01:00
Amanieu d'Antras
0f0421fb12
Merge pull request #458 from pcc/emutls
2022-03-30 20:39:14 +02:00
Peter Collingbourne
c491ca7ec5
Build emutls.c on Android.
...
Android uses emulated TLS so we need a runtime support function
from this source file.
2022-03-24 11:25:47 -07:00
Amanieu d'Antras
8abefcd926
Bump to 0.1.71
2022-03-18 20:12:07 +00:00
Amanieu d'Antras
efe4e6aeb5
Merge pull request #457 from petrochenkov/strlen
2022-03-18 21:11:23 +01:00
Vadim Petrochenkov
7f535824f5
Provide an implementation of strlen to be used as a fallback
2022-03-18 21:42:11 +03:00
Amanieu d'Antras
1d52319c7c
Merge pull request #456 from vladimir-ea/watch_os
2022-03-11 17:06:48 +00:00
Vladimir Michael Eatwell
50c5587f82
[watch_os] Fix formatting
2022-03-08 10:19:34 +00:00
Vladimir Michael Eatwell
002fc52f00
[watch_os] add watchOS
2022-03-08 10:05:44 +00:00
Amanieu d'Antras
96339ec86d
Bump to 0.1.70
2022-02-16 01:18:05 +00:00
Amanieu d'Antras
9e9972cc96
Merge pull request #455 from nikic/float-win64
2022-02-16 01:17:27 +00:00
Nikita Popov
0575846f80
Handle Win64 builtins ABI change in LLVM 14
...
As of https://reviews.llvm.org/D110413 , these no longer use the
unadjusted ABI (and use normal C ABI instead, passing i128
indirectly and returning it as <2 x i64>).
To support both LLVM 14 and older versions, rustc will expose a
"llvm14-builtins-abi" target feature, based on which
compiler-builtins can chose the appropriate ABI.
This is needed for rust-lang/rust#93577 .
2022-02-15 16:29:29 +01:00
Amanieu d'Antras
e771805ee5
Bump to 0.1.69
2022-02-09 21:02:02 +00:00
Amanieu d'Antras
bb2e190251
Merge pull request #454 from Amanieu/typo
2022-02-09 21:01:41 +00:00
Amanieu d'Antras
5bdeade2c4
Fix typo in __aeabi_uldivmod
...
Accidentally introduced in #452
2022-02-09 21:01:07 +00:00
Amanieu d'Antras
2f988a88ff
Bump to 0.1.68
2022-02-06 09:59:11 +00:00
Amanieu d'Antras
eee41af6c7
Merge pull request #453 from Amanieu/libm
2022-02-06 09:58:42 +00:00
Amanieu d'Antras
f34d42cf49
Update libm submodule to 0.2.2
2022-02-06 09:53:16 +00:00
Amanieu d'Antras
e346c7c408
Merge pull request #452 from Amanieu/intrinsic_mod
2022-02-06 09:49:01 +00:00
Amanieu d'Antras
f03c7fd6af
Wrap all intrinsics in the intrinsics! macro
...
This ensures that each intrinsic ends up in a separate module, which in
turn (because rustc treats compiler_builtins specially) will result in
each intrinsic ending up in its own object file. This allows the linker
to only pick up object files for intrinsics that are missing and avoids
duplicate symbol definition errors.
2022-02-06 09:20:43 +00:00
Amanieu d'Antras
c51299d63a
Fix run-docker.sh so it can be run locally
2022-02-06 09:20:19 +00:00
Amanieu d'Antras
f5fa287bc2
Bump to 0.1.67
2022-01-28 12:47:27 +00:00
Amanieu d'Antras
a97bd66cdd
Merge pull request #450 from dcsommer/master
2022-01-28 07:41:57 +00:00
Daniel Sommermann
554fa533ab
Stop emitting duplicate symbols for armv7-linux-androideabi
...
The change in 186517b3266a7bb2b2310927f7342ea7f41790c3 was intended to
affect only `arm-linux-androideabi` but also affected
`armv7-linux-androideabi` which is not a pre-ARMv6 architecture.
Fixes #449
2022-01-27 12:02:40 -08:00
Amanieu d'Antras
df4d9cd6cc
Bump to 0.1.66
2021-12-13 02:25:49 +00:00
Amanieu d'Antras
1ade871eca
Merge pull request #448 from ayrtonm/truncdfsf2
2021-12-13 02:25:11 +00:00
Ayrton
9124cdc7ec
Remove truncdfsf2.c from sources in build.rs and add test for __truncdfsf2vfp
...
Also fixed the calling convention for truncdfsf2 on ARM
2021-12-12 21:12:42 -05:00
Ayrton
03b4f62337
Add __truncdfsf2vfp for ARM
2021-12-12 15:36:09 -05:00
Ayrton
39cd6082e4
Add attribute for ARM alias
2021-12-12 15:19:05 -05:00
Ayrton
9e65060184
Add __truncdfsf2 intrinsic
...
This adds the truncdfsf2 intrinsic and a corresponding fuzz test case. The
implementation of trunc is generic to make it easy to add truncdfhs2 and
truncsfhf2 if rust ever gets `f16` support.
2021-12-12 15:01:34 -05:00
Amanieu d'Antras
c7dc3215a1
Bump to 0.1.56
2021-12-10 00:11:25 +00:00
Amanieu d'Antras
680a4a1d80
Merge pull request #446 from Amanieu/asm
2021-12-10 00:11:03 +00:00
Amanieu d'Antras
0928b32141
Fix clippy lints
2021-12-10 00:04:25 +00:00
Amanieu d'Antras
4abfecabef
Import the asm! macro from core::arch
...
It is going to be removed from the prelude due to the decision in
https://github.com/rust-lang/rust/issues/87228
2021-12-09 23:57:26 +00:00
Amanieu d'Antras
c17d0c2780
Bump to 0.1.55
2021-11-28 15:30:04 +00:00
Amanieu d'Antras
3c104c961f
Merge pull request #444 from Amanieu/lse_o
2021-11-28 15:29:24 +00:00
Amanieu d'Antras
c750277268
Ensure AArch64 LSE object files have distinct names in an archive
...
This is needed by libtool which rejects archives that contain object
files with the same name multiple times.
Fixes #443
2021-11-28 13:02:09 +00:00
Amanieu d'Antras
a01a61bd36
Bump to 0.1.54
2021-11-28 11:19:54 +00:00
Amanieu d'Antras
4d80205405
Merge pull request #442 from cr1901/no-atomic
2021-11-28 11:19:31 +00:00
William D. Jones
f275e26e3d
Use fully-qualified syntax for abs_diff to avoid warning, which can trigger a compiler error.
2021-11-27 19:38:43 -05:00