summary refs log tree commit diff
path: root/src/libcore/ffi.rs
AgeCommit message (Collapse)AuthorLines
2019-01-03VaList::copy should not require a mutable refDan Robertson-1/+1
VaList::copy does not need to take a mutable reference. The va_copy intrinsic takes a immutable reference.
2018-12-12Bump to 1.33.0Alex Crichton-4/+0
* Update bootstrap compiler * Update version to 1.33.0 * Remove some `#[cfg(stage0)]` annotations Actually updating the version number is blocked on updating Cargo
2018-12-08Rollup merge of #56599 - dlrobertson:fix_va_arg, r=eddybMazdak Farrokhzad-0/+2
codegen: Fix va_list - aarch64 iOS/Windows ## Summary Fix code generated for `VaList` on Aarch64 iOS/Windows. ## Details According to the [Apple - ARM64 Function Calling Conventions]: > ... the type va_list is an alias for char * rather than for the struct > type specified in the generic PCS. The current implementation uses the generic Aarch64 structure for `VaList` for Aarch64 iOS. Switch to using the `char *` variant of the `VaList` and use the corresponding `emit_ptr_va_arg` for the `va_arg` intrinsic. Windows always uses the `char *` variant of the `VaList`. Update the `va_arg` intrinsic to use `emit_ptr_va_arg`. [Apple - ARM64 Function Calling Conventions]: https://developer.apple.com/library/archive/documentation/Xcode/Conceptual/iPhoneOSABIReference/Articles/ARM64FunctionCallingConventions.html
2018-12-07Various minor/cosmetic improvements to codeAlexander Regueiro-1/+1
2018-12-07codegen: Fix va_list - aaarch64 iOS/WindowsDan Robertson-0/+2
According to the Apple developer docs: > The type va_list is an alias for char * rather than for the struct > type specified in the generic PCS. The current implementation uses the generic Aarch64 structure for VaList for Aarch64 iOS. Windows always uses the char * variant of the va_list.
2018-11-26libcore: Add va_list lang item and intrinsicsDan Robertson-0/+185
- Add the llvm intrinsics used to manipulate a va_list. - Add the va_list lang item in order to allow implementing VaList in libcore.
2018-09-14Move std::os::raw::c_void into libcore and re-export in libstdIsaac Woods-0/+42