]> git.lizzy.rs Git - rust.git/log
rust.git
12 years agoAdd Stefan Plantikow to AUTHORS.txt
Brian Anderson [Wed, 16 Nov 2011 02:04:37 +0000 (18:04 -0800)]
Add Stefan Plantikow to AUTHORS.txt

12 years agoFixed typo in constant value #1165
Stefan Plantikow [Wed, 16 Nov 2011 01:34:58 +0000 (02:34 +0100)]
Fixed typo in constant value #1165

12 years agoReplaced constant functions with actual constants in std and updated tests
Stefan Plantikow [Wed, 16 Nov 2011 01:10:43 +0000 (02:10 +0100)]
Replaced constant functions with actual constants in std and updated tests

Fixes issue #1165

12 years agorustc: Don't sign extend uints during translation
Brian Anderson [Wed, 16 Nov 2011 01:48:00 +0000 (17:48 -0800)]
rustc: Don't sign extend uints during translation

Doing so produces incorrect results on a 32-bit compiler targeting 64-bits

12 years agoMake run-pass/bitwise 64-bit compatible
Brian Anderson [Wed, 16 Nov 2011 01:01:06 +0000 (17:01 -0800)]
Make run-pass/bitwise 64-bit compatible

12 years agoSupport conditional compilation based on architecture
Brian Anderson [Wed, 16 Nov 2011 00:33:07 +0000 (16:33 -0800)]
Support conditional compilation based on architecture

target_os = "x86" or target_os = "x86_64"

12 years agoMake run-pass/native-fn-linkname's main take no args
Brian Anderson [Tue, 15 Nov 2011 18:09:28 +0000 (10:09 -0800)]
Make run-pass/native-fn-linkname's main take no args

check-fast doesn't like it.

12 years agoUse native fn's link name attribute if given
Haitao Li [Wed, 16 Nov 2011 04:30:03 +0000 (22:30 -0600)]
Use native fn's link name attribute if given

Fixes issue #905

12 years agoUse libcrypto.so instead of libssl.so in the ffi part of tutorial
Marijn Haverbeke [Tue, 15 Nov 2011 12:53:03 +0000 (13:53 +0100)]
Use libcrypto.so instead of libssl.so in the ffi part of tutorial

12 years agoFix some indentation and idioms in rope.rs
Marijn Haverbeke [Tue, 15 Nov 2011 12:31:44 +0000 (13:31 +0100)]
Fix some indentation and idioms in rope.rs

Sorry for the pedantry. I was handling a compilation bug related to this code,
and it just jumped out at me.

12 years agoFix handling of loops and conditionals in alias.rs
Marijn Haverbeke [Tue, 15 Nov 2011 10:16:41 +0000 (11:16 +0100)]
Fix handling of loops and conditionals in alias.rs

