Skip to content

Commit e6bd0e7

Browse files
committed
---
yaml --- r: 4936 b: refs/heads/master c: e9f9ec6 h: refs/heads/master v: v3
1 parent bb41698 commit e6bd0e7

File tree

142 files changed

+2172
-3338
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

142 files changed

+2172
-3338
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 2e89edab1d3efad55e85af242055a065c6e096ca
2+
refs/heads/master: e9f9ec69724a0e65d930091f0fc9f512cf69a72b

trunk/doc/rust.texi

Lines changed: 140 additions & 76 deletions
Large diffs are not rendered by default.

trunk/mk/platform.mk

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ CFG_DSYMUTIL := true
99

1010
ifeq ($(CFG_OSTYPE), FreeBSD)
1111
CFG_LIB_NAME=lib$(1).so
12-
CFG_GCCISH_CFLAGS += -fPIC -march=i686 -I/usr/local/include
12+
CFG_GCCISH_CFLAGS += -fPIC -march=i686 -I/usr/local/include -O2
1313
CFG_GCCISH_LINK_FLAGS += -shared -fPIC -lpthread -lrt
1414
ifeq ($(CFG_CPUTYPE), x86_64)
1515
CFG_GCCISH_CFLAGS += -m32
@@ -22,7 +22,7 @@ endif
2222

2323
ifeq ($(CFG_OSTYPE), Linux)
2424
CFG_LIB_NAME=lib$(1).so
25-
CFG_GCCISH_CFLAGS += -fPIC -march=i686
25+
CFG_GCCISH_CFLAGS += -fPIC -march=i686 -O2
2626
CFG_GCCISH_LINK_FLAGS += -shared -fPIC -ldl -lpthread -lrt
2727
CFG_GCCISH_DEF_FLAG := -Wl,--export-dynamic,--dynamic-list=
2828
CFG_GCCISH_PRE_LIB_FLAGS := -Wl,-whole-archive
@@ -48,8 +48,8 @@ ifeq ($(CFG_OSTYPE), Darwin)
4848
# approaches welcome!
4949
#
5050
# NB: Currently GCC's optimizer breaks rustrt (task-comm-1 hangs) on Darwin.
51-
CFG_GCC_CFLAGS += -m32
52-
CFG_CLANG_CFLAGS += -m32
51+
CFG_GCC_CFLAGS += -m32 -O2
52+
CFG_CLANG_CFLAGS += -m32 -O2
5353
ifeq ($(CFG_CPUTYPE), x86_64)
5454
CFG_GCCISH_CFLAGS += -arch i386
5555
CFG_GCCISH_LINK_FLAGS += -arch i386
@@ -63,13 +63,6 @@ ifneq ($(findstring MINGW,$(CFG_OSTYPE)),)
6363
CFG_WINDOWSY := 1
6464
endif
6565

