about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2011-11-16Add a test that native mods don't need to declare an ABIBrian Anderson-0/+9
2011-11-16Use attributes for native module ABI and link nameHaitao Li-128/+168
This patch changes how to specify ABI and link name of a native module. Before: native "cdecl" mod llvm = "rustllvm" {...} After: #[abi = "cdecl"] #[link_name = "rustllvm"] native mod llvm {...} The old optional syntax for ABI and link name is no longer supported. Fixes issue #547
2011-11-16Register snapshotsBrian Anderson-0/+5
2011-11-16Use attributes for native module ABI and link name [temp]Haitao Li-1/+25
This patch adds support of using attributes to specify native mode ABI and link name. The old optional syntax like: native "cdecl" mod llvm = "rustllvm" { ... } is still supported. This is a transitional commit to avoid making a stage1 (backward imcompatible) snapshot.
2011-11-16rustc: Use link_name attribute for native functionHaitao Li-29/+35
Fixes issue #906
2011-11-15stdlib: Turn function calls into constants. Fix win32 breakageBrian Anderson-2/+2
2011-11-15Fixed typo in constant value #1165Stefan Plantikow-1/+1
2011-11-15Replaced constant functions with actual constants in std and updated testsStefan Plantikow-141/+122
Fixes issue #1165
2011-11-15rustc: Don't sign extend uints during translationBrian Anderson-1/+1
Doing so produces incorrect results on a 32-bit compiler targeting 64-bits
2011-11-15Make run-pass/bitwise 64-bit compatibleBrian Anderson-3/+17
2011-11-15Support conditional compilation based on architectureBrian Anderson-1/+12
target_os = "x86" or target_os = "x86_64"
2011-11-15Make run-pass/native-fn-linkname's main take no argsBrian Anderson-1/+1
check-fast doesn't like it.
2011-11-15Use native fn's link name attribute if givenHaitao Li-2/+27
Fixes issue #905
2011-11-15Fix some indentation and idioms in rope.rsMarijn Haverbeke-25/+17
Sorry for the pedantry. I was handling a compilation bug related to this code, and it just jumped out at me.
2011-11-15Fix handling of loops and conditionals in alias.rsMarijn Haverbeke-62/+169
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
2011-11-14xfail-fast run-pass/native-dupe.rsBrian Anderson-0/+3
This test calls the task pin function which has side effects and causes other tests to lock.
2011-11-14Revert "rt: More work on morestack"Patrick Walton-142/+29
This reverts commit ced0d4f15e11e2c74766d1055146946ded3fba51.
2011-11-14rt: More work on morestackPatrick Walton-29/+142
2011-11-14stdlib: Run cleanups on data that fails to sendBrian Anderson-3/+22
2011-11-14Un-xfail-win32 two tests that should actually workBrian Anderson-2/+0
2011-11-15rustllvm: Add a GetOrInsertFunction wrapperHaitao Li-1/+23
Fixes issue #1161 Test-case-by: Brian Anderson <banderson@mozilla.com> Signed-off-by: Haitao Li <lihaitao@gmail.com>
2011-11-13rt: Add locking invariants to rust_portBrian Anderson-2/+3
2011-11-13rt: Perform task notification before killing the parent taskBrian Anderson-19/+27
2011-11-13Drop enqueued elements when a port is destructed. Closes #1155Brian Anderson-2/+39
2011-11-13Make various binops not typecheck for unsafe pointers. Closes #1173Brian Anderson-1/+4
2011-11-11Add test for #783. Closes #783Brian Anderson-0/+25
2011-11-11Rehabilitate run-fail/linked-failure4.rsBrian Anderson-10/+6
2011-11-11Rehabilitate run-pass/task-killjoin.rsBrian Anderson-9/+7
2011-11-11rt: Make rust_port's ref counting non-atomicBrian Anderson-1/+1
Now that the task lock must be held there's no need for atomicity
2011-11-11Rehabilitate run-pass/task-comm.rsBrian Anderson-9/+9
2011-11-11rt: Take the task lock when dropping port refcountsBrian Anderson-27/+21
Sucks, but otherwise there are races when one task drops the refcount to zero followed by another bumping it again
2011-11-11Fix run-fail/spawnfailBrian Anderson-6/+11
Catch the case where a parent is killed immediately before it terminates normally.
2011-11-11Give task-perf-word-count default behavior. Closes #1172Brian Anderson-18/+172
2011-11-11rt: Add locking invariants to rust_taskBrian Anderson-0/+8
2011-11-11rt: Remove drop_port. UnusedBrian Anderson-7/+0
2011-11-11rt: Remove rust_chanBrian Anderson-138/+29
2011-11-12Remove unused "--check-unsafe" flagHaitao Li-2/+1
Fixes issue #1138
2011-11-10str: add escape()Elly Jones-2/+40
Signed-off-by: Elly Jones <elly@leptoquark.net>
2011-11-10Cleanup unused imports in testsHaitao Li-7/+0
2011-11-10Cleanup unused importsHaitao Li-204/+104
2011-11-10rustc: Add support of warning on unused importsHaitao Li-9/+54
Fixes issue #889
2011-11-10rt: Remove rust_aio.cpp. Bitrotted.Brian Anderson-335/+0
2011-11-10stdlib: Remove sio and aio. Bitrotted.Brian Anderson-375/+1
2011-11-10rt: Move rust_chan::send to rust_port::sendBrian Anderson-36/+33
2011-11-10rt: Remove rust_token. UnusedBrian Anderson-3/+1
2011-11-10rt: Remove del_chan, take_chan, drop_chan. UnusedBrian Anderson-17/+0
2011-11-10rt: Simplify channel-port associationBrian Anderson-70/+23
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.
2011-11-10rt: Remove new_chan. Not neededBrian Anderson-16/+3
2011-11-10rt: Remove chan_send. Unused.Brian Anderson-6/+0
2011-11-10stdlib: Update the example in std::commBrian Anderson-3/+2
Due to a bug in channel destructors this examples fails when logging is off Issue #1155