It now threads information about invalidated aliases through the AST
properly. This makes it more permissive for conditionals (invalidating
an alias in one branch doesn't prevent you from using it in another),
and less permissive for loops (it now properly notices when a loop
invalidates an alias that it might still use in another iteration).

Closes #1144

12 years agoxfail-fast run-pass/native-dupe.rs
Brian Anderson [Tue, 15 Nov 2011 02:51:15 +0000 (18:51 -0800)]
xfail-fast run-pass/native-dupe.rs

This test calls the task pin function which has side effects and causes
other tests to lock.

12 years agoRevert "rt: More work on morestack"
Patrick Walton [Tue, 15 Nov 2011 00:20:53 +0000 (16:20 -0800)]
Revert "rt: More work on morestack"

This reverts commit ced0d4f15e11e2c74766d1055146946ded3fba51.

12 years agort: More work on morestack
Patrick Walton [Mon, 14 Nov 2011 21:52:35 +0000 (13:52 -0800)]
rt: More work on morestack

12 years agostdlib: Run cleanups on data that fails to send
Brian Anderson [Mon, 14 Nov 2011 21:49:56 +0000 (13:49 -0800)]
stdlib: Run cleanups on data that fails to send

12 years agoUn-xfail-win32 two tests that should actually work
Brian Anderson [Mon, 14 Nov 2011 21:13:44 +0000 (13:13 -0800)]
Un-xfail-win32 two tests that should actually work

12 years agorustllvm: Add a GetOrInsertFunction wrapper
Haitao Li [Mon, 14 Nov 2011 16:32:31 +0000 (00:32 +0800)]
rustllvm: Add a GetOrInsertFunction wrapper

Fixes issue #1161

Test-case-by: Brian Anderson <banderson@mozilla.com>
Signed-off-by: Haitao Li <lihaitao@gmail.com>
12 years agobuild: Fix 'make perf'. Closes #1151
Brian Anderson [Mon, 14 Nov 2011 00:51:38 +0000 (16:51 -0800)]
build: Fix 'make perf'. Closes #1151

12 years agort: Add locking invariants to rust_port
Brian Anderson [Mon, 14 Nov 2011 00:38:34 +0000 (16:38 -0800)]
rt: Add locking invariants to rust_port

12 years agort: Perform task notification before killing the parent task
Brian Anderson [Mon, 14 Nov 2011 00:36:47 +0000 (16:36 -0800)]
rt: Perform task notification before killing the parent task

12 years agoDrop enqueued elements when a port is destructed. Closes #1155
Brian Anderson [Sun, 13 Nov 2011 23:28:59 +0000 (15:28 -0800)]
Drop enqueued elements when a port is destructed. Closes #1155

12 years agoMake various binops not typecheck for unsafe pointers. Closes #1173
Brian Anderson [Sun, 13 Nov 2011 21:55:08 +0000 (13:55 -0800)]
Make various binops not typecheck for unsafe pointers. Closes #1173

12 years agoAdd test for #783. Closes #783
Brian Anderson [Sat, 12 Nov 2011 01:08:50 +0000 (17:08 -0800)]
Add test for #783. Closes #783

12 years agoRehabilitate run-fail/linked-failure4.rs
Brian Anderson [Sat, 12 Nov 2011 00:26:03 +0000 (16:26 -0800)]
Rehabilitate run-fail/linked-failure4.rs

12 years agoRehabilitate run-pass/task-killjoin.rs
Brian Anderson [Sat, 12 Nov 2011 00:23:38 +0000 (16:23 -0800)]
Rehabilitate run-pass/task-killjoin.rs

12 years agort: Make rust_port's ref counting non-atomic
Brian Anderson [Sat, 12 Nov 2011 00:12:48 +0000 (16:12 -0800)]
rt: Make rust_port's ref counting non-atomic

Now that the task lock must be held there's no need for atomicity

12 years agoRehabilitate run-pass/task-comm.rs
Brian Anderson [Fri, 11 Nov 2011 23:50:57 +0000 (15:50 -0800)]
Rehabilitate run-pass/task-comm.rs

12 years agort: Take the task lock when dropping port refcounts
Brian Anderson [Fri, 11 Nov 2011 23:34:35 +0000 (15:34 -0800)]
rt: Take the task lock when dropping port refcounts

Sucks, but otherwise there are races when one task drops the refcount to zero
followed by another bumping it again

12 years agoFix run-fail/spawnfail
Brian Anderson [Fri, 11 Nov 2011 22:19:15 +0000 (14:19 -0800)]
Fix run-fail/spawnfail

Catch the case where a parent is killed immediately before it terminates
normally.

12 years agoGive task-perf-word-count default behavior. Closes #1172
Brian Anderson [Fri, 11 Nov 2011 20:35:43 +0000 (12:35 -0800)]
Give task-perf-word-count default behavior. Closes #1172

12 years agort: Add locking invariants to rust_task
Brian Anderson [Fri, 11 Nov 2011 20:06:18 +0000 (12:06 -0800)]
rt: Add locking invariants to rust_task

12 years agort: Remove drop_port. Unused
Brian Anderson [Fri, 11 Nov 2011 20:03:52 +0000 (12:03 -0800)]
rt: Remove drop_port. Unused

12 years agort: Remove rust_chan
Brian Anderson [Fri, 11 Nov 2011 19:46:07 +0000 (11:46 -0800)]
rt: Remove rust_chan

12 years agoRemove unused "--check-unsafe" flag
Haitao Li [Fri, 11 Nov 2011 15:55:47 +0000 (23:55 +0800)]
Remove unused "--check-unsafe" flag

Fixes issue #1138

12 years agostr: add escape()
Elly Jones [Fri, 11 Nov 2011 03:37:41 +0000 (22:37 -0500)]
str: add escape()

Signed-off-by: Elly Jones <elly@leptoquark.net>
12 years agoCleanup unused imports in tests
Haitao Li [Thu, 10 Nov 2011 17:08:19 +0000 (01:08 +0800)]
Cleanup unused imports in tests

12 years agoCleanup unused imports
Haitao Li [Thu, 10 Nov 2011 16:41:42 +0000 (00:41 +0800)]
Cleanup unused imports

12 years agorustc: Add support of warning on unused imports
Haitao Li [Thu, 10 Nov 2011 15:31:55 +0000 (23:31 +0800)]
rustc: Add support of warning on unused imports

Fixes issue #889

12 years agort: Remove rust_aio.cpp. Bitrotted.
Brian Anderson [Fri, 11 Nov 2011 02:01:56 +0000 (18:01 -0800)]
rt: Remove rust_aio.cpp. Bitrotted.

12 years agostdlib: Remove sio and aio. Bitrotted.
Brian Anderson [Fri, 11 Nov 2011 01:59:26 +0000 (17:59 -0800)]
stdlib: Remove sio and aio. Bitrotted.

12 years agort: Move rust_chan::send to rust_port::send
Brian Anderson [Fri, 11 Nov 2011 01:53:19 +0000 (17:53 -0800)]
rt: Move rust_chan::send to rust_port::send

12 years agort: Remove rust_token. Unused
Brian Anderson [Fri, 11 Nov 2011 01:35:21 +0000 (17:35 -0800)]
rt: Remove rust_token. Unused

12 years agort: Remove del_chan, take_chan, drop_chan. Unused
Brian Anderson [Fri, 11 Nov 2011 01:28:28 +0000 (17:28 -0800)]
rt: Remove del_chan, take_chan, drop_chan. Unused

12 years agort: Simplify channel-port association
Brian Anderson [Fri, 11 Nov 2011 00:10:57 +0000 (16:10 -0800)]
rt: Simplify channel-port association

It turns out that there's only ever a single channel per port these days,
and it always has the same lifetime as the port, so we don't need a list or a
complex association protocol.

12 years agort: Remove new_chan. Not needed
Brian Anderson [Thu, 10 Nov 2011 23:59:31 +0000 (15:59 -0800)]
rt: Remove new_chan. Not needed

12 years agort: Remove chan_send. Unused.
Brian Anderson [Thu, 10 Nov 2011 23:36:09 +0000 (15:36 -0800)]
rt: Remove chan_send. Unused.

12 years agostdlib: Update the example in std::comm
Brian Anderson [Thu, 10 Nov 2011 23:18:01 +0000 (15:18 -0800)]
stdlib: Update the example in std::comm

Due to a bug in channel destructors this examples fails when logging is off

Issue #1155

12 years agoImprove make clean rules for libuv
Brian Anderson [Thu, 10 Nov 2011 21:42:02 +0000 (13:42 -0800)]
Improve make clean rules for libuv

12 years agoAdd float support to #fmt. Fix #1014.
Josh Matthews [Thu, 10 Nov 2011 11:31:42 +0000 (06:31 -0500)]
Add float support to #fmt. Fix #1014.

12 years agoremove rustc target: it breaks mingw32 and I don't care enough
Niko Matsakis [Thu, 10 Nov 2011 04:45:01 +0000 (20:45 -0800)]
remove rustc target: it breaks mingw32 and I don't care enough

12 years agohack around the problem that x86_64 expects first few args in regs.
Niko Matsakis [Wed, 9 Nov 2011 19:01:12 +0000 (11:01 -0800)]
hack around the problem that x86_64 expects first few args in regs.
call on c-stack expects all data to be delivered on the stack.

12 years agouse uint64_t when adjusting stack ptr
Niko Matsakis [Wed, 9 Nov 2011 18:03:33 +0000 (10:03 -0800)]
use uint64_t when adjusting stack ptr

12 years agoadd rustc to set of targets to build
Niko Matsakis [Wed, 9 Nov 2011 16:35:49 +0000 (08:35 -0800)]
add rustc to set of targets to build

12 years agoRename "c-stack-stdcall" ABI to "stdcall"
Brian Anderson [Thu, 10 Nov 2011 02:45:25 +0000 (18:45 -0800)]
Rename "c-stack-stdcall" ABI to "stdcall"

12 years agoRename "c-stack-cdecl" ABI to "cdecl"
Brian Anderson [Thu, 10 Nov 2011 02:44:12 +0000 (18:44 -0800)]
Rename "c-stack-cdecl" ABI to "cdecl"

12 years agoRegister snapshots
Brian Anderson [Thu, 10 Nov 2011 01:55:12 +0000 (17:55 -0800)]
Register snapshots

12 years agoAdd "cdecl" as synonym for "c-stack-cdecl"
Brian Anderson [Thu, 10 Nov 2011 00:04:07 +0000 (16:04 -0800)]
Add "cdecl" as synonym for "c-stack-cdecl"

12 years agoAdd "stdcall" as synonym for "c-stack-stdcall"
Brian Anderson [Thu, 10 Nov 2011 00:02:21 +0000 (16:02 -0800)]
Add "stdcall" as synonym for "c-stack-stdcall"

12 years agorustc: Rename native_abi_c_stack_cdecl to native_abi_cdecl
Brian Anderson [Wed, 9 Nov 2011 23:59:29 +0000 (15:59 -0800)]
rustc: Rename native_abi_c_stack_cdecl to native_abi_cdecl

12 years agorustc: Rename native_abi_c_stack_stdcall to native_abi_stdcall
Brian Anderson [Wed, 9 Nov 2011 23:58:53 +0000 (15:58 -0800)]
rustc: Rename native_abi_c_stack_stdcall to native_abi_stdcall

12 years agoRemove native "x86stdcall" ABI
Brian Anderson [Wed, 9 Nov 2011 23:56:28 +0000 (15:56 -0800)]
Remove native "x86stdcall" ABI

12 years agoConvert last use of "x86stdcall" ABI to "c-stack-stdcall"
Brian Anderson [Wed, 9 Nov 2011 23:49:23 +0000 (15:49 -0800)]
Convert last use of "x86stdcall" ABI to "c-stack-stdcall"

12 years agoRegister snapshots
Brian Anderson [Thu, 10 Nov 2011 00:46:35 +0000 (16:46 -0800)]
Register snapshots

12 years agoMake native "c-stack-stdcall" ABI work
Brian Anderson [Wed, 9 Nov 2011 23:27:11 +0000 (15:27 -0800)]
Make native "c-stack-stdcall" ABI work

The symbol name is based on the number of arguments, so we have to declare
it correctly.

For some reason GetLastError doesn't work now.

12 years agoAdd test with implemented bits of issue #570.
Joshua Wise [Wed, 9 Nov 2011 09:44:42 +0000 (01:44 -0800)]
Add test with implemented bits of issue #570.

12 years agotrans: Add binops (except for logic and comparators) and unops to trans_const_expr...
Joshua Wise [Wed, 9 Nov 2011 09:42:30 +0000 (01:42 -0800)]
trans: Add binops (except for logic and comparators) and unops to trans_const_expr.  Working towards issue #570.

12 years agomiddle: Add a pass to reject bad const expressions earlier. Currently just rejects...
Joshua Wise [Wed, 9 Nov 2011 02:26:02 +0000 (18:26 -0800)]
middle: Add a pass to reject bad const expressions earlier.  Currently just rejects unimplemented const expressions, but will be needed later.

12 years agocorrect stack alignment
Niko Matsakis [Wed, 9 Nov 2011 01:07:11 +0000 (17:07 -0800)]
correct stack alignment

12 years agocleanup, removing comments and dead code
Niko Matsakis [Wed, 9 Nov 2011 00:04:34 +0000 (16:04 -0800)]
cleanup, removing comments and dead code

12 years agofix bug in loading argument regs
Niko Matsakis [Wed, 9 Nov 2011 00:04:29 +0000 (16:04 -0800)]
fix bug in loading argument regs

12 years agocorrect calling convention for x86_64
Niko Matsakis [Tue, 8 Nov 2011 22:25:41 +0000 (14:25 -0800)]
correct calling convention for x86_64

12 years agomake clean delete all .o files from rt directory
Niko Matsakis [Tue, 8 Nov 2011 05:51:14 +0000 (21:51 -0800)]
make clean delete all .o files from rt directory

12 years agofix alignment of xmm register storage
Niko Matsakis [Tue, 8 Nov 2011 05:50:28 +0000 (21:50 -0800)]
fix alignment of xmm register storage

12 years agorewrite so that memory allocations have 0 overhead by default
Niko Matsakis [Tue, 8 Nov 2011 01:19:29 +0000 (17:19 -0800)]
rewrite so that memory allocations have 0 overhead by default

12 years agoCorrect the arithmetic on 64-bit builds.
Niko Matsakis [Tue, 8 Nov 2011 00:48:18 +0000 (16:48 -0800)]
Correct the arithmetic on 64-bit builds.

12 years agofix handling of target-triples: use a comma to separate hosts
Niko Matsakis [Mon, 7 Nov 2011 22:13:13 +0000 (14:13 -0800)]
fix handling of target-triples: use a comma to separate hosts

12 years agoRe-add libuv as a submodule.
Erick Tryzelaar [Tue, 8 Nov 2011 22:36:19 +0000 (14:36 -0800)]
Re-add libuv as a submodule.

12 years agoRemoving the baked in libuv.
Erick Tryzelaar [Tue, 8 Nov 2011 05:31:08 +0000 (21:31 -0800)]
Removing the baked in libuv.

12 years agoRemove native "cdecl" ABI
Brian Anderson [Wed, 9 Nov 2011 01:17:06 +0000 (17:17 -0800)]
Remove native "cdecl" ABI

12 years agoClean up std::task
Brian Anderson [Wed, 9 Nov 2011 01:16:46 +0000 (17:16 -0800)]
Clean up std::task

12 years agoMake task_sleep an intrinsic.
Brian Anderson [Tue, 8 Nov 2011 23:38:56 +0000 (15:38 -0800)]
Make task_sleep an intrinsic.

12 years agort: Remove task_yield builtin
Brian Anderson [Tue, 8 Nov 2011 22:26:16 +0000 (14:26 -0800)]
rt: Remove task_yield builtin

This is just a special case of task_sleep

12 years agostart_task can run on the C stack
Brian Anderson [Tue, 8 Nov 2011 22:05:23 +0000 (14:05 -0800)]
start_task can run on the C stack

12 years agoRemove all uses of native cdecl except for those that yield
Brian Anderson [Tue, 8 Nov 2011 19:09:40 +0000 (11:09 -0800)]
Remove all uses of native cdecl except for those that yield

12 years agoRevert "Removing the baked in libuv."
Erick Tryzelaar [Tue, 8 Nov 2011 05:38:33 +0000 (21:38 -0800)]
Revert "Removing the baked in libuv."

This reverts commit df30663fdd518c9148a839a40cb9682015a0b79c.

12 years agoRevert "Reimporting libuv as a submodule."
Erick Tryzelaar [Tue, 8 Nov 2011 05:38:18 +0000 (21:38 -0800)]
Revert "Reimporting libuv as a submodule."

This reverts commit cbae254d8a068ad789ebb767f0a2def5a1f88ed6.

12 years agoReimporting libuv as a submodule.
Erick Tryzelaar [Tue, 8 Nov 2011 05:31:51 +0000 (21:31 -0800)]
Reimporting libuv as a submodule.

Closes #1152.

12 years agoRemoving the baked in libuv.
Erick Tryzelaar [Tue, 8 Nov 2011 05:31:08 +0000 (21:31 -0800)]
Removing the baked in libuv.

12 years agoUse ".ll" as default suffix of LLVM assembly file
Haitao Li [Tue, 8 Nov 2011 04:37:42 +0000 (12:37 +0800)]
Use ".ll" as default suffix of LLVM assembly file

This commit is a follow up of Issue #1147.

Althought there are some inconsistency about this naming convention in
LLVM. For example, `clang' write LLVM assembly to a file with ".s" suffix,
while both `llvm-dis' and `opt' write to files with ".ll" suffices. We
think ".ll" makes more sense.

Also rustc manual page is updated.

12 years agoRename rust_uv.cpp to rust_aio.cpp
Brian Anderson [Tue, 8 Nov 2011 03:35:39 +0000 (19:35 -0800)]
Rename rust_uv.cpp to rust_aio.cpp

12 years agoUpgrade libuv to f1859eb841be2fe48512bc10e64556383f408b01
Brian Anderson [Tue, 8 Nov 2011 03:24:25 +0000 (19:24 -0800)]
Upgrade libuv to f1859eb841be2fe48512bc10e64556383f408b01

12 years agoFix long lines
Brian Anderson [Mon, 7 Nov 2011 23:46:00 +0000 (15:46 -0800)]
Fix long lines

12 years agojson: betterify for brson
Elly Jones [Mon, 7 Nov 2011 23:24:44 +0000 (18:24 -0500)]
json: betterify for brson

Signed-off-by: Elly Jones <ellyjones@google.com>
12 years agostdlib: add json.
Elly Jones [Mon, 7 Nov 2011 19:01:28 +0000 (14:01 -0500)]
stdlib: add json.

Add a json serializer and deserializer.

Signed-off-by: Elly Jones <ellyjones@google.com>
12 years agoRemove native "llvm" ABI
Brian Anderson [Mon, 7 Nov 2011 23:29:05 +0000 (15:29 -0800)]
Remove native "llvm" ABI

12 years agoRemove native "rust" ABI
Brian Anderson [Mon, 7 Nov 2011 23:14:10 +0000 (15:14 -0800)]
Remove native "rust" ABI

12 years agoClean up logging output. Closes #1088
Brian Anderson [Mon, 7 Nov 2011 22:14:36 +0000 (14:14 -0800)]
Clean up logging output. Closes #1088

12 years agoDocument crate top-level and directory modules. Closes #1097
Brian Anderson [Mon, 7 Nov 2011 21:34:04 +0000 (13:34 -0800)]
Document crate top-level and directory modules. Closes #1097

12 years agoAdd test for if without else cannot return result
Brian Anderson [Mon, 7 Nov 2011 20:20:22 +0000 (12:20 -0800)]
Add test for if without else cannot return result

12 years agoAdd tests for blocks that must not have results
Brian Anderson [Mon, 7 Nov 2011 20:19:50 +0000 (12:19 -0800)]
Add tests for blocks that must not have results