Skip to content

Commit 5d7c040

Browse files
committed
---
yaml --- r: 32556 b: refs/heads/dist-snap c: 8fbe4b5 h: refs/heads/master v: v3
1 parent 483621f commit 5d7c040

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: d0c6ce338884ee21843f4b40bf6bf18d222ce5df
99
refs/heads/incoming: d9317a174e434d4c99fc1a37fd7dc0d2f5328d37
10-
refs/heads/dist-snap: 86e02554fd3e3795626cba4d50de6243c19ff972
10+
refs/heads/dist-snap: 8fbe4b58412b2818d4ef3d92259bdf5f88f61606
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1212
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/dist-snap/src/libcore/rt.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,12 @@ fn rt_fail(expr: *c_char, file: *c_char, line: size_t) {
3939
rustrt::rust_upcall_fail(expr, file, line);
4040
}
4141

42+
#[rt(fail_)]
43+
fn rt_fail_(expr: *c_char, file: *c_char, line: size_t) {
44+
cleanup_stack_for_failure();
45+
rustrt::rust_upcall_fail(expr, file, line);
46+
}
47+
4248
#[rt(exchange_malloc)]
4349
fn rt_exchange_malloc(td: *c_char, size: uintptr_t) -> *c_char {
4450
return rustrt::rust_upcall_exchange_malloc(td, size);

branches/dist-snap/src/rustc/middle/trans/base.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2403,7 +2403,7 @@ fn gather_rtcalls(ccx: @crate_ctxt, crate: @ast::crate) {
24032403
// in some obscure place in LLVM if the user provides the wrong signature
24042404
// for an rtcall.
24052405
let expected_rtcalls =
2406-
~[~"exchange_free", ~"exchange_malloc", ~"fail", ~"free", ~"malloc"];
2406+
~[~"exchange_free", ~"exchange_malloc", ~"fail_", ~"free", ~"malloc"];
24072407
for vec::each(expected_rtcalls) |name| {
24082408
if !ccx.rtcalls.contains_key(name) {
24092409
fail fmt!("no definition for runtime call %s", name);

0 commit comments

Comments
 (0)