]> git.lizzy.rs Git - rust.git/commit
Feature gate SIMD in FFI, due to unknown ABIs.
authorHuon Wilson <dbau.pp+github@gmail.com>
Thu, 15 Jan 2015 23:16:20 +0000 (10:16 +1100)
committerHuon Wilson <dbau.pp+github@gmail.com>
Sat, 17 Jan 2015 00:55:46 +0000 (11:55 +1100)
commitc8e0e9549d4327c54d9eb5fd0de5e23312c34fe9
tree7fffb2a1707a94f4ad61f207700b8bb8ca3b8919
parent4f08de84c923f08535e9a6f754b2776286ebcd01
Feature gate SIMD in FFI, due to unknown ABIs.

I don't know if this handling of SIMD types is correct for the C ABI on
all platforms, so lets add an even finer feature gate than just the
`simd` one.

The `simd` one can be used with (relatively) little risk of complete
nonsense, the reason for it is that it is likely that things will
change. Using the types in FFI with an incorrect ABI will at best give
absolute nonsense results, but possibly cause serious breakage too, so
this is a step up in badness, hence a new feature gate.
src/librustc_trans/trans/foreign.rs
src/libsyntax/feature_gate.rs
src/test/compile-fail/feature-gate-simd-ffi.rs [new file with mode: 0644]
src/test/run-make/simd-ffi/simd.rs