Skip to content

Commit 1ea7f18

Browse files
bozgraydon
authored andcommitted
---
yaml --- r: 267 b: refs/heads/master c: b096b0e h: refs/heads/master i: 265: 10756b7 263: 9745e2a v: v3
1 parent 00e58a3 commit 1ea7f18

Some content is hidden

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

41 files changed

+362
-1332
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: 0b675a021a73a3dfa09079790a50302aeb6d1616
2+
refs/heads/master: b096b0e3084079a8cb525e5590b9ab3e512109ea

trunk/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
*.toc
2525
*.tp
2626
*.vr
27+
*.swp
2728
.hg/
2829
.hgignore
2930
lexer.ml

trunk/AUTHORS.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,8 @@ Andreas Gal <[email protected]>
88
Brendan Eich <[email protected]>
99
Chris Double <[email protected]>
1010
Dave Herman <[email protected]>
11-
Jason Orendorff <[email protected]>
12-
Jeff Balogh <[email protected]>
1311
Jeff Mulzelaar <[email protected]>
1412
Matt Brubeck <[email protected]>
1513
Michael Bebenita <[email protected]>
1614
Patrick Walton <[email protected]>
17-
Ralph Giles <[email protected]>
1815
Roy Frostig <[email protected]>

trunk/doc/rust.texi

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1201,9 +1201,9 @@ different tasks. Like any other immutable type, they can pass over channels,
12011201
and live as long as the last task referencing them within a given domain. When
12021202
unreferenced, they are destroyed immediately (due to reference-counting) and
12031203
returned to the heap memory allocator. Destruction of an immutable box also
1204-
executes within the context of the task that drops the last reference to a
1205-
shared heap allocation, so executing a long-running destructor does not
1206-
interrupt execution of other tasks.
1204+
executes within the context of task that drops the last reference to a shared
1205+
heap allocation, so executing a long-running destructor does not interrupt
1206+
execution of other tasks.
12071207

12081208

12091209
@node Ref.Mem.Own
@@ -2997,7 +2997,7 @@ by the runtime or emitted to a system console. Log statements are enabled or
29972997
disabled dynamically at run-time on a per-task and per-item
29982998
basis. @xref{Ref.Run.Log}.
29992999

3000-
Executing a @code{log} statement is not considered an @code{io} effect in the
3000+
Executing a @code{log} statement not considered an @code{io} effect in the
30013001
effect system. In other words, a pure function remains pure even if it
30023002
contains a log statement.
30033003

