Skip to content

Commit e76c364

Browse files
committed
---
yaml --- r: 168703 b: refs/heads/snap-stage3 c: ccd88c5 h: refs/heads/master i: 168701: 4c7b77f 168699: 18ac0ff 168695: 200de92 168687: 3e1c8eb 168671: 77272d7 168639: 027518c 168575: 46065bd 168447: 8d09a69 v: v3
1 parent 61ad5a4 commit e76c364

File tree

1,710 files changed

+47163
-54758
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,710 files changed

+47163
-54758
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 5e21e17d9638d14af41e27e5ca9a21c8a1bc0170
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: c89417130f042c58adc60012e7cddc4ef70b70b9
4+
refs/heads/snap-stage3: ccd88c523597e2e33a32e92175659d8f5e9a475b
55
refs/heads/try: 5204084bd2e46af7cc6e0147430e44dd0d657bbb
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d

branches/snap-stage3/.gitmodules

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,3 @@
1111
[submodule "src/jemalloc"]
1212
path = src/jemalloc
1313
url = https://github.com/rust-lang/jemalloc.git
14-
[submodule "src/rust-installer"]
15-
path = src/rust-installer
16-
url = https://github.com/rust-lang/rust-installer

branches/snap-stage3/.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
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
65

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

branches/snap-stage3/AUTHORS.txt

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

branches/snap-stage3/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-getting-started-developing-Rust
102+
# [1]: https://github.com/rust-lang/rust/wiki/Note-build-system
103103
# [2]: https://github.com/rust-lang/rust/wiki/Note-testsuite
104104
#
105105
# If you really feel like getting your hands dirty, then:

branches/snap-stage3/configure

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -988,7 +988,8 @@ do
988988
make_dir $t/rt/jemalloc
989989
for i in \
990990
isaac sync test \
991-
arch/i386 arch/x86_64 arch/arm arch/mips
991+
arch/i386 arch/x86_64 arch/arm arch/mips \
992+
sundown/src sundown/html
992993
do
993994
make_dir $t/rt/stage$s/$i
994995
done

branches/snap-stage3/man/rustc.1

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

