about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorDave Huseby <dhuseby@mozilla.com>2015-02-05 11:34:59 -0800
committerDave Huseby <dhuseby@mozilla.com>2015-02-11 14:49:10 -0800
commit2ece7a6831ed3cc034ff0526236c68d92b1b7510 (patch)
tree212a371fe4a21da5bb0e03c0272bfbed2dd86e7f /src/libstd
parent34590d6def06c5799c7f1f58b4097075a0c995bd (diff)
downloadrust-2ece7a6831ed3cc034ff0526236c68d92b1b7510.tar.gz
rust-2ece7a6831ed3cc034ff0526236c68d92b1b7510.zip
PR review fixes
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/sys/common/stack.rs14
1 files changed, 2 insertions, 12 deletions
diff --git a/src/libstd/sys/common/stack.rs b/src/libstd/sys/common/stack.rs
index bc4ea662318..5ebc851e194 100644
--- a/src/libstd/sys/common/stack.rs
+++ b/src/libstd/sys/common/stack.rs
@@ -195,12 +195,6 @@ pub unsafe fn record_sp_limit(limit: uint) {
         asm!("movq $0, %fs:32" :: "r"(limit) :: "volatile")
     }
 
-    #[cfg(target_os = "bitrig")]
-    #[inline(always)]
-    unsafe fn target_record_sp_limit(_: uint) {
-        // segmented stacks are disabled
-    }
-
     // x86
     #[cfg(all(target_arch = "x86",
               any(target_os = "macos", target_os = "ios")))]
@@ -240,6 +234,7 @@ pub unsafe fn record_sp_limit(limit: uint) {
     #[cfg(any(target_arch = "aarch64",
               target_arch = "powerpc",
               all(target_arch = "arm", target_os = "ios"),
+              target_os = "bitrig",
               target_os = "openbsd"))]
     unsafe fn target_record_sp_limit(_: uint) {
     }
@@ -290,12 +285,6 @@ pub unsafe fn get_sp_limit() -> uint {
         asm!("movq %fs:32, $0" : "=r"(limit) ::: "volatile");
         return limit;
     }
-    #[cfg(target_os = "bitrig")]
-    #[inline(always)]
-    unsafe fn target_get_sp_limit() -> uint {
-      return 2048;
-    }
-
 
     // x86
     #[cfg(all(target_arch = "x86",
@@ -344,6 +333,7 @@ pub unsafe fn get_sp_limit() -> uint {
     #[cfg(any(target_arch = "aarch64",
               target_arch = "powerpc",
               all(target_arch = "arm", target_os = "ios"),
+              target_os = "bitrig",
               target_os = "openbsd"))]
     #[inline(always)]
     unsafe fn target_get_sp_limit() -> uint {