]> git.lizzy.rs Git - rust.git/log
rust.git
14 years agoMerge branch 'master' of git@github.com:graydon/rust
Graydon Hoare [Fri, 16 Jul 2010 00:00:36 +0000 (17:00 -0700)]
Merge branch 'master' of git@github.com:graydon/rust

14 years agoXFAIL use-import-export.rs on the LLVM backend.
Graydon Hoare [Thu, 15 Jul 2010 23:57:28 +0000 (16:57 -0700)]
XFAIL use-import-export.rs on the LLVM backend.

14 years agoDefine (in Abi) and use named constants for indices of elements of an obj IL referent...
Roy Frostig [Thu, 15 Jul 2010 23:54:38 +0000 (16:54 -0700)]
Define (in Abi) and use named constants for indices of elements of an obj IL referent type.

14 years agoMerge branch 'contrib'
Graydon Hoare [Thu, 15 Jul 2010 23:49:02 +0000 (16:49 -0700)]
Merge branch 'contrib'

14 years agoUpdate AUTHORS.txt.
Graydon Hoare [Thu, 15 Jul 2010 23:48:40 +0000 (16:48 -0700)]
Update AUTHORS.txt.

14 years agouse,import,export parse fixes
Adam Bozanich [Sat, 10 Jul 2010 04:11:07 +0000 (12:11 +0800)]
use,import,export parse fixes

* use,import,export must come before all other items.
* disallow use,import in "native" declarations.

14 years agopermit use before import. closes #48
Adam Bozanich [Fri, 9 Jul 2010 07:23:12 +0000 (15:23 +0800)]
permit use before import.  closes #48

14 years agoMake mutability no longer a type constructor
Patrick Walton [Thu, 15 Jul 2010 22:20:04 +0000 (15:20 -0700)]
Make mutability no longer a type constructor

14 years agoCorrect the way we get typarams when dropping an obj type in drop_ty by using get_tyd...
Roy Frostig [Thu, 15 Jul 2010 19:28:43 +0000 (12:28 -0700)]
Correct the way we get typarams when dropping an obj type in drop_ty by using get_tydesc_params.

14 years agoModify copy_fn_args not to bother with dynamic GEP to get the indirect args cell...
Roy Frostig [Thu, 15 Jul 2010 19:20:20 +0000 (12:20 -0700)]
Modify copy_fn_args not to bother with dynamic GEP to get the indirect args cell in a calltup.  It's now possible to obtain it with just regular GEP.

14 years agoExplicitly provide an optional closure/obj pointer to trans_call_glue so that it...
Roy Frostig [Thu, 15 Jul 2010 01:32:44 +0000 (18:32 -0700)]
Explicitly provide an optional closure/obj pointer to trans_call_glue so that it can push one in the right position when calling glue, instead of always pushing a null.  As far as I can tell this only affects calls to obj drop glue, since only that makes use of an object binding passed as closure/obj, so pass the binding there as needed.

14 years agoMake the x86 backend push an extra word as closure/obj arg when emitting any code...
Roy Frostig [Wed, 14 Jul 2010 01:11:23 +0000 (18:11 -0700)]
Make the x86 backend push an extra word as closure/obj arg when emitting any code that amounts to a glue or native call.

14 years agoAdd another null byte preceding commandline args passed to the root task, in position...
Roy Frostig [Wed, 14 Jul 2010 00:47:05 +0000 (17:47 -0700)]
Add another null byte preceding commandline args passed to the root task, in position of closure/obj pointer.

14 years agoAdjust trans_call_glue to push/pop an extra null word implicit arg, in position of...
Roy Frostig [Tue, 13 Jul 2010 20:28:48 +0000 (13:28 -0700)]
Adjust trans_call_glue to push/pop an extra null word implicit arg, in position of closure/obj pointer.

14 years agoAdjust call args laid out by fake frame created in rust_task::start to reflect new...
Roy Frostig [Tue, 13 Jul 2010 06:58:00 +0000 (23:58 -0700)]
Adjust call args laid out by fake frame created in rust_task::start to reflect new position of closure-or-obj pointer.

