Skip to content

Commit 2ece7a6

Browse files
author
Dave Huseby
committed
PR review fixes
1 parent 34590d6 commit 2ece7a6

File tree

2 files changed

+11
-21
lines changed

2 files changed

+11
-21
lines changed

mk/platform.mk

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -144,14 +144,14 @@ FIND_COMPILER = $(word 1,$(1:ccache=))
144144
define CFG_MAKE_TOOLCHAIN
145145
# Prepend the tools with their prefix if cross compiling
146146
ifneq ($(CFG_BUILD),$(1))
147-
CC_$(1)=$(CROSS_PREFIX_$(1))$(CC_$(1))
148-
CXX_$(1)=$(CROSS_PREFIX_$(1))$(CXX_$(1))
149-
CPP_$(1)=$(CROSS_PREFIX_$(1))$(CPP_$(1))
150-
AR_$(1)=$(CROSS_PREFIX_$(1))$(AR_$(1))
151-
RUSTC_CROSS_FLAGS_$(1)=-C linker=$$(call FIND_COMPILER,$$(CC_$(1))) \
152-
-C ar=$$(call FIND_COMPILER,$$(AR_$(1))) $(RUSTC_CROSS_FLAGS_$(1))
153-
154-
RUSTC_FLAGS_$(1)=$$(RUSTC_CROSS_FLAGS_$(1)) $(RUSTC_FLAGS_$(1))
147+
CC_$(1)=$(CROSS_PREFIX_$(1))$(CC_$(1))
148+
CXX_$(1)=$(CROSS_PREFIX_$(1))$(CXX_$(1))
149+
CPP_$(1)=$(CROSS_PREFIX_$(1))$(CPP_$(1))
150+
AR_$(1)=$(CROSS_PREFIX_$(1))$(AR_$(1))
151+
RUSTC_CROSS_FLAGS_$(1)=-C linker=$$(call FIND_COMPILER,$$(CC_$(1))) \
152+
-C ar=$$(call FIND_COMPILER,$$(AR_$(1))) $(RUSTC_CROSS_FLAGS_$(1))
153+
154+
RUSTC_FLAGS_$(1)=$$(RUSTC_CROSS_FLAGS_$(1)) $(RUSTC_FLAGS_$(1))
155155
endif
156156

157157
CFG_COMPILE_C_$(1) = $$(CC_$(1)) \
@@ -200,7 +200,7 @@ define CFG_MAKE_TOOLCHAIN
200200
# For the ARM, AARCH64, MIPS and POWER crosses, use the toolchain assembler
201201
# FIXME: We should be able to use the LLVM assembler
202202
CFG_ASSEMBLE_$(1)=$$(CC_$(1)) $$(CFG_GCCISH_CFLAGS_$(1)) \
203-
$$(CFG_DEPEND_FLAGS) $$(2) -c -o $$(1)
203+
$$(CFG_DEPEND_FLAGS) $$(2) -c -o $$(1)
204204

205205
endif
206206

src/libstd/sys/common/stack.rs

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -195,12 +195,6 @@ pub unsafe fn record_sp_limit(limit: uint) {
195195
asm!("movq $0, %fs:32" :: "r"(limit) :: "volatile")
196196
}
197197

198-
#[cfg(target_os = "bitrig")]
199-
#[inline(always)]
200-
unsafe fn target_record_sp_limit(_: uint) {
201-
// segmented stacks are disabled
202-
}
203-
204198
// x86
205199
#[cfg(all(target_arch = "x86",
206200
any(target_os = "macos", target_os = "ios")))]
@@ -240,6 +234,7 @@ pub unsafe fn record_sp_limit(limit: uint) {
240234
#[cfg(any(target_arch = "aarch64",
241235
target_arch = "powerpc",
242236
all(target_arch = "arm", target_os = "ios"),
237+
target_os = "bitrig",
243238
target_os = "openbsd"))]
244239
unsafe fn target_record_sp_limit(_: uint) {
245240
}
@@ -290,12 +285,6 @@ pub unsafe fn get_sp_limit() -> uint {
290285
asm!("movq %fs:32, $0" : "=r"(limit) ::: "volatile");
291286
return limit;
292287
}
293-
#[cfg(target_os = "bitrig")]
294-
#[inline(always)]
295-
unsafe fn target_get_sp_limit() -> uint {
296-
return 2048;
297-
}
298-
299288

300289
// x86
301290
#[cfg(all(target_arch = "x86",
@@ -344,6 +333,7 @@ pub unsafe fn get_sp_limit() -> uint {
344333
#[cfg(any(target_arch = "aarch64",
345334
target_arch = "powerpc",
346335
all(target_arch = "arm", target_os = "ios"),
336+
target_os = "bitrig",
347337
target_os = "openbsd"))]
348338
#[inline(always)]
349339
unsafe fn target_get_sp_limit() -> uint {

0 commit comments

Comments
 (0)