Skip to content

Commit 427f56c

Browse files
committed
---
yaml --- r: 21786 b: refs/heads/snap-stage3 c: 8fbe4b5 h: refs/heads/master v: v3
1 parent d744fc2 commit 427f56c

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
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: e430a699f2c60890d9b86069fd0c68a70ece7120
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 86e02554fd3e3795626cba4d50de6243c19ff972
4+
refs/heads/snap-stage3: 8fbe4b58412b2818d4ef3d92259bdf5f88f61606
55
refs/heads/try: ffbe0e0e00374358b789b0037bcb3a577cd218be
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/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/snap-stage3/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)