1
Fork 0

rust_for_linux: -Zreg-struct-return commandline flag for X86 (#116973)

This commit is contained in:
Andrew Zhogin 2024-09-24 16:35:00 +07:00
parent f005c7437d
commit 9aab517d63
15 changed files with 279 additions and 4 deletions

View file

@ -544,7 +544,10 @@ impl<'gcc, 'tcx> HasWasmCAbiOpt for CodegenCx<'gcc, 'tcx> {
impl<'gcc, 'tcx> HasX86AbiOpt for CodegenCx<'gcc, 'tcx> {
fn x86_abi_opt(&self) -> X86Abi {
X86Abi { regparm: self.tcx.sess.opts.unstable_opts.regparm }
X86Abi {
regparm: self.tcx.sess.opts.unstable_opts.regparm,
reg_struct_return: self.tcx.sess.opts.unstable_opts.reg_struct_return,
}
}
}