rust/src/test
bors 71409184dc Auto merge of #29177 - vadimcn:rtstuff, r=alexcrichton
Note: for now, this change only affects `-windows-gnu` builds.

So why was this `libgcc` dylib dependency needed in the first place?
The stack unwinder needs to know about locations of unwind tables of all the modules loaded in the current process.  The easiest portable way of achieving this is to have each module register itself with the unwinder when loaded into the process.  All modules compiled by GCC do this by calling the __register_frame_info() in their startup code (that's `crtbegin.o` and `crtend.o`, which are automatically linked into any gcc output).
Another important piece is that there should be only one copy of the unwinder (and thus unwind tables registry) in the process.  This pretty much means that the unwinder must be in a shared library (unless everything is statically linked). 

Now, Rust compiler tries very hard to make sure that any given Rust crate appears in the final output just once.   So if we link the unwinder statically to one of Rust's crates, everything should be fine.

Unfortunately, GCC startup objects are built under assumption that `libgcc` is the one true place for the unwind info registry, so I couldn't find any better way than to replace them.  So out go `crtbegin`/`crtend`, in come `rsbegin`/`rsend`!  

A side benefit of this change is that rustc is now more in control of the command line that goes to the linker, so we could stop using `gcc` as the linker driver and just invoke `ld` directly.
2015-11-01 17:15:29 +00:00
..
auxiliary don't revisit modules while finding traits in suggest 2015-10-21 20:18:21 +03:00
bench Remove unnecessary parentheses around range expressions 2015-10-14 21:43:05 -04:00
codegen Set proper alignment on constants 2015-10-10 01:15:36 +02:00
compile-fail Auto merge of #29415 - nikomatsakis:issue-29161, r=nikomatsakis 2015-10-28 21:37:42 +00:00
compile-fail-fulldeps Move ExpnInfo to Name 2015-08-28 03:37:13 +05:30
debuginfo Remove the deprecated box(PLACE) syntax. 2015-09-24 18:00:08 +03:00
parse-fail libsyntax: improve error message when a statement is prefixed with a match keyword 2015-10-28 22:32:07 +00:00
pretty Changes to tests 2015-09-17 12:16:46 +12:00
run-fail Move test file to run-fail, since it does an unwrap 2015-10-28 18:48:49 -04:00
run-fail-fulldeps Move ExpnInfo to Name 2015-08-28 03:37:13 +05:30
run-make Auto merge of #29177 - vadimcn:rtstuff, r=alexcrichton 2015-11-01 17:15:29 +00:00
run-pass Auto merge of #29177 - vadimcn:rtstuff, r=alexcrichton 2015-11-01 17:15:29 +00:00
run-pass-fulldeps std: Stabilize library APIs for 1.5 2015-10-25 09:36:32 -07:00
run-pass-valgrind Use assert_eq! instead of assert! in tests 2015-06-13 14:55:55 +03:00
rustdoc Miscellaneous cleanup for old issues. 2015-09-20 11:37:08 +01:00