@@ -3033,7 +3033,7 @@ fn read_file_lines(&str path) -> vec[str] @{
30333033
note path;
30343034
vec[str] r;
30353035
file f = open_read(path);
3036-
for each (str &s = lines(f)) @{
3036+
for* (str &s = lines(f)) @{
30373037
vec.append(r,s);
30383038
@}
30393039
ret r;
@@ -3046,11 +3046,10 @@ completes normally, the runtime will not log the path.
30463046

30473047
A value that is marked by a @code{note} statement is @emph{not} copied aside
30483048
when control passes through the @code{note}. In other words, if a @code{note}
3049-
statement notes a particular @var{lval}, and code after the @code{note}
3050-
mutates that slot, and then a subsequent failure occurs, the @emph{mutated}
3051-
value will be logged during unwinding, @emph{not} the original value that was
3052-
denoted by the @var{lval} at the moment control passed through the @code{note}
3053-
statement.
3049+
statement notes a particular @var{lval}, and code after the @code{note} that
3050+
slot, and then a subsequent failure occurs, the @emph{mutated} value will be
3051+
logged during unwinding, @emph{not} the original value that was denoted by the
3052+
@var{lval} at the moment control passed through the @code{note} statement.
30543053

30553054
@node Ref.Stmt.While
30563055
@subsection Ref.Stmt.While

trunk/src/Makefile

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,11 @@ CFG_GCC_CFLAGS :=
2323
CFG_GCC_LINK_FLAGS :=
2424
CFG_VALGRIND :=
2525

26-
CFG_LLVM_CONFIG := llvm-config
26+
# Issue #102, LLVM-config logic is assuming "presence of llvm-config"
27+
# means "presence of ocaml bindings". Commenting out for now.
28+
# CFG_LLVM_CONFIG := llvm-config
29+
30+
CFG_LLVM_CONFIG :=
2731
CFG_BOOT_FLAGS := $(FLAGS)
2832

2933
ifeq ($(CFG_OSTYPE), Linux)
@@ -133,7 +137,6 @@ ifdef PROFILE
133137
$(info cfg: building with profiling info (forcing native output))
134138
CFG_NATIVE := 1
135139
CFG_OCAMLOPT_PROFILE_FLAGS := -p
136-
NO_LLVM := 1
137140
endif
138141

139142
ifdef DEBUG
@@ -162,10 +165,6 @@ ifneq ($(CFG_LLVM_CONFIG),)
162165
CFG_LLVM_VERSION := $(shell $(CFG_LLVM_CONFIG) --version)
163166
ifeq ($(CFG_LLVM_VERSION),2.8svn)
164167
$(info cfg: using LLVM version 2.8svn)
165-
WHERE := $(shell ocamlc -where)
166-
ifneq ($(shell test -e $(WHERE)/llvm.cma && echo ok),ok)
167-
CFG_LLVM_CONFIG := $(info cfg: LLVM ocaml bindings not found)
168-
endif
169168
else
170169
CFG_LLVM_CONFIG :=
171170
$(info cfg: incompatible LLVM version $(CFG_LLVM_VERSION), \
@@ -174,6 +173,7 @@ ifneq ($(CFG_LLVM_CONFIG),)
174173
endif
175174
ifdef CFG_LLVM_CONFIG
176175
VARIANT=llvm
176+
WHERE := $(shell ocamlc -where)
177177
LLVM_LIBS := llvm.cma llvm_bitwriter.cma
178178
LLVM_NATIVE_LIBS := llvm.cmxa llvm_bitwiter.cmxa
179179
LLVM_CLIBS := $(shell for c in `$(CFG_LLVM_CONFIG) --ldflags --libs` \
@@ -201,9 +201,8 @@ CFG_BOOT_FLAGS += -L .
201201
# Boot targets and rules
202202
######################################################################
203203

204-
ML_DEP_INCS := -I boot/fe -I boot/me -I boot/be -I boot/driver/$(VARIANT) \
205-
-I boot/driver -I boot/util
206-
ML_INCS := $(ML_DEP_INCS) $(LLVM_INCS)
204+
ML_INCS := -I boot/fe -I boot/me -I boot/be -I boot/driver/$(VARIANT) \
205+
-I boot/driver -I boot/util $(LLVM_INCS)
207206
ML_LIBS := unix.cma nums.cma bigarray.cma
208207
ML_NATIVE_LIBS := unix.cmxa nums.cmxa bigarray.cmxa
209208
OCAMLC_FLAGS := -g $(ML_INCS) -w Ael -warn-error Ael
@@ -414,7 +413,6 @@ TEST_XFAILS_LLVM := $(addprefix test/run-pass/, \
414413
item-name-overload.rs \
415414
large-records.rs \
416415
lazy-and-or.rs \
417-
lazy-init.rs \
418416
lazychan.rs \
419417
linear-for-loop.rs \
420418
list.rs \
@@ -466,7 +464,6 @@ TEST_XFAILS_LLVM := $(addprefix test/run-pass/, \
466464
vec-append.rs \
467465
vec-concat.rs \
468466
vec-drop.rs \
469-
vec-late-init.rs \
470467
vec-slice.rs \
471468
vec.rs \
472469
writealias.rs \
@@ -684,11 +681,11 @@ C_DEPFILES := $(RUNTIME_CS:%.cpp=%.d)
684681

685682
%.d: %.ml $(MKFILES)
686683
@$(call CFG_ECHO, dep: $<)
687-
$(CFG_QUIET)ocamldep$(OPT) $(ML_DEP_INCS) $< $(CFG_PATH_MUNGE) >$@
684+
$(CFG_QUIET)ocamldep$(OPT) $(ML_INCS) $< $(CFG_PATH_MUNGE) >$@
688685

689686
%.d: %.mli $(MKFILES)
690687
@$(call CFG_ECHO, dep: $<)
691-
$(CFG_QUIET)ocamldep$(OPT) $(ML_DEP_INCS) $< $(CFG_PATH_MUNGE) >$@
688+
$(CFG_QUIET)ocamldep$(OPT) $(ML_INCS) $< $(CFG_PATH_MUNGE) >$@
692689

693690
ifneq ($(MAKECMDGOALS),clean)
694691
-include $(ML_DEPFILES) $(C_DEPFILES)
@@ -731,7 +728,7 @@ PKG_3RDPARTY := rt/valgrind.h rt/memcheck.h \
731728
rt/uthash/uthash.h rt/uthash/utlist.h \
732729
rt/bigint/bigint.h rt/bigint/bigint_int.cpp \
733730
rt/bigint/bigint_ext.cpp rt/bigint/low_primes.h
734-
PKG_FILES := README boot/README \
731+
PKG_FILES := README \
735732
$(wildcard etc/*.*) \
736733
$(MKFILES) $(BOOT_MLS) boot/fe/lexer.mll \
737734
$(COMPILER_INPUTS) \

trunk/src/README

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ This is preliminary version of the Rust compiler.
33
Source layout:
44

55
boot/ The bootstrap compiler
6-
boot/README - More-detailed guide to it.
76
boot/fe - Front end (lexer, parser, AST)
87
boot/me - Middle end (resolve, check, layout, trans)
98
boot/be - Back end (IL, RA, insns, asm, objfiles)

0 commit comments

Comments
 (0)