-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-inline-assemblyArea: Inline assembly (`asm!(…)`)Area: Inline assembly (`asm!(…)`)C-bugCategory: This is a bug.Category: This is a bug.I-crashIssue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.O-macosOperating system: macOSOperating system: macOSrequires-nightlyThis issue requires a nightly compiler in some way.This issue requires a nightly compiler in some way.
Description
OS: OS X 10.8.5
Architecture: x86_64
$ rustc -v
rustc 0.11.0-pre-nightly (6291955 2014-05-19 23:41:20 -0700)
host: x86_64-apple-darwin
fn main() {
unsafe {
asm!("label:");
}
}
This code pass the compiler but cause segmentation fault.
Inline Assembly in LLVM is called at https://github.com/mozilla/rust/blob/master/src/rustllvm/RustWrapper.cpp#l173
The description of module level inline assembly about LLVM is here(http://llvm.org/docs/LangRef.html#module-level-inline-assembly)
Metadata
Metadata
Assignees
Labels
A-inline-assemblyArea: Inline assembly (`asm!(…)`)Area: Inline assembly (`asm!(…)`)C-bugCategory: This is a bug.Category: This is a bug.I-crashIssue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.O-macosOperating system: macOSOperating system: macOSrequires-nightlyThis issue requires a nightly compiler in some way.This issue requires a nightly compiler in some way.