Commit Graph

26 Commits

Author SHA1 Message Date
Alex Crichton
63982a3b9e
Expand wasm32 testing on CI (#360)
* Expand wasm32 testing on CI

Run the full `run.sh` test script to get full assertions, including that
nothing in the wasm compiler-builtins is panicking. Unfortunately it's
currently panicking, so this is good to weed out!

* Update libm
2020-05-29 14:38:29 -05:00
Alex Crichton
0e69cc8817
Switch to using llvm_asm! instead of asm! (#351)
* Switch to using `llvm_asm!` instead of `asm!`

* Run rustfmt

* Fix how LTO is specified on nightly
2020-04-29 15:30:10 -05:00
Alex Crichton
3f473cd3f3
Allow FFI-unsafe warnings for u128/i128 (#323)
* Allow FFI-unsafe warnings for u128/i128

Handle new warnings on nightly, and we shouldn't need to worry about
these with compiler-builtins since this is tied to a particular compiler.

* Clean up crate attributes

* No need for stability marker
* Rustdoc docs not used for this crate
* Remove old build-system related cruft from rustc itself.

* Run `cargo fmt`
2019-11-11 12:19:10 -06:00
Ralf Jung
8ae096b544 avoid bare trait objects 2019-07-13 11:07:43 +02:00
Sean Leather
3b18638b98
Fix typo: mingw_unwinding 2019-05-21 08:43:50 +02:00
Alex Crichton
b2cfc3a4f1 Run rustfmt over everything 2019-05-14 14:40:38 -07:00
Alex Crichton
6ddcff1475 Fix __divsi3 and __udivsi3 on thumbv6m targets
This commit fixes a bug accidentally introduced in #285 where some
lingering references remained to `#[cfg(thumbv6m)]` but this, since the
historical revert, was renamed to `#[cfg(thumb_1)]`. This caused on the
thumbv6m platform for the intrinsics to be accidentally omitted because
the build script didn't actually compile them but the Rust code thought
the C code was in use.

After correcting the `#[cfg]` statements the CI configuration for the
`thumb*` family of targets was all updated. The support for xargo
testing was removed from `run.sh` since it had long since bitrotted, and
the script was updated to simply build the intrinsics example to attempt
to link for each of these targets. This in turn exposed the bug locally
and allowed to confirm a fix once the `#[cfg]` statements were
corrected.

cc rust-lang/rust#60782
2019-05-14 12:26:09 -07:00
Alex Crichton
a6034d0b7b More fixes for i686-mingw 2019-04-02 13:02:22 -07:00
Alex Crichton
44181b42f4 Attempt to fix MinGW targets 2019-04-02 12:51:36 -07:00
Hugues de Valon
b8413ddc32 Remove thumbv6m configuration of intrinsic example
It seems that the intrinsics that were generated for the functions in
example/intrinsics.rs where different implementations were given for
thumb6m-none-eabi target, have now been implemented in Rust so
configuration is not needed anymore.
2019-03-14 12:58:29 +00:00
Alex Crichton
9690d3a17e Try to fix Windows build issue 2018-11-21 11:56:04 -08:00
Alex Crichton
e367858b0e Remove unknown feature 2018-11-21 11:07:07 -08:00
Paolo Teti
c03769a47e panic_handler is now stable
Fixes the following warning:

"warning: the feature `panic_handler` has been stable since
1.30.0 and no longer requires an attribute to enable"
2018-09-13 10:25:59 +02:00
Paolo Teti
8a4148f60b Rename panic_implementation -> panic_handler
panic_implementation has been deprecated/renamed.
New name is panic_handler
2018-09-01 21:17:07 +02:00
Alex Crichton
2095fdab37 Remove unused features 2018-08-17 11:21:28 -07:00
Alex Crichton
3ae27657a1 Try to fix intrinsics example on nightly 2018-07-12 09:29:32 -07:00
Alex Crichton
4f50a214f7 Try to fix example's compile on nightly 2018-07-12 08:32:39 -07:00
Alex Crichton
5f184b9b56 More attempts for intrinsics example 2018-05-12 07:21:36 -07:00
Alex Crichton
f58152286a More CI fixes 2018-05-11 16:52:34 -07:00
Alex Crichton
2fa53c4b67 Don't mangle probes all the time 2017-07-07 20:35:14 -07:00
Alex Crichton
6792390e3e Enable the intrinsics program on thumb 2017-06-25 10:09:50 -07:00
Alex Crichton
af944595d0 Try testing MinGW targets 2017-06-23 20:35:25 -07:00
Alex Crichton
1740b0b0f5 More windows linkage guesses 2017-06-23 06:53:09 -07:00
Alex Crichton
107cbd36a0 Try to fix linkage on windows 2017-06-22 23:41:28 -07:00
Alex Crichton
0f2515b715 Test with the 'c' feature enabled on CI 2017-06-22 14:32:16 -07:00
Jorge Aparicio
8dad658a6b move intrinsics test from src/bin to examples
with this change the libc crate is not required when calling `cargo build -p
compiler-builtins`
2017-04-11 17:09:05 -05:00