Skip to content

Commit b60bed9

Browse files
committed
auto merge of #12096 : brson/rust/morestack-addr, r=thestinger
2 parents 95483e3 + b91caac commit b60bed9

File tree

4 files changed

+0
-41
lines changed

4 files changed

+0
-41
lines changed

src/librustc/middle/trans/intrinsic.rs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -461,17 +461,6 @@ pub fn trans_intrinsic(ccx: @CrateContext,
461461
glue::call_visit_glue(bcx, visitor, td, None);
462462
RetVoid(bcx);
463463
}
464-
"morestack_addr" => {
465-
// FIXME This is a hack to grab the address of this particular
466-
// native function. There should be a general in-language
467-
// way to do this
468-
let llfty = type_of_rust_fn(bcx.ccx(), false, [], ty::mk_nil());
469-
let morestack_addr = decl_cdecl_fn(bcx.ccx().llmod, "__morestack",
470-
llfty, ty::mk_nil());
471-
let morestack_addr = PointerCast(bcx, morestack_addr,
472-
Type::nil().ptr_to());
473-
Ret(bcx, morestack_addr);
474-
}
475464
"offset" => {
476465
let ptr = get_param(decl, first_real_arg);
477466
let offset = get_param(decl, first_real_arg + 1);

src/librustc/middle/typeck/check/mod.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4127,9 +4127,6 @@ pub fn check_intrinsic_type(ccx: @CrateCtxt, it: &ast::ForeignItem) {
41274127
});
41284128
(0, ~[ td_ptr, visitor_object_ty ], ty::mk_nil())
41294129
}
4130-
"morestack_addr" => {
4131-
(0u, ~[], ty::mk_nil_ptr(ccx.tcx))
4132-
}
41334130
"offset" => {
41344131
(1,
41354132
~[

src/libstd/unstable/intrinsics.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -310,9 +310,6 @@ extern "rust-intrinsic" {
310310

311311
pub fn visit_tydesc(td: *TyDesc, tv: &mut TyVisitor);
312312

313-
/// Get the address of the `__morestack` stack growth function.
314-
pub fn morestack_addr() -> *();
315-
316313
/// Calculates the offset from a pointer. The offset *must* be in-bounds of
317314
/// the object, or one-byte-past-the-end. An arithmetic overflow is also
318315
/// undefined behaviour.

src/test/run-pass/morestack-address.rs

Lines changed: 0 additions & 24 deletions
This file was deleted.

0 commit comments

Comments
 (0)