Skip to content

Commit 5790e01

Browse files
committed
---
yaml --- r: 169911 b: refs/heads/auto c: b8e404f h: refs/heads/master i: 169909: c020efc 169907: b319168 169903: 2ea8d5f v: v3
1 parent e9e61f2 commit 5790e01

File tree

1,718 files changed

+49354
-39138
lines changed

Some content is hidden

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

1,718 files changed

+49354
-39138
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1010
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1111
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1212
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
13-
refs/heads/auto: 4ee73a124c828831e97201649a6e71f6d5b4f83c
13+
refs/heads/auto: b8e404f289b8f6a900bc07d78a8888611437d40c
1414
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1515
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1616
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

branches/auto/.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# RVM/bundler/ruby and whatnot. Right now 'rust' as a language actually
33
# downloads a rust/cargo snapshot, which we don't really want for building rust.
44
language: c
5+
sudo: false
56

67
# The test suite is in general way too stressful for travis, especially in
78
# terms of time limit and reliability. In the past we've tried to scale things

branches/auto/AUTHORS.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -498,6 +498,7 @@ Robert Irelan <[email protected]>
498498
Robert Knight <[email protected]>
499499
Robert Millar <[email protected]>
500500
Roland Tanglao <[email protected]>
501+
Rolf Timmermans <[email protected]>
501502
Ron Dahlgren <[email protected]>
502503
Roy Frostig <[email protected]>
503504