66-
ifdef CFG_DISABLE_OPTIMIZE_CXX
67-
$(info cfg: disabling C++ optimization (CFG_DISABLE_OPTIMIZE_CXX))
68-
CFG_GCCISH_CFLAGS += -O0
69-
else
70-
CFG_GCCISH_CFLAGS += -O2
71-
endif
72-
7366
CFG_TESTLIB=$(CFG_BUILD_DIR)/$(strip \
7467
$(if $(findstring stage0,$(1)), \
7568
stage0/lib, \
@@ -101,7 +94,7 @@ ifdef CFG_UNIXY
10194
CFG_VALGRIND += wine
10295
endif
10396

104-
CFG_GCCISH_CFLAGS := -fno-strict-aliasing -march=i586
97+
CFG_GCCISH_CFLAGS := -fno-strict-aliasing -march=i586 -O2
10598
CFG_GCCISH_PRE_LIB_FLAGS :=
10699
CFG_GCCISH_POST_LIB_FLAGS :=
107100
CFG_GCCISH_DEF_FLAG :=
@@ -137,7 +130,7 @@ ifdef CFG_WINDOWSY
137130
CFG_PATH_MUNGE := $(strip perl -i.bak -p \
138131
-e 's@\\(\S)@/\1@go;' \
139132
-e 's@^/([a-zA-Z])/@\1:/@o;')
140-
CFG_GCCISH_CFLAGS += -march=i686
133+
CFG_GCCISH_CFLAGS += -march=i686 -O2
141134
CFG_GCCISH_LINK_FLAGS += -shared -fPIC
142135
endif
143136

trunk/src/comp/back/abi.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,7 @@ const tydesc_field_cmp_glue: int = 10;
6060
const tydesc_field_shape: int = 11;
6161
const tydesc_field_shape_tables: int = 12;
6262
const tydesc_field_n_params: int = 13;
63-
const tydesc_field_obj_params: int = 14;
64-
const n_tydesc_fields: int = 15;
63+
const n_tydesc_fields: int = 14;
6564

6665
const cmp_glue_op_eq: uint = 0u;
6766

trunk/src/comp/back/upcall.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ type upcalls =
4343
ivec_spill: ValueRef,
4444
ivec_resize_shared: ValueRef,
4545
ivec_spill_shared: ValueRef,
46-
ivec_push: ValueRef,
4746
cmp_type: ValueRef,
4847
log_type: ValueRef,
4948
dynastack_mark: ValueRef,
@@ -91,7 +90,7 @@ fn declare_upcalls(_tn: type_names, tydesc_type: TypeRef,
9190
get_type_desc:
9291
d("get_type_desc",
9392
[T_ptr(T_nil()), T_size_t(), T_size_t(), T_size_t(),
94-
T_ptr(T_ptr(tydesc_type)), T_int()], T_ptr(tydesc_type)),
93+
T_ptr(T_ptr(tydesc_type))], T_ptr(tydesc_type)),
9594
ivec_resize:
9695
d("ivec_resize", [T_ptr(T_opaque_ivec()), T_int()], T_void()),
9796
ivec_spill:
@@ -102,9 +101,6 @@ fn declare_upcalls(_tn: type_names, tydesc_type: TypeRef,
102101
ivec_spill_shared:
103102
d("ivec_spill_shared", [T_ptr(T_opaque_ivec()), T_int()],
104103
T_void()),
105-
ivec_push:
106-
d("ivec_push", [T_ptr(T_opaque_ivec()), T_ptr(tydesc_type),
107-
T_ptr(T_i8())], T_void()),
108104
cmp_type:
109105
dr("cmp_type",
110106
[T_ptr(T_i1()), taskptr_type, T_ptr(tydesc_type),

trunk/src/comp/driver/rustc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ fn parse_input_src(sess: session::session, cfg: &ast::crate_cfg, infile: str)
108108
ret {crate: crate, src: src};
109109
}
110110

111-
fn time<@T>(do_it: bool, what: str, thunk: fn() -> T) -> T {
111+
fn time<T>(do_it: bool, what: str, thunk: fn() -> T) -> T {
112112
if !do_it { ret thunk(); }
113113
let start = std::time::precise_time_s();
114114
let rv = thunk();

trunk/src/comp/front/attr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ fn require_unique_names(sess: &session::session, metas: &[@ast::meta_item]) {
189189
}
190190
}
191191

192-
fn span<@T>(item: &T) -> ast::spanned<T> {
192+
fn span<T>(item: &T) -> ast::spanned<T> {
193193
ret {node: item, span: ast_util::dummy_sp()};
194194
}
195195

trunk/src/comp/front/test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ fn mk_test_module(cx: &test_ctxt) -> @ast::item {
170170
ret @item;
171171
}
172172

173-
fn nospan<@T>(t: &T) -> ast::spanned<T> {
173+
fn nospan<T>(t: &T) -> ast::spanned<T> {
174174
ret {node: t, span: dummy_sp()};
175175
}
176176

0 commit comments

Comments
 (0)