Skip to content

Commit 784c42a

Browse files
committed
---
yaml --- r: 144863 b: refs/heads/try2 c: e7d5af8 h: refs/heads/master i: 144861: 6dc57e1 144859: 4c53ad9 144855: 76ddf2e 144847: e55e25b 144831: 8c71ad8 v: v3
1 parent 72dbe26 commit 784c42a

Some content is hidden

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

76 files changed

+1202
-3381
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
55
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: f6b36c676e6b31313a8fd2b31e804bd3d6a4af73
8+
refs/heads/try2: e7d5af8ec780adf2acf46bb017732cae02a6a867
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/.gitmodules

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,5 @@
44
branch = master
55
[submodule "src/libuv"]
66
path = src/libuv
7-
url = https://github.com/alexcrichton/libuv.git
7+
url = https://github.com/brson/libuv.git
88
branch = master
9-
[submodule "src/gyp"]
10-
path = src/gyp
11-
url = https://git.chromium.org/external/gyp.git

branches/try2/configure

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -823,7 +823,7 @@ do
823823
index2="${CFG_SRC_DIR}src/llvm/.git/index"
824824
for index in ${index1} ${index2}
825825
do
826-
config_status="${LLVM_BUILD_DIR}/config.status"
826+
config_status="${CFG_BUILD_DIR}llvm/$t/config.status"
827827
if test -e ${index} -a \
828828
-e ${config_status} -a \
829829
${config_status} -nt ${index}

branches/try2/doc/rust.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3385,11 +3385,9 @@ The path to a module consists of the crate name, any parent modules,
33853385
then the module itself, all separated by double colons (`::`). The
33863386
optional log level can be appended to the module path with an equals
33873387
sign (`=`) followed by the log level, from 1 to 4, inclusive. Level 1
3388-
is the error level, 2 is warning, 3 info, and 4 debug. You can also
3389-
use the symbolic constants `error`, `warn`, `info`, and `debug`. Any
3390-
logs less than or equal to the specified level will be output. If not
3391-
specified then log level 4 is assumed. However, debug messages are
3392-
only available if `--cfg=debug` is passed to `rustc`.
3388+
is the error level, 2 is warning, 3 info, and 4 debug. Any logs
3389+
less than or equal to the specified level will be output. If not
3390+
specified then log level 4 is assumed.
33933391

