From 5b35c9caf5aa0b6811f0edd9e1cfdc0d2d702111 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Mon, 12 Dec 2011 11:56:27 -0800 Subject: [PATCH] rustc: Always write split stack prologues --- src/comp/back/link.rs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/comp/back/link.rs b/src/comp/back/link.rs index a451d9dbacc6..b8c140c73b2b 100644 --- a/src/comp/back/link.rs +++ b/src/comp/back/link.rs @@ -244,7 +244,7 @@ mod write { buf_o, LLVMAssemblyFile, CodeGenOptLevel, - opts.stack_growth)})}); + true)})}); } @@ -264,7 +264,7 @@ mod write { buf_o, LLVMObjectFile, CodeGenOptLevel, - opts.stack_growth)})}); + true)})}); } } else { // If we aren't saving temps then just output the file @@ -282,7 +282,7 @@ mod write { buf_o, FileType, CodeGenOptLevel, - opts.stack_growth)})}); + true)})}); } // Clean up and return @@ -651,9 +651,7 @@ fn link_binary(sess: session::session, } // Stack growth requires statically linking a __morestack function - if sess.get_opts().stack_growth { - gcc_args += ["-lmorestack"]; - } + gcc_args += ["-lmorestack"]; gcc_args += rpath::get_rpath_flags(sess, output);