Skip to content

Commit 9a2c516

Browse files
author
Dave Huseby
committed
---
yaml --- r: 184314 b: refs/heads/master c: 2ece7a6 h: refs/heads/master v: v3
1 parent 9e70bc4 commit 9a2c516

File tree

3 files changed

+12
-22
lines changed

3 files changed

+12
-22
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 34590d6def06c5799c7f1f58b4097075a0c995bd
2+
refs/heads/master: 2ece7a6831ed3cc034ff0526236c68d92b1b7510
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 522d09dfecbeca1595f25ac58c6d0178bbd21d7d
55
refs/heads/try: ccf8fedf1cffcb8f6f3581d53d220039e192fe77

trunk/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

trunk/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)