1414
.TP
15-
\fB\-h\fR, \fB\-\-help\fR
16-
Display the help message
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`)
1720
.TP
1821
\fB\-\-cfg\fR SPEC
1922
Configure the compilation environment
2023
.TP
21-
\fB\-L\fR PATH
22-
Add a directory to the library search path
23-
.TP
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.
24+
\fB\-\-emit=[asm,ir,bc,obj,link]\fR
25+
Configure the output that rustc will produce
2726
.TP
28-
\fB\-\-crate-type\fR [bin|lib|rlib|dylib|staticlib]
29-
Comma separated list of types of crates for the compiler to emit
27+
\fB\-h\fR, \fB\-\-help\fR
28+
Display this message
3029
.TP
31-
\fB\-\-crate-name NAME\fR
32-
Specify the name of the crate being built
30+
\fB\-L\fR PATH
31+
Add a directory to the library search path
3332
.TP
34-
\fB\-\-emit\fR [asm|llvm-bc|llvm-ir|obj|link|dep-info]
35-
Configure the output that rustc will produce
33+
\fB\-\-no\-trans\fR
34+
Run all passes except translation; no output
3635
.TP
37-
\fB\-\-print\fR [crate-name|output-file-names|sysroot]
38-
Comma separated list of compiler information to print on stdout
36+
\fB\-\-no\-analysis\fR
37+
Parse and expand the source, but run no analysis and produce no output
3938
.TP
4039
\fB\-g\fR
41-
Equivalent to \fI\-C\fR debuginfo=2
40+
Emit DWARF debug information into object files generated.
41+
.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).
4246
.TP
4347
\fB\-O\fR
44-
Equivalent to \fI\-C\fR opt-level=2
48+
Equivalent to \fI\-\-opt\-level=2\fR
4549
.TP
4650
\fB\-o\fR FILENAME
47-
Write output to <filename>. Ignored if multiple \fI\-\-emit\fR outputs are
48-
specified.
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
4955
.TP
5056
\fB\-\-out\-dir\fR DIR
51-
Write output to compiler-chosen filename in <dir>. Ignored if \fI\-o\fR is
52-
specified. Defaults to the current directory.
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
5362
.TP
54-
\fB\-\-explain\fR OPT
55-
Provide a detailed explanation of an error message
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
5676
.TP
5777
\fB\-\-test\fR
5878
Build a test harness
5979
.TP
6080
\fB\-\-target\fR TRIPLE
61-
Target triple cpu-manufacturer-kernel[-os] to compile for (see chapter 3.4 of
62-
http://www.sourceware.org/autobook/ for details)
81+
Target triple cpu-manufacturer-kernel[-os] to compile for (see
82+
http://sources.redhat.com/autobook/autobook/autobook_17.html
83+
for details)
6384
.TP
6485
\fB\-W\fR help
6586
Print 'lint' options and default settings
@@ -76,30 +97,15 @@ Set lint denied
7697
\fB\-F\fR OPT, \fB\-\-forbid\fR OPT
7798
Set lint forbidden
7899
.TP
100+
\fB\-Z\fR FLAG
101+
Set internal debugging options. Use "-Z help" to print available options.
102+
.TP
79103
\fB\-C\fR FLAG[=VAL], \fB\-\-codegen\fR FLAG[=VAL]
80104
Set a codegen-related flag to the value specified. Use "-C help" to print
81105
available flags. See CODEGEN OPTIONS below
82106
.TP
83-
\fB\-V\fR, \fB\-\-version\fR
107+
\fB\-v\fR, \fB\-\-version\fR
84108
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
103109

104110
.SH CODEGEN OPTIONS
105111

@@ -115,9 +121,6 @@ objects.
115121
A space-separated list of extra arguments to pass to the linker when the linker
116122
is invoked.
117123
.TP
118-
\fBlto\fR
119-
Perform LLVM link-time optimizations.
120-
.TP
121124
\fBtarget-cpu\fR=help
122125
Selects a target processor. If the value is 'help', then a list of available
123126
CPUs is printed.
@@ -164,38 +167,8 @@ Prefers dynamic linking to static linking.
164167
\fBno-integrated-as\fR
165168
Force usage of an external assembler rather than LLVM's integrated one.
166169
.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)
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
171+
The relocation model to use. (default: pic)
199172

200173
.SH "EXAMPLES"
201174
To build an executable from a source file with a main function:

branches/snap-stage3/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 := -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
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
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/snap-stage3/mk/clean.mk

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

8180
clean$(1)_H_$(2): \
8281
$$(foreach crate,$$(CRATES),clean$(1)_H_$(2)-lib-$$(crate)) \
83-
$$(foreach tool,$$(TOOLS) $$(DEBUGGER_BIN_SCRIPTS_ALL),clean$(1)_H_$(2)-tool-$$(tool))
82+
$$(foreach tool,$$(TOOLS) $$(DEBUGGER_BIN_SCRIPTS),clean$(1)_H_$(2)-tool-$$(tool))
8483
$$(Q)rm -fr $(2)/rt/libbacktrace
8584

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

101100
clean$(1)_T_$(2)_H_$(3): \
102101
$$(foreach crate,$$(CRATES),clean$(1)_T_$(2)_H_$(3)-lib-$$(crate)) \
103-
$$(foreach tool,$$(TOOLS) $$(DEBUGGER_BIN_SCRIPTS_ALL),clean$(1)_T_$(2)_H_$(3)-tool-$$(tool))
102+
$$(foreach tool,$$(TOOLS) $$(DEBUGGER_BIN_SCRIPTS),clean$(1)_T_$(2)_H_$(3)-tool-$$(tool))
104103
$$(Q)rm -f $$(TLIB$(1)_T_$(2)_H_$(3))/libmorestack.a
105104
$$(Q)rm -f $$(TLIB$(1)_T_$(2)_H_$(3))/libcompiler-rt.a
106105
$(Q)rm -f $$(TLIB$(1)_T_$(2)_H_$(3))/librun_pass_stage* # For unix

branches/snap-stage3/mk/crates.mk

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,9 @@
5151

5252
TARGET_CRATES := libc std flate arena term \
5353
serialize getopts collections test time rand \
54-
log regex graphviz core rbml alloc \
54+
log regex graphviz core rbml alloc rustrt \
5555
unicode
56-
RUSTC_CRATES := rustc rustc_typeck rustc_borrowck rustc_resolve rustc_driver \
57-
rustc_trans rustc_back rustc_llvm
56+
RUSTC_CRATES := rustc rustc_typeck rustc_borrowck rustc_driver rustc_trans rustc_back rustc_llvm
5857
HOST_CRATES := syntax $(RUSTC_CRATES) rustdoc regex_macros fmt_macros
5958
CRATES := $(TARGET_CRATES) $(HOST_CRATES)
6059
TOOLS := compiletest rustdoc rustc
@@ -63,17 +62,17 @@ DEPS_core :=
6362
DEPS_libc := core
6463
DEPS_unicode := core
6564
DEPS_alloc := core libc native:jemalloc
66-
DEPS_std := core libc rand alloc collections unicode \
67-
native:rust_builtin native:backtrace native:rustrt_native
65+
DEPS_rustrt := alloc core libc collections native:rustrt_native
66+
DEPS_std := core libc rand alloc collections rustrt unicode \
67+
native:rust_builtin native:backtrace
6868
DEPS_graphviz := std
6969
DEPS_syntax := std term serialize log fmt_macros arena libc
7070
DEPS_rustc_driver := arena flate getopts graphviz libc rustc rustc_back rustc_borrowck \
71-
rustc_typeck rustc_resolve log syntax serialize rustc_llvm rustc_trans
71+
rustc_typeck log syntax serialize rustc_llvm rustc_trans
7272
DEPS_rustc_trans := arena flate getopts graphviz libc rustc rustc_back \
7373
log syntax serialize rustc_llvm
7474
DEPS_rustc_typeck := rustc syntax
7575
DEPS_rustc_borrowck := rustc log graphviz syntax
76-
DEPS_rustc_resolve := rustc log syntax
7776
DEPS_rustc := syntax flate arena serialize getopts rbml \
7877
time log graphviz rustc_llvm rustc_back
7978
DEPS_rustc_llvm := native:rustllvm libc std
@@ -120,16 +119,9 @@ DOC_CRATES := $(filter-out rustc, \
120119
$(filter-out rustc_trans, \
121120
$(filter-out rustc_typeck, \
122121
$(filter-out rustc_borrowck, \
123-
$(filter-out rustc_resolve, \
124122
$(filter-out rustc_driver, \
125-
$(filter-out log, \
126-
$(filter-out regex, \
127-
$(filter-out regex_macros, \
128-
$(filter-out getopts, \
129-
$(filter-out time, \
130-
$(filter-out syntax, $(CRATES)))))))))))))
131-
COMPILER_DOC_CRATES := rustc rustc_trans rustc_borrowck rustc_resolve \
132-
rustc_typeck rustc_driver syntax
123+
$(filter-out syntax, $(CRATES)))))))
124+
COMPILER_DOC_CRATES := rustc rustc_trans rustc_borrowck rustc_typeck rustc_driver syntax
133125

134126
# This macro creates some simple definitions for each crate being built, just
135127
# some munging of all of the parameters above.

branches/snap-stage3/mk/ctags.mk

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
.PHONY: TAGS.emacs TAGS.vi
1717

1818
# This is using a blacklist approach, probably more durable than a whitelist.
19-
# We exclude: external dependencies (llvm, rt/{msvc,vg}),
19+
# We exclude: external dependencies (llvm, rt/{msvc,sundown,vg}),
2020
# tests (compiletest, test) and a couple of other things (rt/arch, etc)
2121
CTAGS_LOCATIONS=$(patsubst ${CFG_SRC_DIR}src/llvm,, \
2222
$(patsubst ${CFG_SRC_DIR}src/compiletest,, \
@@ -25,9 +25,10 @@ CTAGS_LOCATIONS=$(patsubst ${CFG_SRC_DIR}src/llvm,, \
2525
$(patsubst ${CFG_SRC_DIR}src/rt,, \
2626
$(patsubst ${CFG_SRC_DIR}src/rt/arch,, \
2727
$(patsubst ${CFG_SRC_DIR}src/rt/msvc,, \
28+
$(patsubst ${CFG_SRC_DIR}src/rt/sundown,, \
2829
$(patsubst ${CFG_SRC_DIR}src/rt/vg,, \
2930
$(wildcard ${CFG_SRC_DIR}src/*) $(wildcard ${CFG_SRC_DIR}src/rt/*) \
30-
))))))))
31+
)))))))))
3132
CTAGS_OPTS=--options="${CFG_SRC_DIR}src/etc/ctags.rust" --languages=-javascript --recurse ${CTAGS_LOCATIONS}
3233
# We could use `--languages=Rust`, but there is value in producing tags for the
3334
# C++ parts of the code base too (at the time of writing, those are .h and .cpp

0 commit comments

Comments
 (0)