rust/src/librustc_trans/trans
bors 5aca49c693 Auto merge of #27338 - alexcrichton:remove-morestack, r=brson
This commit removes all morestack support from the compiler which entails:

* Segmented stacks are no longer emitted in codegen.
* We no longer build or distribute libmorestack.a
* The `stack_exhausted` lang item is no longer required

The only current use of the segmented stack support in LLVM is to detect stack
overflow. This is no longer really required, however, because we already have
guard pages for all threads and registered signal handlers watching for a
segfault on those pages (to print out a stack overflow message). Additionally,
major platforms (aka Windows) already don't use morestack.

This means that Rust is by default less likely to catch stack overflows because
if a function takes up more than one page of stack space it won't hit the guard
page. This is what the purpose of morestack was (to catch this case), but it's
better served with stack probes which have more cross platform support and no
runtime support necessary. Until LLVM supports this for all platform it looks
like morestack isn't really buying us much.

cc #16012 (still need stack probes)
Closes #26458 (a drive-by fix to help diagnostics on stack overflow)

r? @brson
2015-08-10 23:40:54 +00:00
..
debuginfo rename ADTDef to AdtDef etc. 2015-08-07 15:03:09 +03:00
_match.rs use VariantDef instead of struct_fields 2015-08-06 16:54:40 +03:00
adt.rs rename ADTDef to AdtDef etc. 2015-08-07 15:03:09 +03:00
asm.rs
attributes.rs Remove morestack support 2015-08-10 16:35:44 -07:00
base.rs Auto merge of #27338 - alexcrichton:remove-morestack, r=brson 2015-08-10 23:40:54 +00:00
basic_block.rs
build.rs
builder.rs
cabi_aarch64.rs
cabi_arm.rs
cabi_mips.rs
cabi_powerpc.rs
cabi_x86_64.rs
cabi_x86_win64.rs
cabi_x86.rs
cabi.rs
callee.rs use VariantDef instead of struct_fields 2015-08-06 16:54:40 +03:00
cleanup.rs Implement Win64 eh_personality natively. 2015-07-30 11:35:16 -07:00
closure.rs
common.rs rename ADTDef to AdtDef etc. 2015-08-07 15:03:09 +03:00
consts.rs cache Ty::is_simd 2015-08-06 18:26:00 +03:00
context.rs Remove morestack support 2015-08-10 16:35:44 -07:00
controlflow.rs
datum.rs Make C_u8 take a u8 instead of a usize value 2015-08-05 09:56:29 +02:00
declare.rs Remove morestack support 2015-08-10 16:35:44 -07:00
expr.rs cache Ty::is_simd 2015-08-06 18:26:00 +03:00
foreign.rs cache Ty::is_simd 2015-08-06 18:26:00 +03:00
glue.rs cache Ty::is_simd 2015-08-06 18:26:00 +03:00
inline.rs use VariantDef instead of struct_fields 2015-08-06 16:54:40 +03:00
intrinsic.rs When a nounwind function has a personality routine, LLVM messes up .seh directives (happens to rust_try in optimized builds). A workaround is to give rust_try the uwtable attribute. 2015-08-01 22:00:46 -07:00
llrepr.rs
machine.rs
macros.rs
meth.rs remove get_ident and get_name, make as_str sound 2015-07-28 18:07:20 +02:00
mod.rs
monomorphize.rs rename ADTDef to AdtDef etc. 2015-08-07 15:03:09 +03:00
tvec.rs
type_.rs Remove #[cfg(stage0)] annotation 2015-08-09 22:05:23 +02:00
type_of.rs cache Ty::is_simd 2015-08-06 18:26:00 +03:00
value.rs