]> git.lizzy.rs Git - rust.git/log
rust.git
12 years agoAdd Niko Matsakis to AUTHORS.txt
Brian Anderson [Wed, 5 Oct 2011 23:12:13 +0000 (16:12 -0700)]
Add Niko Matsakis to AUTHORS.txt

12 years agoremove pthread_exit() from rust_start()
Niko Matsakis [Wed, 5 Oct 2011 22:25:50 +0000 (15:25 -0700)]
remove pthread_exit() from rust_start()

It was causing OS X Lion to hang and (according to Apple) is undefined
in any case

12 years agorustc: Add a workaround for a segfault with --time-passes (issue #1005).
Patrick Walton [Wed, 5 Oct 2011 21:33:33 +0000 (14:33 -0700)]
rustc: Add a workaround for a segfault with --time-passes (issue #1005).

12 years agoDon't run stage0 compiler under valgrind
Brian Anderson [Wed, 5 Oct 2011 18:09:52 +0000 (11:09 -0700)]
Don't run stage0 compiler under valgrind

The stage0 compiler can't be fixed anyway. We used to have this in place but I
lost it during recent build changes.

12 years agoTie up the last ends in destination-passing-conversion
Marijn Haverbeke [Wed, 5 Oct 2011 10:23:18 +0000 (12:23 +0200)]
Tie up the last ends in destination-passing-conversion

Closes #667

12 years agoMake trans_lval lval-only
Marijn Haverbeke [Wed, 5 Oct 2011 09:51:41 +0000 (11:51 +0200)]
Make trans_lval lval-only

Call trans_temp_lval if you want the old fallback-to-temporary behaviour.

Issue #667

12 years agoAdd trans_temp_expr for what used to be trans_expr, rename t_e_dps to trans_expr
Marijn Haverbeke [Wed, 5 Oct 2011 09:26:27 +0000 (11:26 +0200)]
Add trans_temp_expr for what used to be trans_expr, rename t_e_dps to trans_expr

Issue #667

12 years agoLose the by_ref destination style
Marijn Haverbeke [Wed, 5 Oct 2011 08:41:30 +0000 (10:41 +0200)]
Lose the by_ref destination style

It's not needed.

Issue #667

12 years agoRevert "Revert "Reorganize translation of expr_field""
Marijn Haverbeke [Wed, 5 Oct 2011 08:21:57 +0000 (10:21 +0200)]
Revert "Revert "Reorganize translation of expr_field""

This reverts commit 11e407aaa917dbd646f80aaff2457942481877c8.

12 years agoRevert "Revert "Get rid of 'overwrite' destination kind""
Marijn Haverbeke [Wed, 5 Oct 2011 08:21:48 +0000 (10:21 +0200)]
Revert "Revert "Get rid of 'overwrite' destination kind""

This reverts commit ce9e0fc94f4a74594e7b342d128b3713b53ef0d7.

12 years agoRevert "Revert "Move trans_call to destination_passing style""
Marijn Haverbeke [Wed, 5 Oct 2011 08:21:40 +0000 (10:21 +0200)]
Revert "Revert "Move trans_call to destination_passing style""

This reverts commit 276dfc6133f3c7d3b40778789f72379800f62176.

12 years agoUse std::os::get_exe_path to determine sysroot
Brian Anderson [Tue, 4 Oct 2011 21:14:36 +0000 (14:14 -0700)]
Use std::os::get_exe_path to determine sysroot

12 years agoUse util::filesearch to locate intrinsics.bc and main.o
Brian Anderson [Mon, 3 Oct 2011 21:45:38 +0000 (14:45 -0700)]
Use util::filesearch to locate intrinsics.bc and main.o

12 years agoMove the library search into util::filesearch
Brian Anderson [Mon, 3 Oct 2011 20:54:13 +0000 (13:54 -0700)]
Move the library search into util::filesearch

12 years agoFix some comment drift
Brian Anderson [Mon, 3 Oct 2011 20:14:54 +0000 (13:14 -0700)]
Fix some comment drift

12 years agoRemove some redundancy in metadata::creader
Brian Anderson [Mon, 3 Oct 2011 20:13:21 +0000 (13:13 -0700)]
Remove some redundancy in metadata::creader

12 years agoEncapsulate current sysroot and lib path handling into util::filesearch
Brian Anderson [Mon, 3 Oct 2011 19:46:22 +0000 (12:46 -0700)]
Encapsulate current sysroot and lib path handling into util::filesearch

12 years agoAdd std::os::get_exe_path
Brian Anderson [Tue, 4 Oct 2011 20:35:39 +0000 (13:35 -0700)]
Add std::os::get_exe_path

Need this to correctly determine sysroot in rustc

12 years agoAdd std::ctypes
Brian Anderson [Tue, 4 Oct 2011 20:08:51 +0000 (13:08 -0700)]
Add std::ctypes

12 years agoHide unused variable warnings in stdtest::treemap
Brian Anderson [Tue, 4 Oct 2011 20:51:19 +0000 (13:51 -0700)]
Hide unused variable warnings in stdtest::treemap

12 years agoAdd std::fs::normalize
Brian Anderson [Wed, 5 Oct 2011 04:02:37 +0000 (21:02 -0700)]
Add std::fs::normalize

12 years agoAdd std::fs::split
Brian Anderson [Wed, 5 Oct 2011 03:18:04 +0000 (20:18 -0700)]
Add std::fs::split

12 years agoRevert "stdlib: Migrate rust_file_is_dir() over to the C stack, and add a void type...
Patrick Walton [Wed, 5 Oct 2011 01:24:30 +0000 (18:24 -0700)]
Revert "stdlib: Migrate rust_file_is_dir() over to the C stack, and add a void type" due to build bustage on Windows

This reverts commit 9698ef89a0c5513b9670f6ec56ea06de5728eb5a.

12 years agostdlib: Migrate rust_file_is_dir() over to the C stack, and add a void type
Patrick Walton [Wed, 5 Oct 2011 01:19:59 +0000 (18:19 -0700)]
stdlib: Migrate rust_file_is_dir() over to the C stack, and add a void type

12 years agorustc: Allow calling native functions on the C stack that take generic arguments...
Patrick Walton [Wed, 5 Oct 2011 00:41:57 +0000 (17:41 -0700)]
rustc: Allow calling native functions on the C stack that take generic arguments. They get turned into i8 pointers.

12 years agoRevert "Move trans_call to destination_passing style"
Patrick Walton [Wed, 5 Oct 2011 00:05:35 +0000 (17:05 -0700)]
Revert "Move trans_call to destination_passing style"

This reverts commit 6e56ec0066b3cc8d18365370f0b856670dc748bd.

12 years agoRevert "Get rid of 'overwrite' destination kind"
Patrick Walton [Wed, 5 Oct 2011 00:05:27 +0000 (17:05 -0700)]
Revert "Get rid of 'overwrite' destination kind"

This reverts commit 6e652588bfb3edea298026f56648057677b0fa3f.

12 years agoRevert "Reorganize translation of expr_field"
Patrick Walton [Wed, 5 Oct 2011 00:05:16 +0000 (17:05 -0700)]
Revert "Reorganize translation of expr_field"

This reverts commit 007ec666ad4a529682c35936d85ac81f7979f1b6.

12 years agort: Switch the AIO stuff to the C stack
Patrick Walton [Tue, 4 Oct 2011 19:07:26 +0000 (12:07 -0700)]
rt: Switch the AIO stuff to the C stack

12 years agoFix #1003 harder
Brian Anderson [Tue, 4 Oct 2011 18:24:18 +0000 (11:24 -0700)]
Fix #1003 harder

12 years agoFix a typo in tests.mk. Closes #1003
Brian Anderson [Tue, 4 Oct 2011 18:19:25 +0000 (11:19 -0700)]
Fix a typo in tests.mk. Closes #1003

12 years agoReorganize translation of expr_field
Marijn Haverbeke [Tue, 4 Oct 2011 15:38:26 +0000 (17:38 +0200)]
Reorganize translation of expr_field

Issue #667

12 years agoGet rid of 'overwrite' destination kind
Marijn Haverbeke [Tue, 4 Oct 2011 14:37:56 +0000 (16:37 +0200)]
Get rid of 'overwrite' destination kind

It wasn't safe (computing the rval might invalidate the lval addr), and needlessly
complicating things (code was already building up intermediary results to work
around other unsafeties).

Issue #667

12 years agoMove trans_call to destination_passing style
Marijn Haverbeke [Tue, 4 Oct 2011 08:11:03 +0000 (10:11 +0200)]
Move trans_call to destination_passing style

Issue #667

The retptr passed to a function will now often be the actual
destination of the returned value (as in `{field1: func1()}`).

12 years agort: Switch the libuv bindings over to not using explicit task pointers
Patrick Walton [Tue, 4 Oct 2011 01:22:42 +0000 (18:22 -0700)]
rt: Switch the libuv bindings over to not using explicit task pointers

12 years agort: Fix comment typo in rust_uv.cpp
Patrick Walton [Tue, 4 Oct 2011 01:08:46 +0000 (18:08 -0700)]
rt: Fix comment typo in rust_uv.cpp

12 years agort: Make the builtins no longer take an explicit task parameter
Patrick Walton [Tue, 4 Oct 2011 01:04:43 +0000 (18:04 -0700)]
rt: Make the builtins no longer take an explicit task parameter

12 years agoXFAIL run-fail/linked-failure4. Deadlocks on mac
Brian Anderson [Mon, 3 Oct 2011 21:46:52 +0000 (14:46 -0700)]
XFAIL run-fail/linked-failure4. Deadlocks on mac

12 years agorustc: Implement C stack stdcall
Patrick Walton [Mon, 3 Oct 2011 20:59:38 +0000 (13:59 -0700)]
rustc: Implement C stack stdcall

12 years agoCleanup mk/tests.mk
Brian Anderson [Mon, 3 Oct 2011 00:37:50 +0000 (17:37 -0700)]
Cleanup mk/tests.mk

12 years agoMove compiletest to src/ and cleanup build rules
Brian Anderson [Mon, 3 Oct 2011 00:28:59 +0000 (17:28 -0700)]
Move compiletest to src/ and cleanup build rules

12 years agoAdd Haitao Li to AUTHORS.txt
Brian Anderson [Sun, 2 Oct 2011 22:30:25 +0000 (15:30 -0700)]
Add Haitao Li to AUTHORS.txt

12 years agorustc: Fix link error on Ubuntu Oneiric. Issue #903
Haitao Li [Sun, 2 Oct 2011 12:52:07 +0000 (20:52 +0800)]
rustc: Fix link error on Ubuntu Oneiric. Issue #903

12 years agoLots of build system cleanup and documentation
Brian Anderson [Sun, 2 Oct 2011 03:12:08 +0000 (20:12 -0700)]
Lots of build system cleanup and documentation

This splits mk/stageN.mk into host.mk and target.mk and makes
the build rules somewhat simpler - there's no more building from stageN
into stageN+1; instead we always build from stageN(host) to
stageN(target) then promote from stageN(target) to stageN+1(host).

Add a big honkin explaination right at the top of Makefile.in

12 years agoHave 'make install' do something close to useful
Brian Anderson [Sat, 1 Oct 2011 02:00:19 +0000 (19:00 -0700)]
Have 'make install' do something close to useful

We'll copy the files to the right location. Still need to rpath.

Issue #529

12 years agorustc: Call LLVM on the C stack
Patrick Walton [Sat, 1 Oct 2011 01:35:13 +0000 (18:35 -0700)]
rustc: Call LLVM on the C stack

12 years agort: Omit leading underscore on symbol names on Linux
Patrick Walton [Sat, 1 Oct 2011 01:49:46 +0000 (18:49 -0700)]
rt: Omit leading underscore on symbol names on Linux

12 years agorustc: Stub a --stack-growth option; it's behind a flag for now because it requires...
Patrick Walton [Sat, 1 Oct 2011 01:20:28 +0000 (18:20 -0700)]
rustc: Stub a --stack-growth option; it's behind a flag for now because it requires patches to LLVM.

12 years agoRegister new snapshots
Brian Anderson [Sat, 1 Oct 2011 01:03:54 +0000 (18:03 -0700)]
Register new snapshots

12 years agoChange the directory for target libs
Brian Anderson [Fri, 30 Sep 2011 23:55:18 +0000 (16:55 -0700)]
Change the directory for target libs

This pushes them down from stageN/lib/rustc/$(target) to
stageN/lib/rustc/$(target)/lib in order to make room for a target bin dir

12 years agoRefix the snapshot rules
Brian Anderson [Fri, 30 Sep 2011 23:27:18 +0000 (16:27 -0700)]
Refix the snapshot rules

12 years agoRefix the fuzzer make rule
Brian Anderson [Fri, 30 Sep 2011 23:15:02 +0000 (16:15 -0700)]
Refix the fuzzer make rule

12 years agoMake config of static stdlib more consistent with rest of makefile
Brian Anderson [Fri, 30 Sep 2011 23:11:47 +0000 (16:11 -0700)]
Make config of static stdlib more consistent with rest of makefile

I haven't tested if it actually works. Static stdlib is probably becoming
bitrotted.

12 years agoAbstract the build directories further in the makefiles
Brian Anderson [Fri, 30 Sep 2011 19:24:28 +0000 (12:24 -0700)]
Abstract the build directories further in the makefiles

This defines variables for host bin and lib directories as well as all target
bin and lib directories then uses them everywhere.

12 years agoFix some make variables in tests.mk
Brian Anderson [Fri, 30 Sep 2011 19:08:51 +0000 (12:08 -0700)]
Fix some make variables in tests.mk

12 years agorustc: Remove some debug code
Patrick Walton [Fri, 30 Sep 2011 21:26:06 +0000 (14:26 -0700)]
rustc: Remove some debug code

12 years agorustc: Track link_args attributes on C stack cdecl natives as well
Patrick Walton [Fri, 30 Sep 2011 21:25:10 +0000 (14:25 -0700)]
rustc: Track link_args attributes on C stack cdecl natives as well

12 years agotrans: Use inttoptr as appropriate when casting return values of C stack functions
Patrick Walton [Fri, 30 Sep 2011 19:07:50 +0000 (12:07 -0700)]
trans: Use inttoptr as appropriate when casting return values of C stack functions

12 years agoAdd Erik Rose to AUTHORS.txt
Brian Anderson [Fri, 30 Sep 2011 07:15:28 +0000 (00:15 -0700)]
Add Erik Rose to AUTHORS.txt

12 years agoRegister snapshots and finish filesystem reorg
Brian Anderson [Fri, 30 Sep 2011 05:29:44 +0000 (22:29 -0700)]
Register snapshots and finish filesystem reorg

12 years agoRemove legacy library search paths
Brian Anderson [Fri, 30 Sep 2011 05:58:17 +0000 (22:58 -0700)]
Remove legacy library search paths

12 years agoUpdate snapshot scripts for the new regime
Brian Anderson [Fri, 30 Sep 2011 05:01:16 +0000 (22:01 -0700)]
Update snapshot scripts for the new regime

12 years agoTweak makefiles, change the way the fuzzer is built
Brian Anderson [Fri, 30 Sep 2011 04:34:46 +0000 (21:34 -0700)]
Tweak makefiles, change the way the fuzzer is built

Since librustc and the fuzzer depend on rustllvm, build them
like rustc, linking to libraries in lib instead of lib/rustc/$(target)

12 years agoRemove redundant make clean rules
Brian Anderson [Fri, 30 Sep 2011 03:27:40 +0000 (20:27 -0700)]
Remove redundant make clean rules

12 years agoFix make all build rule
Brian Anderson [Fri, 30 Sep 2011 03:27:28 +0000 (20:27 -0700)]
Fix make all build rule

12 years agoTeach compiletest to construct the PATH variable correctly on win32
Brian Anderson [Fri, 30 Sep 2011 01:30:00 +0000 (18:30 -0700)]
Teach compiletest to construct the PATH variable correctly on win32

12 years agoFix CFG_RUN_TARG on windows
Brian Anderson [Fri, 30 Sep 2011 01:11:53 +0000 (18:11 -0700)]
Fix CFG_RUN_TARG on windows

12 years agoFix a variety of things in the makefiles
Brian Anderson [Thu, 29 Sep 2011 19:21:58 +0000 (12:21 -0700)]
Fix a variety of things in the makefiles

Make tests and perf work again. Correctly get the host triple in rustc. Add
some FIXMEs about transitional code that needs to be removed.

12 years agoRemove the redundant definition of STAGE in makefiles
Brian Anderson [Thu, 29 Sep 2011 19:06:37 +0000 (12:06 -0700)]
Remove the redundant definition of STAGE in makefiles

12 years agoUpdate make clean rules
Brian Anderson [Thu, 29 Sep 2011 18:48:44 +0000 (11:48 -0700)]
Update make clean rules

12 years agoMake rustc's host triple agree with the build system's
Brian Anderson [Thu, 29 Sep 2011 18:31:28 +0000 (11:31 -0700)]
Make rustc's host triple agree with the build system's

12 years agoReorganize structure of build directory
Brian Anderson [Thu, 29 Sep 2011 00:06:57 +0000 (17:06 -0700)]
Reorganize structure of build directory

Each stage is organized more according to Unix standards and to
accommodate multiple target architectures.

stageN/
  bin - rustc lives here
  lib - libraries that rustc needs
  lib/rustc/$(target_triple/ - target libraries

12 years agorustc: Remove some debug code
Patrick Walton [Fri, 30 Sep 2011 01:53:00 +0000 (18:53 -0700)]
rustc: Remove some debug code

12 years agorustc: Make the generic C stack function signature include a usable return value
Patrick Walton [Fri, 30 Sep 2011 01:52:23 +0000 (18:52 -0700)]
rustc: Make the generic C stack function signature include a usable return value

12 years agostdlib: Un-export str::buf; add a comment
Patrick Walton [Fri, 30 Sep 2011 01:36:27 +0000 (18:36 -0700)]
stdlib: Un-export str::buf; add a comment

12 years agovim: Add `pure` to the list of keywords
Patrick Walton [Fri, 30 Sep 2011 01:18:37 +0000 (18:18 -0700)]
vim: Add `pure` to the list of keywords

12 years agostdlib: Export str::buf
Patrick Walton [Fri, 30 Sep 2011 00:58:51 +0000 (17:58 -0700)]
stdlib: Export str::buf

12 years agorustc: Translate calls on the C stack
Patrick Walton [Fri, 30 Sep 2011 00:33:41 +0000 (17:33 -0700)]
rustc: Translate calls on the C stack

12 years agorustc: Fix call signature for call_c_stack
Patrick Walton [Fri, 30 Sep 2011 00:33:14 +0000 (17:33 -0700)]
rustc: Fix call signature for call_c_stack

12 years agort: Fix assembler for C calls to work more like a regular function call
Patrick Walton [Fri, 30 Sep 2011 00:32:28 +0000 (17:32 -0700)]
rt: Fix assembler for C calls to work more like a regular function call

12 years agostdlib: Add vec::eachi to the standard library
Patrick Walton [Fri, 30 Sep 2011 00:31:11 +0000 (17:31 -0700)]
stdlib: Add vec::eachi to the standard library

12 years agorustc: Add upcall stubs for the new C stack upcalls
Patrick Walton [Thu, 29 Sep 2011 01:15:28 +0000 (18:15 -0700)]
rustc: Add upcall stubs for the new C stack upcalls

12 years agorustc: Generate types in trans for the C-stack native ABI
Patrick Walton [Wed, 28 Sep 2011 22:15:54 +0000 (15:15 -0700)]
rustc: Generate types in trans for the C-stack native ABI

12 years agodoc: Don't merge function and concept index. There is no findex
Brian Anderson [Thu, 29 Sep 2011 23:47:09 +0000 (16:47 -0700)]
doc: Don't merge function and concept index. There is no findex

This is causing errors on my windows install

12 years agoDon't build up results for ignored expressions.
Marijn Haverbeke [Thu, 29 Sep 2011 10:02:37 +0000 (12:02 +0200)]
Don't build up results for ignored expressions.

Issue #667

12 years agoFail with an informative error when trying to bind a method
Marijn Haverbeke [Thu, 29 Sep 2011 09:50:03 +0000 (11:50 +0200)]
Fail with an informative error when trying to bind a method

Issue #435

12 years agoMove last remaining expression types out of trans_expr
Marijn Haverbeke [Thu, 29 Sep 2011 09:18:40 +0000 (11:18 +0200)]
Move last remaining expression types out of trans_expr

Issue #667

12 years agoMove expr_cast and expr_copy to DPS style
Marijn Haverbeke [Thu, 29 Sep 2011 08:46:49 +0000 (10:46 +0200)]
Move expr_cast and expr_copy to DPS style

Issue #667

12 years agoMove closure construction over to DPS style
Marijn Haverbeke [Wed, 28 Sep 2011 13:57:38 +0000 (15:57 +0200)]
Move closure construction over to DPS style

Issue #667

12 years agoReduce move ops to a construct-in-place when possible
Marijn Haverbeke [Wed, 28 Sep 2011 13:15:29 +0000 (15:15 +0200)]
Reduce move ops to a construct-in-place when possible

12 years agoEliminate glue.o. Closes #990
Brian Anderson [Wed, 28 Sep 2011 22:26:11 +0000 (15:26 -0700)]
Eliminate glue.o. Closes #990

12 years agoTest cases for #985
Brian Anderson [Wed, 28 Sep 2011 21:39:57 +0000 (14:39 -0700)]
Test cases for #985

Other restrictions on pinned kinds happened to fix this

Closes #985

12 years agoDon't allow vectors of pinned kinds
Brian Anderson [Wed, 28 Sep 2011 21:37:28 +0000 (14:37 -0700)]
Don't allow vectors of pinned kinds

Vectors of pinned kinds can't be safe because most interesting uses of vector
perform copies

12 years agoMake error patterns in some kind tests more specific
Brian Anderson [Wed, 28 Sep 2011 21:24:56 +0000 (14:24 -0700)]
Make error patterns in some kind tests more specific

12 years agorustc: Add a new "C stack cdecl" native ABI
Patrick Walton [Wed, 28 Sep 2011 19:58:03 +0000 (12:58 -0700)]
rustc: Add a new "C stack cdecl" native ABI

12 years agoxfail-fast run-pass/alt-range.rs
Brian Anderson [Wed, 28 Sep 2011 19:24:15 +0000 (12:24 -0700)]
xfail-fast run-pass/alt-range.rs

12 years agoRevert "Revert "Implement pattern ranges for all numeric types.""
Brian Anderson [Wed, 28 Sep 2011 19:07:33 +0000 (12:07 -0700)]
Revert "Revert "Implement pattern ranges for all numeric types.""

This reverts commit a034f87146e60e1db2327c6f6807c47406a1bb0b.

Conflicts:

src/comp/middle/check_alt.rs
src/comp/middle/trans_alt.rs
src/comp/syntax/ast.rs
src/comp/syntax/ast_util.rs
src/comp/syntax/fold.rs
src/comp/syntax/print/pprust.rs

Conflicts:

src/comp/middle/trans_alt.rs

12 years agovim: `const` is a keyword
Patrick Walton [Wed, 28 Sep 2011 19:40:34 +0000 (12:40 -0700)]
vim: `const` is a keyword

12 years agort: Add a call stub that switches to the C stack, untested as of yet
Patrick Walton [Wed, 28 Sep 2011 19:26:36 +0000 (12:26 -0700)]
rt: Add a call stub that switches to the C stack, untested as of yet

12 years agort: Add an upcall to allocate space on the C stack. This will be used for native...
Patrick Walton [Wed, 28 Sep 2011 18:31:44 +0000 (11:31 -0700)]
rt: Add an upcall to allocate space on the C stack. This will be used for native calls on the C stack.