Skip to content

Commit 99d9390

Browse files
committed
---
yaml --- r: 1555 b: refs/heads/master c: 27547c6 h: refs/heads/master i: 1553: e8e3db8 1551: f06bc5a v: v3
1 parent be7b287 commit 99d9390

File tree

5 files changed

+7
-68
lines changed

5 files changed

+7
-68
lines changed

[refs]

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 55c80e763bfd850682b3217fcfc5cdb516eafae0
2+
refs/heads/master: 27547c6514cf4f358ef2c8d935bd296eb0312ac1

trunk/src/Makefile

+4-19
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@ ifdef CFG_WINDOWSY
9090
CFG_EXE_SUFFIX := .exe
9191
CFG_BOOT := ./rustboot.exe
9292
CFG_RUSTC := ./rustc.exe
93-
CFG_GLUE := ./glue.exe
9493
CFG_GCC_CFLAGS += -march=i686
9594
CFG_GCC_LINK_FLAGS += -shared -fPIC
9695
CFG_RUN_TARG = $(1)
@@ -102,7 +101,6 @@ ifdef CFG_UNIXY
102101
CFG_INFO := $(info cfg: unix-y environment)
103102
CFG_BOOT := ./rustboot
104103
CFG_RUSTC := ./rustc
105-
CFG_GLUE := ./glue
106104
CFG_OBJ_SUFFIX := .o
107105
CFG_RUN_TARG = LD_LIBRARY_PATH=. $(CFG_VALGRIND) $(1)
108106
CFG_GCC := 1
@@ -113,7 +111,6 @@ ifdef CFG_UNIXY
113111
CFG_RUNTIME := rustrt.dll
114112
CFG_STDLIB := std.dll
115113
CFG_RUSTC := ./rustc.exe
116-
CFG_GLUE := ./glue
117114
ifdef CFG_VALGRIND
118115
CFG_VALGRIND += wine
119116
endif
@@ -311,13 +308,11 @@ RUNTIME_LIBS := $(CFG_RUNTIME_LIBS)
311308
STDLIB_CRATE := lib/std.rc
312309
STDLIB_INPUTS := $(wildcard lib/*.rc lib/*.rs lib/*/*.rs)
313310
COMPILER_CRATE := comp/rustc.rc
314-
COMPILER_INPUTS := $(wildcard comp/rustc.rc comp/*.rs comp/*/*.rs)
315-
GLUE_CRATE := comp/glue.rc
316-
GLUE_INPUTS := $(wildcard comp/glue.rc comp/*.rs comp/*/*.rs)
311+
COMPILER_INPUTS := $(wildcard comp/*.rc comp/*.rs comp/*/*.rs)
317312

318313
GENERATED := boot/fe/lexer.ml boot/util/version.ml
319314

320-
all: $(CFG_RUSTC) $(CFG_GLUE) $(MKFILES) $(GENERATED) glue.o
315+
all: $(CFG_RUSTC) $(MKFILES) $(GENERATED)
321316

322317
boot/util/version.ml: Makefile
323318
$(CFG_QUIET)git log -1 \
@@ -373,16 +368,6 @@ $(CFG_RUSTC): $(COMPILER_INPUTS) $(CFG_BOOT) $(CFG_RUNTIME) $(CFG_STDLIB)
373368
$(BOOT) -minimal -o $@ $<
374369
$(CFG_QUIET)chmod 0755 $@
375370

376-
$(CFG_GLUE): $(GLUE_INPUTS) $(CFG_BOOT) $(CFG_RUNTIME) $(CFG_STDLIB)
377-
@$(call CFG_ECHO, compile: $<)
378-
$(BOOT) -minimal -o $@ $<
379-
$(CFG_QUIET)chmod 0755 $@
380-
381-
glue.o: glue.s
382-
383-
glue.s: $(CFG_GLUE)
384-
$(CFG_GLUE) > $@
385-
386371
self: $(CFG_RUSTC)
387372
@$(call CFG_ECHO, compile: $<)
388373
$(RUSTC) $(COMPILER_CRATE)
@@ -778,9 +763,9 @@ test/bench/shootout/%.boot$(CFG_EXE_SUFFIX): \
778763
@$(call CFG_ECHO, assemble [llvm]: $<)
779764
$(CFG_QUIET)gcc $(CFG_GCC_CFLAGS) -o $@ -c $<
780765

781-
%.rustc$(CFG_EXE_SUFFIX): %.o $(CFG_RUNTIME) glue.o
766+
%.rustc$(CFG_EXE_SUFFIX): %.o $(CFG_RUNTIME)
782767
@$(call CFG_ECHO, link [llvm]: $<)
783-
$(CFG_QUIET)gcc $(CFG_GCC_CFLAGS) glue.o -o $@ $< -L. -lrustrt
768+
$(CFG_QUIET)gcc $(CFG_GCC_CFLAGS) -o $@ $< -L. -lrustrt
784769
@# dsymutil sometimes fails or prints a warning, but the
785770
@# program still runs. Since it simplifies debugging other
786771
@# programs, I\'ll live with the noise.

trunk/src/comp/glue.rc

-37
This file was deleted.

trunk/src/comp/glue/glue.rs

-11
This file was deleted.

trunk/src/comp/middle/trans.rs

+2
Original file line numberDiff line numberDiff line change
@@ -5708,6 +5708,8 @@ fn trans_crate(session.session sess, @ast.crate crate, str output,
57085708
let ValueRef crate_ptr =
57095709
llvm.LLVMAddGlobal(llmod, T_crate(tn), _str.buf("rust_crate"));
57105710

5711+
llvm.LLVMSetModuleInlineAsm(llmod, _str.buf(x86.get_module_asm()));
5712+
57115713
auto intrinsics = declare_intrinsics(llmod);
57125714

57135715
auto glues = make_glues(llmod, tn);

0 commit comments

Comments
 (0)