-
Notifications
You must be signed in to change notification settings - Fork 13.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fail to build compiler-builtins for target x86_64-pc-windows-gnu #41630
Comments
@TimNN Do you have some thought about this? |
Sorry, I'm not really that much of a windows expert, although I can try and minify / reproduce if that also occurs when cross-compiling. |
Thanks for your attention @TimNN. I'm cross compiling from a Linux machine. I minified the case. The problems seems to be with naked functions #![feature(naked_functions)]
#[cfg(windows)]
#[naked]
pub unsafe fn f() {}
pub fn main() {} Do you have any suggestion who to contact? |
This affects 64bit MinGW and Msvc targets, here is a non-core repro: #![feature(lang_items, naked_functions, no_core)]
#![crate_type = "lib"]
#![no_core]
#[lang = "sized"]
trait Sized {}
#[lang = "copy"]
trait Copy {}
#[naked]
unsafe fn _f() {} I'l get try and get some minified IR. Nominating since this breaks |
IR: target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-windows-msvc"
define internal void @_ZN5naked2_f17h37d58925d66289bcE() naked {
start:
ret void
} Upstream bug: https://bugs.llvm.org/show_bug.cgi?id=32912 |
Edit: Another patch has been committed: llvm-mirror/llvm@6e53fe2 |
Works with nightly-2017-04-25 (llvm 3.9)
Fails with nightly-2017-04-26 (llvm 4.0)
The text was updated successfully, but these errors were encountered: