Skip to content

Commit 82e5f3a

Browse files
committed
---
yaml --- r: 30494 b: refs/heads/incoming c: 8fbe4b5 h: refs/heads/master v: v3
1 parent 5911445 commit 82e5f3a

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
@@ -6,7 +6,7 @@ refs/heads/try: d324a424d8f84b1eb049b12cf34182bda91b0024
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: d0c6ce338884ee21843f4b40bf6bf18d222ce5df
9-
refs/heads/incoming: 86e02554fd3e3795626cba4d50de6243c19ff972
9+
refs/heads/incoming: 8fbe4b58412b2818d4ef3d92259bdf5f88f61606
1010
refs/heads/dist-snap: 2f32a1581f522e524009138b33b1c7049ced668d
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1212
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

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