Skip to content

Commit 5b35c9c

Browse files
committed
rustc: Always write split stack prologues
1 parent 283cf35 commit 5b35c9c

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/comp/back/link.rs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ mod write {
244244
buf_o,
245245
LLVMAssemblyFile,
246246
CodeGenOptLevel,
247-
opts.stack_growth)})});
247+
true)})});
248248
}
249249

250250

@@ -264,7 +264,7 @@ mod write {
264264
buf_o,
265265
LLVMObjectFile,
266266
CodeGenOptLevel,
267-
opts.stack_growth)})});
267+
true)})});
268268
}
269269
} else {
270270
// If we aren't saving temps then just output the file
@@ -282,7 +282,7 @@ mod write {
282282
buf_o,
283283
FileType,
284284
CodeGenOptLevel,
285-
opts.stack_growth)})});
285+
true)})});
286286
}
287287
// Clean up and return
288288

@@ -651,9 +651,7 @@ fn link_binary(sess: session::session,
651651
}
652652

653653
// Stack growth requires statically linking a __morestack function
654-
if sess.get_opts().stack_growth {
655-
gcc_args += ["-lmorestack"];
656-
}
654+
gcc_args += ["-lmorestack"];
657655

658656
gcc_args += rpath::get_rpath_flags(sess, output);
659657

0 commit comments

Comments
 (0)