33943392
As an example, to see all the logs generated by the compiler, you would set
33953393
`RUST_LOG` to `rustc`, which is the crate name (as specified in its `link`

branches/try2/mk/clean.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ clean-misc:
5050
$(Q)rm -f $(RUSTLLVM_LIB_OBJS) $(RUSTLLVM_OBJS_OBJS) $(RUSTLLVM_DEF)
5151
$(Q)rm -Rf $(DOCS)
5252
$(Q)rm -Rf $(GENERATED)
53-
$(Q)rm -Rf tmp/*
53+
$(Q)rm -f tmp/*
5454
$(Q)rm -Rf rust-stage0-*.tar.bz2 $(PKG_NAME)-*.tar.gz dist
5555
$(Q)rm -Rf $(foreach ext, \
5656
html aux cp fn ky log pdf pg toc tp vr cps, \

branches/try2/mk/dist.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ PKG_ICO = $(S)src/etc/pkg/rust-logo.ico
1212
PKG_EXE = $(PKG_DIR)-install.exe
1313
endif
1414

15-
PKG_GITMODULES := $(S)src/libuv $(S)src/llvm $(S)src/gyp
15+
PKG_GITMODULES := $(S)src/libuv $(S)src/llvm
1616

1717
PKG_FILES := \
1818
$(S)COPYRIGHT \

branches/try2/mk/rt.mk

Lines changed: 10 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -170,51 +170,36 @@ LIBUV_DEPS := $$(wildcard \
170170
$$(S)src/libuv/*/*/*/*)
171171
endif
172172

173-
LIBUV_MAKEFILE_$(1)_$(2) := $$(CFG_BUILD_DIR)$$(RT_BUILD_DIR_$(1)_$(2))/libuv/Makefile
174-
LIBUV_NO_LOAD = run-benchmarks.target.mk run-tests.target.mk \
175-
uv_dtrace_header.target.mk uv_dtrace_provider.target.mk
176-
177-
export PYTHONPATH := $(PYTHONPATH):$$(S)src/gyp/pylib
178-
179-
$$(LIBUV_MAKEFILE_$(1)_$(2)):
180-
(cd $(S)src/libuv/ && \
181-
$$(CFG_PYTHON) ./gyp_uv -f make -Dtarget_arch=$$(LIBUV_ARCH_$(1)) -D ninja \
182-
-Goutput_dir=$$(@D) --generator-output $$(@D))
183-
184173
# XXX: Shouldn't need platform-specific conditions here
185174
ifdef CFG_WINDOWSY_$(1)
186175
$$(LIBUV_LIB_$(1)_$(2)): $$(LIBUV_DEPS)
187-
$$(Q)$$(MAKE) -C $$(S)src/libuv -f Makefile.mingw \
188-
CFLAGS="$$(CFG_GCCISH_CFLAGS) $$(LIBUV_FLAGS_$$(HOST_$(1))) $$(SNAP_DEFINES)" \
189-
AR="$$(AR_$(1))" \
176+
$$(Q)$$(MAKE) -C $$(S)src/libuv/ \
177+
builddir_name="$$(CFG_BUILD_DIR)/$$(RT_BUILD_DIR_$(1)_$(2))/libuv" \
178+
OS=mingw \
190179
V=$$(VERBOSE)
191-
$$(Q)cp $$(S)src/libuv/libuv.a $$@
192180
else ifeq ($(OSTYPE_$(1)), linux-androideabi)
193-
$$(LIBUV_LIB_$(1)_$(2)): $$(LIBUV_DEPS) $$(LIBUV_MAKEFILE_$(1)_$(2))
194-
$$(Q)$$(MAKE) -C $$(@D) \
181+
$$(LIBUV_LIB_$(1)_$(2)): $$(LIBUV_DEPS)
182+
$$(Q)$$(MAKE) -C $$(S)src/libuv/ \
195183
CFLAGS="$$(CFG_GCCISH_CFLAGS) $$(LIBUV_FLAGS_$$(HOST_$(1))) $$(SNAP_DEFINES)" \
196184
LDFLAGS="$$(CFG_GCCISH_LINK_FLAGS) $$(LIBUV_FLAGS_$$(HOST_$(1)))" \
197185
CC="$$(CC_$(1))" \
198186
CXX="$$(CXX_$(1))" \
199187
LINK="$$(CXX_$(1))" \
200188
AR="$$(AR_$(1))" \
201189
PLATFORM=android \
202-
host=android OS=linux \
203-
builddir="." \
204190
BUILDTYPE=Release \
205-
NO_LOAD="$$(LIBUV_NO_LOAD)" \
191+
builddir_name="$$(CFG_BUILD_DIR)/$$(RT_BUILD_DIR_$(1)_$(2))/libuv" \
192+
host=android OS=linux \
206193
V=$$(VERBOSE)
207194
else
208-
$$(LIBUV_LIB_$(1)_$(2)): $$(LIBUV_DEPS) $$(LIBUV_MAKEFILE_$(1)_$(2))
209-
$$(Q)$$(MAKE) -C $$(@D) \
195+
$$(LIBUV_LIB_$(1)_$(2)): $$(LIBUV_DEPS)
196+
$$(Q)$$(MAKE) -C $$(S)src/libuv/ \
210197
CFLAGS="$$(CFG_GCCISH_CFLAGS) $$(LIBUV_FLAGS_$$(HOST_$(1))) $$(SNAP_DEFINES)" \
211198
LDFLAGS="$$(CFG_GCCISH_LINK_FLAGS) $$(LIBUV_FLAGS_$$(HOST_$(1)))" \
212199
CC="$$(CC_$(1))" \
213200
CXX="$$(CXX_$(1))" \
214201
AR="$$(AR_$(1))" \
215-
builddir="." \
216-
BUILDTYPE=Release \
217-
NO_LOAD="$$(LIBUV_NO_LOAD)" \
202+
builddir_name="$$(CFG_BUILD_DIR)/$$(RT_BUILD_DIR_$(1)_$(2))/libuv" \
218203
V=$$(VERBOSE)
219204
endif
220205

branches/try2/mk/rustllvm.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ define DEF_RUSTLLVM_TARGETS
1919
# llvm, but using it straight out of the build directory)
2020
ifdef CFG_WINDOWSY_$(1)
2121
LLVM_EXTRA_INCDIRS_$(1)= -iquote $(S)src/llvm/include \
22-
-iquote $$(CFG_LLVM_BUILD_DIR_$(1))/include
22+
-iquote llvm/$(1)/include
2323
endif
2424

2525
RUSTLLVM_OBJS_CS_$(1) := $$(addprefix rustllvm/, RustWrapper.cpp PassWrapper.cpp)

branches/try2/mk/tests.mk

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,6 @@ tidy:
250250
| grep '^$(S)src/test' -v \
251251
| grep '^$(S)src/libuv' -v \
252252
| grep '^$(S)src/llvm' -v \
253-
| grep '^$(S)src/gyp' -v \
254253
| xargs -n 10 $(CFG_PYTHON) $(S)src/etc/tidy.py
255254
$(Q)find $(S)src/etc -name '*.py' \
256255
| xargs -n 10 $(CFG_PYTHON) $(S)src/etc/tidy.py

branches/try2/src/etc/emacs/rust-mode.el

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,10 @@
8585
(not (looking-at "[[:space:]]*\\(?://.*\\)?$"))))
8686
(+ 1 (current-column)))
8787
;; Check for fields on the same line as the open curly brace:
88-
((looking-at "{[[:blank:]]*[^}\n]*,[[:space:]]*$")
88+
((looking-at "{[[:space:]]*[^\n]*,[[:space:]]*$")
8989
(progn
9090
(forward-char)
91-
(forward-to-word 1)
91+
(when (looking-at "[[:space:]]") (forward-to-word 1))
9292
(current-column)))
9393
(t (progn
9494
(goto-char pt)

branches/try2/src/gyp

Lines changed: 0 additions & 1 deletion
This file was deleted.

branches/try2/src/libextra/crypto/sha2.rs

Lines changed: 22 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,28 @@ use cryptoutil::{write_u64_be, write_u32_be, read_u64v_be, read_u32v_be, add_byt
1414
add_bytes_to_bits_tuple, FixedBuffer, FixedBuffer128, FixedBuffer64, StandardPadding};
1515
use digest::Digest;
1616

17-
// A structure that represents that state of a digest computation for the SHA-2 512 family
18-
// of digest functions
17+
18+
// Sha-512 and Sha-256 use basically the same calculations which are implemented by these macros.
19+
// Inlining the calculations seems to result in better generated code.
20+
macro_rules! schedule_round( ($t:expr) => (
21+
W[$t] = sigma1(W[$t - 2]) + W[$t - 7] + sigma0(W[$t - 15]) + W[$t - 16];
22+
)
23+
)
24+
25+
macro_rules! sha2_round(
26+
($A:ident, $B:ident, $C:ident, $D:ident,
27+
$E:ident, $F:ident, $G:ident, $H:ident, $K:ident, $t:expr) => (
28+
{
29+
$H += sum1($E) + ch($E, $F, $G) + $K[$t] + W[$t];
30+
$D += $H;
31+
$H += sum0($A) + maj($A, $B, $C);
32+
}
33+
)
34+
)
35+
36+
37+
// A structure that represents that state of a digest computation for the SHA-2 512 family of digest
38+
// functions
1939
struct Engine512State {
2040
H0: u64,
2141
H1: u64,
@@ -88,25 +108,6 @@ impl Engine512State {
88108

89109
let mut W = [0u64, ..80];
90110

91-
// Sha-512 and Sha-256 use basically the same calculations which are implemented by
92-
// these macros. Inlining the calculations seems to result in better generated code.
93-
macro_rules! schedule_round( ($t:expr) => (
94-
W[$t] = sigma1(W[$t - 2]) + W[$t - 7] + sigma0(W[$t - 15]) + W[$t - 16];
95-
)
96-
)
97-
98-
macro_rules! sha2_round(
99-
($A:ident, $B:ident, $C:ident, $D:ident,
100-
$E:ident, $F:ident, $G:ident, $H:ident, $K:ident, $t:expr) => (
101-
{
102-
$H += sum1($E) + ch($E, $F, $G) + $K[$t] + W[$t];
103-
$D += $H;
104-
$H += sum0($A) + maj($A, $B, $C);
105-
}
106-
)
107-
)
108-
109-
110111
read_u64v_be(W.mut_slice(0, 16), data);
111112

112113
// Putting the message schedule inside the same loop as the round calculations allows for
@@ -504,25 +505,6 @@ impl Engine256State {
504505

505506
let mut W = [0u32, ..64];
506507

507-
// Sha-512 and Sha-256 use basically the same calculations which are implemented
508-
// by these macros. Inlining the calculations seems to result in better generated code.
509-
macro_rules! schedule_round( ($t:expr) => (
510-
W[$t] = sigma1(W[$t - 2]) + W[$t - 7] + sigma0(W[$t - 15]) + W[$t - 16];
511-
)
512-
)
513-
514-
macro_rules! sha2_round(
515-
($A:ident, $B:ident, $C:ident, $D:ident,
516-
$E:ident, $F:ident, $G:ident, $H:ident, $K:ident, $t:expr) => (
517-
{
518-
$H += sum1($E) + ch($E, $F, $G) + $K[$t] + W[$t];
519-
$D += $H;
520-
$H += sum0($A) + maj($A, $B, $C);
521-
}
522-
)
523-
)
524-
525-
526508
read_u32v_be(W.mut_slice(0, 16), data);
527509

528510
// Putting the message schedule inside the same loop as the round calculations allows for

branches/try2/src/libextra/extra.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ pub mod getopts;
8585
pub mod json;
8686
pub mod md4;
8787
pub mod tempfile;
88-
pub mod glob;
8988
pub mod term;
9089
pub mod time;
9190
pub mod arena;

0 commit comments

Comments
 (0)