14 years agoBegin moving closure-or-obj pointer out to front of call args by changing the order...
Roy Frostig [Tue, 13 Jul 2010 06:55:44 +0000 (23:55 -0700)]
Begin moving closure-or-obj pointer out to front of call args by changing the order within the call-arg tup referent type.  This breaks the world quite a bit, since it remains to fix custom call paths: glue, upcalls, natives.

14 years agoMake the call args referent type always have a closure word (non-optional, null in...
Roy Frostig [Tue, 13 Jul 2010 00:03:27 +0000 (17:03 -0700)]
Make the call args referent type always have a closure word (non-optional, null in case of no closure) in preparation for shifting it inward from its current position at end-of-call-tup.

14 years agoMinimize pointless logging during walk.
Graydon Hoare [Thu, 15 Jul 2010 00:05:17 +0000 (17:05 -0700)]
Minimize pointless logging during walk.

14 years agoFix support for profiling the compiler.
Graydon Hoare [Thu, 15 Jul 2010 00:03:08 +0000 (17:03 -0700)]
Fix support for profiling the compiler.

14 years agoSketch some not-quite-compiling code into comp/fe/lexer.rs.
Graydon Hoare [Wed, 14 Jul 2010 16:41:36 +0000 (09:41 -0700)]
Sketch some not-quite-compiling code into comp/fe/lexer.rs.

14 years agoFix ret/put mis-identification in typechecker. Closes #87.
Graydon Hoare [Wed, 14 Jul 2010 16:41:08 +0000 (09:41 -0700)]
Fix ret/put mis-identification in typechecker. Closes #87.

14 years agoFix LLVM-detection logic to notice when we have, or don't have, the ocaml bindings...
Graydon Hoare [Tue, 13 Jul 2010 23:23:52 +0000 (16:23 -0700)]
Fix LLVM-detection logic to notice when we have, or don't have, the ocaml bindings. Also XFAIL missed new case. Closes #102.

14 years agoUpdate AUTHORS.txt.
Graydon Hoare [Tue, 13 Jul 2010 23:08:40 +0000 (16:08 -0700)]
Update AUTHORS.txt.

14 years agoTypo fixes to docs, from Ralph Giles.
Graydon Hoare [Tue, 13 Jul 2010 23:04:31 +0000 (16:04 -0700)]
Typo fixes to docs, from Ralph Giles.

14 years agoFix the next typo in mlist-cycle.rs; still doesn't work.
Graydon Hoare [Tue, 13 Jul 2010 21:27:23 +0000 (14:27 -0700)]
Fix the next typo in mlist-cycle.rs; still doesn't work.

14 years agoAdd some (non-functional) input-readingn to rustc.rs.
Graydon Hoare [Tue, 13 Jul 2010 21:26:59 +0000 (14:26 -0700)]
Add some (non-functional) input-readingn to rustc.rs.

14 years agoDesugar the head stmts all the way out of STMT_for, rather than stashing them in...
Graydon Hoare [Tue, 13 Jul 2010 21:26:38 +0000 (14:26 -0700)]
Desugar the head stmts all the way out of STMT_for, rather than stashing them in the node. That's only necessary for STMT_while.

14 years agoModify _io's fd_buf_reader to do something slightly more useful: produce multiple...
Graydon Hoare [Tue, 13 Jul 2010 21:24:47 +0000 (14:24 -0700)]
Modify _io's fd_buf_reader to do something slightly more useful: produce multiple buffers on demand.

14 years agoAdd differently-typed refcount synonyms to _str and _vec.
Graydon Hoare [Tue, 13 Jul 2010 21:23:49 +0000 (14:23 -0700)]
Add differently-typed refcount synonyms to _str and _vec.

14 years agoAccept effect-qualified local item declarations.
Graydon Hoare [Tue, 13 Jul 2010 21:23:00 +0000 (14:23 -0700)]
Accept effect-qualified local item declarations.

14 years agoDoc fix.
Graydon Hoare [Tue, 13 Jul 2010 21:22:33 +0000 (14:22 -0700)]
Doc fix.

14 years agoAdd another pile of LLVM bindings.
Graydon Hoare [Tue, 13 Jul 2010 06:48:44 +0000 (23:48 -0700)]
Add another pile of LLVM bindings.

14 years agoDelete some dead code in x86.
Graydon Hoare [Tue, 13 Jul 2010 06:48:14 +0000 (23:48 -0700)]
Delete some dead code in x86.

14 years agoStart bringing in LLVM bindings.
Graydon Hoare [Tue, 13 Jul 2010 00:47:40 +0000 (17:47 -0700)]
Start bringing in LLVM bindings.

14 years agoMerge branch 'contrib'
Graydon Hoare [Mon, 12 Jul 2010 22:14:27 +0000 (15:14 -0700)]
Merge branch 'contrib'

14 years agoFix typos in the docs.
Jeff Balogh [Mon, 12 Jul 2010 15:14:28 +0000 (23:14 +0800)]
Fix typos in the docs.

14 years agoWrap long line.
Graydon Hoare [Mon, 12 Jul 2010 20:30:46 +0000 (13:30 -0700)]
Wrap long line.

14 years agoRevert previous wrong-change on issue #106; was papering over wrongness in the runtim...
Graydon Hoare [Mon, 12 Jul 2010 20:25:59 +0000 (13:25 -0700)]
Revert previous wrong-change on issue #106; was papering over wrongness in the runtime. Sad times. Closes #106 more correctly (and adds comment to explain).

14 years agoCorrect doubly-linked list management logic; bug exposed during conversation on issue...
Graydon Hoare [Mon, 12 Jul 2010 20:11:58 +0000 (13:11 -0700)]
Correct doubly-linked list management logic; bug exposed during conversation on issue #106.

14 years agoAdd more tracing code to trans for refcount events.
Graydon Hoare [Mon, 12 Jul 2010 20:11:14 +0000 (13:11 -0700)]
Add more tracing code to trans for refcount events.

14 years agoFix formatting trivia in Ast.fmt_stmt_body.
Jason Orendorff [Mon, 12 Jul 2010 18:51:52 +0000 (02:51 +0800)]
Fix formatting trivia in Ast.fmt_stmt_body.

14 years agoAdd a ty_children function to enumerate the children of any type
Patrick Walton [Sat, 10 Jul 2010 21:59:54 +0000 (14:59 -0700)]
Add a ty_children function to enumerate the children of any type

14 years agoFix post-stmt drop calculations. Closes #106.
Graydon Hoare [Mon, 12 Jul 2010 05:31:56 +0000 (22:31 -0700)]
Fix post-stmt drop calculations. Closes #106.

14 years agoAdd a boot/README file explaining rustboot's organization a bit.
Graydon Hoare [Sun, 11 Jul 2010 21:54:43 +0000 (14:54 -0700)]
Add a boot/README file explaining rustboot's organization a bit.

14 years agoAdd Chris Double to AUTHORS.txt.
Graydon Hoare [Sun, 11 Jul 2010 03:22:14 +0000 (20:22 -0700)]
Add Chris Double to AUTHORS.txt.

14 years agoFix for compile error when using gcc 4.5.0
Chris Double [Fri, 9 Jul 2010 21:20:05 +0000 (05:20 +0800)]
Fix for compile error when using gcc 4.5.0

14 years agoDisable llvm-config logic due to optimistic assumption of "having the ocaml bindings...
Graydon Hoare [Sun, 11 Jul 2010 02:58:02 +0000 (19:58 -0700)]
Disable llvm-config logic due to optimistic assumption of "having the ocaml bindings". Also add NO_LLVM override make-var, for good measure.

14 years agoCatch cyclic imports harder. Add 2 tests to confirm.
Graydon Hoare [Fri, 9 Jul 2010 18:59:00 +0000 (11:59 -0700)]
Catch cyclic imports harder. Add 2 tests to confirm.

14 years agoEncode and decode DW_AT_rust_iterator on DW_TAG_subprogram DIEs.
Graydon Hoare [Fri, 9 Jul 2010 05:58:11 +0000 (22:58 -0700)]
Encode and decode DW_AT_rust_iterator on DW_TAG_subprogram DIEs.

14 years agoRemove "two's complement unsigned" integer type descriptions from docs, nurr.
Graydon Hoare [Fri, 9 Jul 2010 05:05:07 +0000 (22:05 -0700)]
Remove "two's complement unsigned" integer type descriptions from docs, nurr.

14 years agoAdd rule for building shootout tests.
Graydon Hoare [Fri, 9 Jul 2010 04:56:03 +0000 (21:56 -0700)]
Add rule for building shootout tests.

14 years agoAdd detection for cyclic imports.
Graydon Hoare [Fri, 9 Jul 2010 04:55:15 +0000 (21:55 -0700)]
Add detection for cyclic imports.

14 years agoErr kindly instead of asserting on duplicate mod declarations in crates.
Roy Frostig [Thu, 8 Jul 2010 22:13:25 +0000 (15:13 -0700)]
Err kindly instead of asserting on duplicate mod declarations in crates.

14 years agoFix typo in token.ml.
Matt Brubeck [Thu, 8 Jul 2010 20:47:04 +0000 (04:47 +0800)]
Fix typo in token.ml.

14 years agoClean out rustc so it doesn't give the false impression of doing anything yet.
Graydon Hoare [Thu, 8 Jul 2010 17:45:34 +0000 (10:45 -0700)]
Clean out rustc so it doesn't give the false impression of doing anything yet.

14 years agoBuild fix from jmuizelaar (on ocamlc versions that notice this bug; drat, not all do)
Graydon Hoare [Thu, 8 Jul 2010 15:25:12 +0000 (08:25 -0700)]
Build fix from jmuizelaar (on ocamlc versions that notice this bug; drat, not all do)

14 years agoAdd mbrubeck.
Graydon Hoare [Thu, 8 Jul 2010 14:48:57 +0000 (07:48 -0700)]
Add mbrubeck.

14 years agoIssue 66: Multi-line comments
Matt Brubeck [Thu, 8 Jul 2010 09:01:25 +0000 (17:01 +0800)]
Issue 66: Multi-line comments

14 years agoSome more typestate tests.
Graydon Hoare [Thu, 8 Jul 2010 14:33:25 +0000 (07:33 -0700)]
Some more typestate tests.

14 years agoDoc tweak.
Graydon Hoare [Thu, 8 Jul 2010 14:28:21 +0000 (07:28 -0700)]
Doc tweak.

14 years agoNumerous bug fixes to typestate algorithm.
Graydon Hoare [Wed, 7 Jul 2010 06:18:29 +0000 (23:18 -0700)]
Numerous bug fixes to typestate algorithm.

14 years agoCorrect flow-graph wiring for STMT_if.
Graydon Hoare [Wed, 7 Jul 2010 01:07:52 +0000 (18:07 -0700)]
Correct flow-graph wiring for STMT_if.

14 years agoWrap long line.
Graydon Hoare [Wed, 7 Jul 2010 00:06:46 +0000 (17:06 -0700)]
Wrap long line.

14 years agoAdd init(arg) to STMT_call precondition for each arg.
Graydon Hoare [Tue, 6 Jul 2010 20:52:41 +0000 (13:52 -0700)]
Add init(arg) to STMT_call precondition for each arg.

14 years agoAdd native-clean target.
Graydon Hoare [Tue, 6 Jul 2010 20:51:39 +0000 (13:51 -0700)]
Add native-clean target.

14 years agoChange from 'spawner' to 'supervisor' in rust_task, and add an unsupervise call.
Graydon Hoare [Mon, 5 Jul 2010 21:43:40 +0000 (14:43 -0700)]
Change from 'spawner' to 'supervisor' in rust_task, and add an unsupervise call.

14 years agoUn-XFAIL mutable-alias-vec.rs. Was only failing due to a typo, but a more thorough...
Graydon Hoare [Mon, 5 Jul 2010 21:43:02 +0000 (14:43 -0700)]
Un-XFAIL mutable-alias-vec.rs. Was only failing due to a typo, but a more thorough test revealed more bugs.

14 years agoUint-ify various bits of _str and _vec, enrich _vec a bit.
Graydon Hoare [Mon, 5 Jul 2010 21:42:12 +0000 (14:42 -0700)]
Uint-ify various bits of _str and _vec, enrich _vec a bit.

14 years agoDivide vec fill by element size when reporting vec len.
Graydon Hoare [Mon, 5 Jul 2010 21:40:01 +0000 (14:40 -0700)]
Divide vec fill by element size when reporting vec len.

14 years agoUse typed slot rather than AST slot in trans_for_loop.
Graydon Hoare [Mon, 5 Jul 2010 21:39:08 +0000 (14:39 -0700)]
Use typed slot rather than AST slot in trans_for_loop.

14 years agoTeach the dwarf readers to handle udata, so we can link with util.option; add util...
Graydon Hoare [Mon, 5 Jul 2010 21:38:02 +0000 (14:38 -0700)]
Teach the dwarf readers to handle udata, so we can link with util.option; add util.rs to std.rc.

14 years agoRename some stuff in lib/util.rs.
Graydon Hoare [Mon, 5 Jul 2010 21:36:39 +0000 (14:36 -0700)]
Rename some stuff in lib/util.rs.

14 years agoLog completion on the many.rs test.
Graydon Hoare [Mon, 5 Jul 2010 05:41:57 +0000 (22:41 -0700)]
Log completion on the many.rs test.

14 years agoPerform valgrind-specific timing tweaks in a platform-sensitive manner.
Graydon Hoare [Mon, 5 Jul 2010 05:41:42 +0000 (22:41 -0700)]
Perform valgrind-specific timing tweaks in a platform-sensitive manner.

14 years agoXFAIL native-mod when running MINGW_CROSS.
Graydon Hoare [Mon, 5 Jul 2010 05:41:04 +0000 (22:41 -0700)]
XFAIL native-mod when running MINGW_CROSS.

14 years agoMove NO_VALGRIND check below MINGW_CROSS.
Graydon Hoare [Mon, 5 Jul 2010 05:40:19 +0000 (22:40 -0700)]
Move NO_VALGRIND check below MINGW_CROSS.

14 years agoPreempt works on non-windows, just needed a little valgrind love to complete in a...
Graydon Hoare [Mon, 5 Jul 2010 04:18:47 +0000 (21:18 -0700)]
Preempt works on non-windows, just needed a little valgrind love to complete in a reasonable time.

14 years agoFix bug in win32 command-line arg processing.
Graydon Hoare [Mon, 5 Jul 2010 03:06:18 +0000 (20:06 -0700)]
Fix bug in win32 command-line arg processing.

14 years agoXFAIL the remainder as until pwalton has a go at the typechecker. Branch is otherwise...
Graydon Hoare [Mon, 5 Jul 2010 00:01:22 +0000 (17:01 -0700)]
XFAIL the remainder as until pwalton has a go at the typechecker. Branch is otherwise done, enough to merge anyway.

14 years agoFix generic-derived-type.rs and generic-obj-with-derived-type.rs.
Graydon Hoare [Sun, 4 Jul 2010 23:42:58 +0000 (16:42 -0700)]
Fix generic-derived-type.rs and generic-obj-with-derived-type.rs.

14 years agoImprove type.ml logging.
Graydon Hoare [Sun, 4 Jul 2010 23:42:11 +0000 (16:42 -0700)]
Improve type.ml logging.

14 years agoFix rec-extend.rs test.
Graydon Hoare [Sun, 4 Jul 2010 23:11:56 +0000 (16:11 -0700)]
Fix rec-extend.rs test.

14 years agoFix compile-fail/log-type-error.rs.
Graydon Hoare [Sun, 4 Jul 2010 23:02:12 +0000 (16:02 -0700)]
Fix compile-fail/log-type-error.rs.

14 years agoClean in doc dir a little harder.
Graydon Hoare [Sun, 4 Jul 2010 22:39:53 +0000 (15:39 -0700)]
Clean in doc dir a little harder.

14 years agoFix typo in upcall_recv log message.
Graydon Hoare [Sun, 4 Jul 2010 09:15:11 +0000 (02:15 -0700)]
Fix typo in upcall_recv log message.

14 years agoComment-out glue interrupt-flag test; unclear why it breaks, but glue call-tree is...
Graydon Hoare [Sun, 4 Jul 2010 09:14:46 +0000 (02:14 -0700)]
Comment-out glue interrupt-flag test; unclear why it breaks, but glue call-tree is always finite anyways so not a big deal for now.

14 years agoSpill immediates with proper IL type (was making valgrind dislike obj-with-vec.rs).
Graydon Hoare [Sun, 4 Jul 2010 08:06:29 +0000 (01:06 -0700)]
Spill immediates with proper IL type (was making valgrind dislike obj-with-vec.rs).

14 years agoFix bug crashing valgrind in obj-recursion.rs.
Graydon Hoare [Sun, 4 Jul 2010 07:45:56 +0000 (00:45 -0700)]
Fix bug crashing valgrind in obj-recursion.rs.

14 years agoImprove logging in drop paths.
Graydon Hoare [Sun, 4 Jul 2010 07:45:35 +0000 (00:45 -0700)]
Improve logging in drop paths.

14 years agoAdd more scratch files to .gitignore.
Graydon Hoare [Sun, 4 Jul 2010 06:56:50 +0000 (23:56 -0700)]
Add more scratch files to .gitignore.

14 years agoMore corrections to drop/free path to accommodate TY_box.
Graydon Hoare [Sun, 4 Jul 2010 06:55:21 +0000 (23:55 -0700)]
More corrections to drop/free path to accommodate TY_box.

14 years agoAdd stamp target to doc/Makefile.
Graydon Hoare [Sun, 4 Jul 2010 04:48:31 +0000 (21:48 -0700)]
Add stamp target to doc/Makefile.

14 years agoAdd concept-index entries to docs, plus fix a few minor nits.
Graydon Hoare [Sun, 4 Jul 2010 00:29:06 +0000 (17:29 -0700)]
Add concept-index entries to docs, plus fix a few minor nits.

14 years agoAdd version-stamp machinery (and put "Draft + datestamp" into doc footer).
Graydon Hoare [Sat, 3 Jul 2010 07:27:33 +0000 (00:27 -0700)]
Add version-stamp machinery (and put "Draft + datestamp" into doc footer).

14 years agoHey, what's a coding sprint without an uncovered register allocation bug? No fun...
Graydon Hoare [Sat, 3 Jul 2010 05:44:21 +0000 (22:44 -0700)]
Hey, what's a coding sprint without an uncovered register allocation bug? No fun, I say.

14 years agoClarify manual's explanation of unwinding during failure. Add bit about soft vs...
Roy Frostig [Sat, 3 Jul 2010 01:33:09 +0000 (18:33 -0700)]
Clarify manual's explanation of unwinding during failure.  Add bit about soft vs. hard failure.

14 years agoAdd an arr_iter2 function to common.ml
Patrick Walton [Sat, 3 Jul 2010 01:01:58 +0000 (18:01 -0700)]
Add an arr_iter2 function to common.ml

14 years agoDeja vu all over again. Something makes me think this is a usability hazard.
Graydon Hoare [Sat, 3 Jul 2010 00:14:46 +0000 (17:14 -0700)]
Deja vu all over again. Something makes me think this is a usability hazard.

14 years agoTerminology mop-up.
Graydon Hoare [Sat, 3 Jul 2010 00:13:02 +0000 (17:13 -0700)]
Terminology mop-up.

14 years agoYou may get the feeling that all these changes look eerily the same. You would be...
Graydon Hoare [Sat, 3 Jul 2010 00:04:16 +0000 (17:04 -0700)]
You may get the feeling that all these changes look eerily the same. You would be correct.