branches/auto/CONTRIBUTING.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,14 @@ example, if it's 2014, and you change a Rust file that was created in
4747
// Copyright 2010-2014 The Rust Project Developers.
4848
```
4949

50+
# Coordination and communication
51+
52+
Get feedback from other developers on
53+
[discuss.rust-lang.org][discuss], and
54+
[#rust-internals][pound-rust-internals].
55+
56+
[pound-rust-internals]: http://chat.mibbit.com/?server=irc.mozilla.org&channel=%23rust-internals
57+
[discuss]: http://discuss.rust-lang.org
58+
5059
For more details, please refer to
5160
[Note-development-policy](https://github.com/rust-lang/rust/wiki/Note-development-policy).

branches/auto/Makefile.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
# This is hardly all there is to know of The Rust Build System's
100100
# mysteries. The tale continues on the wiki[1][2].
101101
#
102-
# [1]: https://github.com/rust-lang/rust/wiki/Note-build-system
102+
# [1]: https://github.com/rust-lang/rust/wiki/Note-getting-started-developing-Rust
103103
# [2]: https://github.com/rust-lang/rust/wiki/Note-testsuite
104104
#
105105
# If you really feel like getting your hands dirty, then:

branches/auto/configure

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -444,6 +444,10 @@ case $CFG_CPUTYPE in
444444
CFG_OSTYPE="${CFG_OSTYPE}eabihf"
445445
;;
446446

447+
aarch64)
448+
CFG_CPUTYPE=aarch64
449+
;;
450+
447451
x86_64 | x86-64 | x64 | amd64)
448452
CFG_CPUTYPE=x86_64
449453
;;
@@ -988,7 +992,7 @@ do
988992
make_dir $t/rt/jemalloc
989993
for i in \
990994
isaac sync test \
991-
arch/i386 arch/x86_64 arch/arm arch/mips
995+
arch/i386 arch/x86_64 arch/arm arch/aarch64 arch/mips
992996
do
993997
make_dir $t/rt/stage$s/$i
994998
done
@@ -1165,7 +1169,7 @@ do
11651169

11661170
msg "configuring LLVM for $gnu_t"
11671171

1168-
LLVM_TARGETS="--enable-targets=x86,x86_64,arm,mips"
1172+
LLVM_TARGETS="--enable-targets=x86,x86_64,arm,aarch64,mips"
11691173
LLVM_BUILD="--build=$gnu_t"
11701174
LLVM_HOST="--host=$gnu_t"
11711175
LLVM_TARGET="--target=$gnu_t"

branches/auto/man/rustc.1

Lines changed: 79 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -12,75 +12,54 @@ This program is a compiler for the Rust language, available at
1212
.SH OPTIONS
1313

1414
.TP
15-
\fB\-\-crate-name NAME\fR
16-
Specify the name of the crate being built
17-
.TP
18-
\fB\-\-crate-type=[bin|lib|dylib|rlib|staticlib]\fR
19-
Configure the flavor of rust crate that is generated (default `bin`)
15+
\fB\-h\fR, \fB\-\-help\fR
16+
Display the help message
2017
.TP
2118
\fB\-\-cfg\fR SPEC
2219
Configure the compilation environment
2320
.TP
24-
\fB\-\-emit=[asm,ir,bc,obj,link]\fR
25-
Configure the output that rustc will produce
26-
.TP
27-
\fB\-h\fR, \fB\-\-help\fR
28-
Display this message
29-
.TP
3021
\fB\-L\fR PATH
3122
Add a directory to the library search path
3223
.TP
33-
\fB\-\-no\-trans\fR
34-
Run all passes except translation; no output
24+
\fB\-l\fR NAME[:KIND]
25+
Link the generated crate(s) to the specified native library NAME. The optional
26+
KIND can be one of, static, dylib, or framework. If omitted, dylib is assumed.
3527
.TP
36-
\fB\-\-no\-analysis\fR
37-
Parse and expand the source, but run no analysis and produce no output
28+
\fB\-\-crate-type\fR [bin|lib|rlib|dylib|staticlib]
29+
Comma separated list of types of crates for the compiler to emit
3830
.TP
39-
\fB\-g\fR
40-
Emit DWARF debug information into object files generated.
31+
\fB\-\-crate-name NAME\fR
32+
Specify the name of the crate being built
4133
.TP
42-
\fB\-\-debuginfo\fR LEVEL
43-
Emit DWARF debug info to the objects created: 0 = no debug info, 1 =
44-
line-tables only (for stacktraces and breakpoints), 2 = full debug
45-
info with variable and type information (same as -g).
34+
\fB\-\-emit\fR [asm|llvm-bc|llvm-ir|obj|link|dep-info]
35+
Configure the output that rustc will produce
36+
.TP
37+
\fB\-\-print\fR [crate-name|file-names|sysroot]
38+
Comma separated list of compiler information to print on stdout
39+
.TP
40+
\fB\-g\fR
41+
Equivalent to \fI\-C\fR debuginfo=2
4642
.TP
4743
\fB\-O\fR
48-
Equivalent to \fI\-\-opt\-level=2\fR
44+
Equivalent to \fI\-C\fR opt-level=2
4945
.TP
5046
\fB\-o\fR FILENAME
51-
Write output to <filename>. Ignored if more than one --emit is specified.
52-
.TP
53-
\fB\-\-opt\-level\fR LEVEL
54-
Optimize with possible levels 0-3
47+
Write output to <filename>. Ignored if multiple \fI\-\-emit\fR outputs are
48+
specified.
5549
.TP
5650
\fB\-\-out\-dir\fR DIR
57-
Write output to compiler-chosen filename in <dir>. Ignored if -o is specified.
58-
(default the current directory)
59-
.TP
60-
\fB\-\-parse\-only\fR
61-
Parse only; do not compile, assemble, or link
51+
Write output to compiler-chosen filename in <dir>. Ignored if \fI\-o\fR is
52+
specified. Defaults to the current directory.
6253
.TP
63-
\fB\-\-pretty\fR [TYPE]
64-
Pretty-print the input instead of compiling; valid types are: normal
65-
(un-annotated source), expanded (crates expanded), typed (crates
66-
expanded, with type annotations), identified (fully parenthesized,
67-
AST nodes and blocks with IDs), or flowgraph=<nodeid> (graphviz
68-
formatted flowgraph for node)
69-
.TP
70-
\fB\-\-dep-info\fR [FILENAME]
71-
Output dependency info to <filename> after compiling, in a format suitable
72-
for use by Makefiles.
73-
.TP
74-
\fB\-\-sysroot\fR PATH
75-
Override the system root
54+
\fB\-\-explain\fR OPT
55+
Provide a detailed explanation of an error message
7656
.TP
7757
\fB\-\-test\fR
7858
Build a test harness
7959
.TP
8060
\fB\-\-target\fR TRIPLE
81-
Target triple cpu-manufacturer-kernel[-os] to compile for (see
82-
http://sources.redhat.com/autobook/autobook/autobook_17.html
83-
for details)
61+
Target triple cpu-manufacturer-kernel[-os] to compile for (see chapter 3.4 of
62+
http://www.sourceware.org/autobook/ for details)
8463
.TP
8564
\fB\-W\fR help
8665
Print 'lint' options and default settings
@@ -97,15 +76,30 @@ Set lint denied
9776
\fB\-F\fR OPT, \fB\-\-forbid\fR OPT
9877
Set lint forbidden
9978
.TP
100-
\fB\-Z\fR FLAG
101-
Set internal debugging options. Use "-Z help" to print available options.
102-
.TP
10379
\fB\-C\fR FLAG[=VAL], \fB\-\-codegen\fR FLAG[=VAL]
10480
Set a codegen-related flag to the value specified. Use "-C help" to print
10581
available flags. See CODEGEN OPTIONS below
10682
.TP
107-
\fB\-v\fR, \fB\-\-version\fR
83+
\fB\-V\fR, \fB\-\-version\fR
10884
Print version info and exit
85+
.TP
86+
\fB\-v\fR, \fB\-\-verbose\fR
87+
Use verbose output
88+
.TP
89+
\fB\-\-extern\fR NAME=PATH
90+
Specify where an external rust library is located
91+
.TP
92+
\fB\-\-sysroot\fR PATH
93+
Override the system root
94+
.TP
95+
\fB\-Z\fR FLAG
96+
Set internal debugging options. Use "-Z help" to print available options.
97+
.TP
98+
\fB\-\-color\fR auto|always|never
99+
Configure coloring of output:
100+
auto = colorize, if output goes to a tty (default);
101+
always = always colorize output;
102+
never = never colorize output
109103

110104
.SH CODEGEN OPTIONS
111105

@@ -121,6 +115,9 @@ objects.
121115
A space-separated list of extra arguments to pass to the linker when the linker
122116
is invoked.
123117
.TP
118+
\fBlto\fR
119+
Perform LLVM link-time optimizations.
120+
.TP
124121
\fBtarget-cpu\fR=help
125122
Selects a target processor. If the value is 'help', then a list of available
126123
CPUs is printed.
@@ -167,8 +164,38 @@ Prefers dynamic linking to static linking.
167164
\fBno-integrated-as\fR
168165
Force usage of an external assembler rather than LLVM's integrated one.
169166
.TP
167+
\fBno-redzone\fR
168+
Disable the use of the redzone.
169+
.TP
170170
\fBrelocation-model\fR=[pic,static,dynamic-no-pic]
171-
The relocation model to use. (default: pic)
171+
The relocation model to use. (Default: pic)
172+
.TP
173+
\fBcode-model\fR=[small,kernel,medium,large]
174+
Choose the code model to use.
175+
.TP
176+
\fBmetadata\fR=val
177+
Metadata to mangle symbol names with.
178+
.TP
179+
\fBextra-filename\fR=val
180+
Extra data to put in each output filename.
181+
.TP
182+
\fBcodegen-units\fR=val
183+
Divide crate into N units to optimize in parallel.
184+
.TP
185+
\fBremark\fR=val
186+
Print remarks for these optimization passes (space separated, or "all").
187+
.TP
188+
\fBno-stack-check\fR
189+
Disable checks for stack exhaustion (a memory-safety hazard!).
190+
.TP
191+
\fBdebuginfo\fR=val
192+
Debug info emission level:
193+
0 = no debug info;
194+
1 = line-tables only (for stacktraces and breakpoints);
195+
2 = full debug info with variable and type information.
196+
.TP
197+
\fBopt-level\fR=val
198+
Optimize with possible levels 0-3
172199

173200
.SH "EXAMPLES"
174201
To build an executable from a source file with a main function:
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# aarch64-unknown-linux-gnu configuration
2+
CROSS_PREFIX_aarch64-unknown-linux-gnu=aarch64-linux-gnu-
3+
CC_aarch64-unknown-linux-gnu=gcc
4+
CXX_aarch64-unknown-linux-gnu=g++
5+
CPP_aarch64-unknown-linux-gnu=gcc -E
6+
AR_aarch64-unknown-linux-gnu=ar
7+
CFG_LIB_NAME_aarch64-unknown-linux-gnu=lib$(1).so
8+
CFG_STATIC_LIB_NAME_aarch64-unknown-linux-gnu=lib$(1).a
9+
CFG_LIB_GLOB_aarch64-unknown-linux-gnu=lib$(1)-*.so
10+
CFG_LIB_DSYM_GLOB_aarch64-unknown-linux-gnu=lib$(1)-*.dylib.dSYM
11+
CFG_JEMALLOC_CFLAGS_aarch64-unknown-linux-gnu := -D__aarch64__ $(CFLAGS)
12+
CFG_GCCISH_CFLAGS_aarch64-unknown-linux-gnu := -Wall -g -fPIC -D__aarch64__ $(CFLAGS)
13+
CFG_GCCISH_CXXFLAGS_aarch64-unknown-linux-gnu := -fno-rtti $(CXXFLAGS)
14+
CFG_GCCISH_LINK_FLAGS_aarch64-unknown-linux-gnu := -shared -fPIC -g
15+
CFG_GCCISH_DEF_FLAG_aarch64-unknown-linux-gnu := -Wl,--export-dynamic,--dynamic-list=
16+
CFG_GCCISH_PRE_LIB_FLAGS_aarch64-unknown-linux-gnu := -Wl,-whole-archive
17+
CFG_GCCISH_POST_LIB_FLAGS_aarch64-unknown-linux-gnu := -Wl,-no-whole-archive
18+
CFG_DEF_SUFFIX_aarch64-unknown-linux-gnu := .linux.def
19+
CFG_LLC_FLAGS_aarch64-unknown-linux-gnu :=
20+
CFG_INSTALL_NAME_aarch64-unknown-linux-gnu =
21+
CFG_EXE_SUFFIX_aarch64-unknown-linux-gnu :=
22+
CFG_WINDOWSY_aarch64-unknown-linux-gnu :=
23+
CFG_UNIXY_aarch64-unknown-linux-gnu := 1
24+
CFG_PATH_MUNGE_aarch64-unknown-linux-gnu := true
25+
CFG_LDPATH_aarch64-unknown-linux-gnu :=
26+
CFG_RUN_aarch64-unknown-linux-gnu=$(2)
27+
CFG_RUN_TARG_aarch64-unknown-linux-gnu=$(call CFG_RUN_aarch64-unknown-linux-gnu,,$(2))
28+
RUSTC_FLAGS_aarch64-unknown-linux-gnu :=
29+
RUSTC_CROSS_FLAGS_aarch64-unknown-linux-gnu :=
30+
CFG_GNU_TRIPLE_aarch64-unknown-linux-gnu := aarch64-unknown-linux-gnu

branches/auto/mk/cfg/x86_64-unknown-dragonfly.mk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ CFG_LIB_NAME_x86_64-unknown-dragonfly=lib$(1).so
77
CFG_STATIC_LIB_NAME_x86_64-unknown-dragonfly=lib$(1).a
88
CFG_LIB_GLOB_x86_64-unknown-dragonfly=lib$(1)-*.so
99
CFG_LIB_DSYM_GLOB_x86_64-unknown-dragonfly=$(1)-*.dylib.dSYM
10-
CFG_JEMALLOC_CFLAGS_x86_64-unknown-dragonfly := -I/usr/include -I/usr/local/include $(CFLAGS)
11-
CFG_GCCISH_CFLAGS_x86_64-unknown-dragonfly := -Wall -Werror -g -fPIC -I/usr/include -I/usr/local/include $(CFLAGS)
12-
CFG_GCCISH_LINK_FLAGS_x86_64-unknown-dragonfly := -shared -fPIC -g -pthread -lrt
10+
CFG_JEMALLOC_CFLAGS_x86_64-unknown-dragonfly := -m64 -I/usr/include -I/usr/local/include $(CFLAGS)
11+
CFG_GCCISH_CFLAGS_x86_64-unknown-dragonfly := -Wall -Werror -g -fPIC -m64 -I/usr/include -I/usr/local/include $(CFLAGS)
12+
CFG_GCCISH_LINK_FLAGS_x86_64-unknown-dragonfly := -shared -fPIC -g -pthread -lrt -m64
1313
CFG_GCCISH_DEF_FLAG_x86_64-unknown-dragonfly := -Wl,--export-dynamic,--dynamic-list=
1414
CFG_GCCISH_PRE_LIB_FLAGS_x86_64-unknown-dragonfly := -Wl,-whole-archive
1515
CFG_GCCISH_POST_LIB_FLAGS_x86_64-unknown-dragonfly := -Wl,-no-whole-archive

branches/auto/mk/clean.mk

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ clean-generic-$(2)-$(1):
6464
-name '*.dll' -o \
6565
-name '*.def' -o \
6666
-name '*.py' -o \
67+
-name '*.pyc' -o \
6768
-name '*.bc' \
6869
\) \
6970
| xargs rm -f
@@ -79,7 +80,7 @@ define CLEAN_HOST_STAGE_N
7980

8081
clean$(1)_H_$(2): \
8182
$$(foreach crate,$$(CRATES),clean$(1)_H_$(2)-lib-$$(crate)) \
82-
$$(foreach tool,$$(TOOLS) $$(DEBUGGER_BIN_SCRIPTS),clean$(1)_H_$(2)-tool-$$(tool))
83+
$$(foreach tool,$$(TOOLS) $$(DEBUGGER_BIN_SCRIPTS_ALL),clean$(1)_H_$(2)-tool-$$(tool))
8384
$$(Q)rm -fr $(2)/rt/libbacktrace
8485

8586
clean$(1)_H_$(2)-tool-%:
@@ -99,7 +100,7 @@ define CLEAN_TARGET_STAGE_N
99100

100101
clean$(1)_T_$(2)_H_$(3): \
101102
$$(foreach crate,$$(CRATES),clean$(1)_T_$(2)_H_$(3)-lib-$$(crate)) \
102-
$$(foreach tool,$$(TOOLS) $$(DEBUGGER_BIN_SCRIPTS),clean$(1)_T_$(2)_H_$(3)-tool-$$(tool))
103+
$$(foreach tool,$$(TOOLS) $$(DEBUGGER_BIN_SCRIPTS_ALL),clean$(1)_T_$(2)_H_$(3)-tool-$$(tool))
103104
$$(Q)rm -f $$(TLIB$(1)_T_$(2)_H_$(3))/libmorestack.a
104105
$$(Q)rm -f $$(TLIB$(1)_T_$(2)_H_$(3))/libcompiler-rt.a
105106
$(Q)rm -f $$(TLIB$(1)_T_$(2)_H_$(3))/librun_pass_stage* # For unix

0 commit comments

Comments
 (0)