Skip to content

Commit 4069b86

Browse files
committed
---
yaml --- r: 28472 b: refs/heads/try c: 8fbe4b5 h: refs/heads/master v: v3
1 parent b8a8fd7 commit 4069b86

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
@@ -2,7 +2,7 @@
22
refs/heads/master: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
5-
refs/heads/try: 86e02554fd3e3795626cba4d50de6243c19ff972
5+
refs/heads/try: 8fbe4b58412b2818d4ef3d92259bdf5f88f61606
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: d0c6ce338884ee21843f4b40bf6bf18d222ce5df

branches/try/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/try/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)