-
Notifications
You must be signed in to change notification settings - Fork 100
Conversation
I'm wandering whether it will need |
Ok, so this is a build dep, you still need to use |
That's been added, as well |
It should go into |
@farcaller I see. What's up with all the |
@farcaller this worked: diff --git a/src/lib/support.rs b/src/lib/support.rs
index 224910d..593c6a6 100644
--- a/src/lib/support.rs
+++ b/src/lib/support.rs
@@ -17,51 +17,6 @@
#![crate_type="rlib"]
#![feature(asm, intrinsics)]
-extern "rust-intrinsic" {
- pub fn offset<T>(dst: *const T, offset: int) -> *const T;
-}
-
-#[allow(non_camel_case_types)]
-pub type c_int = i32;
-
-#[no_mangle]
-#[no_split_stack]
-#[inline(never)]
-pub fn memcpy(dest: *mut u8, src: *const u8, n: int) {
- unsafe {
- let mut i = 0;
- while i < n {
- *(offset(dest as *const u8, i) as *mut u8) = *(offset(src, i));
- i += 1;
- }
- }
-}
-
-#[no_mangle]
-#[no_split_stack]
-pub extern "C" fn __aeabi_memcpy(dest: *mut u8, src: *const u8, n: int) {
- memcpy(dest, src, n);
-}
-
-#[no_mangle]
-#[no_split_stack]
-#[inline(never)]
-pub fn memset(s: *mut u8, c: c_int, n: int) {
- unsafe {
- let mut i = 0;
- while i < n {
- *(offset(s as *const u8, i) as *mut u8) = c as u8;
- i += 1;
- }
- }
-}
-
-#[no_mangle]
-#[no_split_stack]
-pub extern "C" fn __aeabi_memset(s: *mut u8, n: int, c: c_int) {
- memset(s, c, n);
-}
-
#[cfg(test)]
#[no_split_stack]
#[no_mangle] ...as far as |
The aebi should be in compiler-intrinsic if I remember correctly. |
@bharrisau so we don't need to define those? |
I have just grepped for either of these functions and none are called from anywhere apart from
|
We aren't using compiler-rt yet, so they need to be defined in support. On 19 July 2014 19:42, Ilya Dmitrichenko notifications@github.com wrote:
|
|
@farcaller @bharrisau any thoughts on that? |
The debug code is special case, leave it as is (it's going away anyways). |
Do I need to add anything here or, perhaps, test? |
Use rlibc crate Reviewed-by: farcaller
No description provided.