diff options
| author | Brian Anderson <banderson@mozilla.com> | 2011-12-12 11:56:27 -0800 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2011-12-14 11:07:48 -0800 |
| commit | 5b35c9caf5aa0b6811f0edd9e1cfdc0d2d702111 (patch) | |
| tree | 4db4fd612b7d032945ed809e10a336af5be0713b | |
| parent | 283cf3541565ce12cc267fed6ef064a24325d1f5 (diff) | |
| download | rust-5b35c9caf5aa0b6811f0edd9e1cfdc0d2d702111.tar.gz rust-5b35c9caf5aa0b6811f0edd9e1cfdc0d2d702111.zip | |
rustc: Always write split stack prologues
| -rw-r--r-- | src/comp/back/link.rs | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/comp/back/link.rs b/src/comp/back/link.rs index a451d9dbacc..b8c140c73b2 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); |
