]> git.lizzy.rs Git - rust.git/log
rust.git
12 years agoAdd Joshua Wise to AUTHORS.txt
Marijn Haverbeke [Mon, 7 Nov 2011 09:05:31 +0000 (10:05 +0100)]
Add Joshua Wise to AUTHORS.txt

12 years agollvm::mk_object_file should really return an option, since the underlying LLVM functi...
Joshua Wise [Mon, 7 Nov 2011 02:29:16 +0000 (21:29 -0500)]
llvm::mk_object_file should really return an option, since the underlying LLVM function can fail.  Fixes a crash on OS X when rust has bad dylibs within eyeshot.

12 years agoFix some more bugs in the tutorial
Marijn Haverbeke [Mon, 7 Nov 2011 08:55:22 +0000 (09:55 +0100)]
Fix some more bugs in the tutorial

Tutorial code going out of date is going to be a recurring problem...

12 years agoTutorial: 'import std;' should be 'use std;'.
Matt Brubeck [Mon, 7 Nov 2011 06:20:08 +0000 (22:20 -0800)]
Tutorial: 'import std;' should be 'use std;'.

12 years ago[Stdlib] rope.rs: improved doc, code readability
David Rajchenbach-Teller [Sun, 6 Nov 2011 16:33:39 +0000 (17:33 +0100)]
[Stdlib] rope.rs: improved doc, code readability

12 years ago[Test] rope.rs: testing concat
David Rajchenbach-Teller [Sun, 6 Nov 2011 16:27:24 +0000 (17:27 +0100)]
[Test] rope.rs: testing concat

12 years ago[Stdlib] rope.rs: concat, now attempts to preserve balance
David Rajchenbach-Teller [Sun, 6 Nov 2011 16:27:08 +0000 (17:27 +0100)]
[Stdlib] rope.rs: concat, now attempts to preserve balance

12 years ago[Stdlib doc] char.rs: documented to_digit, cmp
David Rajchenbach-Teller [Sun, 6 Nov 2011 16:26:31 +0000 (17:26 +0100)]
[Stdlib doc] char.rs: documented to_digit, cmp

12 years ago[stdlib optim] rope::node improved balancing strategy
David Rajchenbach-Teller [Sun, 6 Nov 2011 12:09:24 +0000 (13:09 +0100)]
[stdlib optim] rope::node improved balancing strategy

12 years agoconfigure: Handle absolute source paths when configuring LLVM
Brian Anderson [Fri, 4 Nov 2011 00:36:22 +0000 (17:36 -0700)]
configure: Handle absolute source paths when configuring LLVM

12 years agoBuild LLVM with -fno-omit-frame-pointer on Linux
Brian Anderson [Thu, 3 Nov 2011 23:13:22 +0000 (16:13 -0700)]
Build LLVM with -fno-omit-frame-pointer on Linux

12 years agoconfigure: Quote the git command
Brian Anderson [Thu, 3 Nov 2011 23:02:39 +0000 (16:02 -0700)]
configure: Quote the git command

12 years agoChange the LLVM repo to git://github.com/brson/llvm.git
Brian Anderson [Thu, 3 Nov 2011 22:19:08 +0000 (15:19 -0700)]
Change the LLVM repo to git://github.com/brson/llvm.git

12 years agoAdd clean-all rule which also cleans LLVM
Brian Anderson [Thu, 3 Nov 2011 21:32:52 +0000 (14:32 -0700)]
Add clean-all rule which also cleans LLVM

12 years agoCleanup configure script
Brian Anderson [Thu, 3 Nov 2011 21:13:22 +0000 (14:13 -0700)]
Cleanup configure script

12 years agoconfigure: Use i686 as the CPU type instead of i386
Brian Anderson [Thu, 3 Nov 2011 20:49:00 +0000 (13:49 -0700)]
configure: Use i686 as the CPU type instead of i386

Seems to prevent the warning about linking bitcode with different triples.

12 years agoUse $(MAKE) for recursive make
Brian Anderson [Thu, 3 Nov 2011 19:17:37 +0000 (12:17 -0700)]
Use $(MAKE) for recursive make

12 years agoParameterize the LLVM build over the target triples
Brian Anderson [Wed, 2 Nov 2011 23:21:17 +0000 (16:21 -0700)]
Parameterize the LLVM build over the target triples

12 years agoCleanup LLVM build rules after rebase onto x64 changes
Brian Anderson [Wed, 2 Nov 2011 22:10:19 +0000 (15:10 -0700)]
Cleanup LLVM build rules after rebase onto x64 changes

12 years agoBegin remove old LLVM configuration code
Brian Anderson [Wed, 2 Nov 2011 21:07:32 +0000 (14:07 -0700)]
Begin remove old LLVM configuration code

12 years agoLLVM build cleanup
Brian Anderson [Wed, 2 Nov 2011 00:09:44 +0000 (17:09 -0700)]
LLVM build cleanup

12 years agoUse LLVM directly from the build directory
Brian Anderson [Tue, 1 Nov 2011 23:12:19 +0000 (16:12 -0700)]
Use LLVM directly from the build directory

This will cut out the few seconds it takes to run make install.

12 years agoTie the LLVM build into ours
Brian Anderson [Tue, 1 Nov 2011 22:48:30 +0000 (15:48 -0700)]
Tie the LLVM build into ours

12 years agoCall LLVM's configure script from ours
Brian Anderson [Tue, 1 Nov 2011 22:22:07 +0000 (15:22 -0700)]
Call LLVM's configure script from ours

12 years agoReconfigure when the git submodule status changes
Brian Anderson [Tue, 1 Nov 2011 01:19:40 +0000 (18:19 -0700)]
Reconfigure when the git submodule status changes

12 years agoAdd mk/llvm.mk
Brian Anderson [Tue, 1 Nov 2011 00:34:31 +0000 (17:34 -0700)]
Add mk/llvm.mk

12 years agoAdd submodule management to configure script
Brian Anderson [Mon, 31 Oct 2011 23:51:15 +0000 (16:51 -0700)]
Add submodule management to configure script

12 years agoAdd an LLVM git submodule
Brian Anderson [Mon, 31 Oct 2011 23:01:14 +0000 (16:01 -0700)]
Add an LLVM git submodule

12 years agodocs: work around texi2dvi bug. (#1134)
Elly Jones [Sat, 5 Nov 2011 16:32:58 +0000 (12:32 -0400)]
docs: work around texi2dvi bug. (#1134)

12 years ago[Docfix] lib/str.rs: Applied review suggestions, took the opportunity to improve...
David Rajchenbach-Teller [Sat, 5 Nov 2011 10:31:37 +0000 (11:31 +0100)]
[Docfix] lib/str.rs: Applied review suggestions, took the opportunity to improve doc of my new functions.

12 years ago[Docfixes + feature] lib/uint.rs: Applied review suggesions, took the opportunity...
David Rajchenbach-Teller [Sat, 5 Nov 2011 10:12:42 +0000 (11:12 +0100)]
[Docfixes + feature] lib/uint.rs: Applied review suggesions, took the opportunity to add function loop

12 years ago[Docfix + Renaming] lib/rope.rs: Applied review suggestions, mostly docfixes.
David Rajchenbach-Teller [Sat, 5 Nov 2011 10:12:31 +0000 (11:12 +0100)]
[Docfix + Renaming] lib/rope.rs: Applied review suggestions, mostly docfixes.

12 years agoFixup: forgotten stdtest/rope.rs
David Rajchenbach-Teller [Sat, 5 Nov 2011 09:29:21 +0000 (10:29 +0100)]
Fixup: forgotten stdtest/rope.rs

12 years agostdlib: Added a small rope library
David Rajchenbach-Teller [Fri, 4 Nov 2011 17:38:42 +0000 (18:38 +0100)]
stdlib: Added a small rope library

12 years agochar.rs: Added a function cmp
David Rajchenbach-Teller [Fri, 4 Nov 2011 13:33:11 +0000 (14:33 +0100)]
char.rs: Added a function cmp

12 years agouint.rs: added functions div_ceil, div_floor, div_round
David Rajchenbach-Teller [Thu, 3 Nov 2011 08:37:45 +0000 (09:37 +0100)]
uint.rs: added functions div_ceil, div_floor, div_round

12 years agostr.rs: Added functions loop_chars, loop_chars_sub, char_len_range, byte_len_range.
David Rajchenbach-Teller [Thu, 3 Nov 2011 08:37:15 +0000 (09:37 +0100)]
str.rs: Added functions loop_chars, loop_chars_sub, char_len_range, byte_len_range.

12 years agovec: take [mutable? T] instead of [T]
Elly Jones [Sat, 5 Nov 2011 00:27:37 +0000 (20:27 -0400)]
vec: take [mutable? T] instead of [T]

12 years agoinstall.mk: make man1 directory
Elly Jones [Fri, 4 Nov 2011 23:53:23 +0000 (19:53 -0400)]
install.mk: make man1 directory

12 years agoFill in the tutorial section on testing
Marijn Haverbeke [Fri, 4 Nov 2011 11:23:35 +0000 (12:23 +0100)]
Fill in the tutorial section on testing

12 years agoRemove an old, temporary build rule
Brian Anderson [Thu, 3 Nov 2011 19:22:41 +0000 (12:22 -0700)]
Remove an old, temporary build rule

12 years agoconfigure: change --only-gcc to --enable-clang to make clang opt-in
Brian Anderson [Thu, 3 Nov 2011 19:01:31 +0000 (12:01 -0700)]
configure: change --only-gcc to --enable-clang to make clang opt-in

12 years agoMake the formatting of the host build message consistent
Brian Anderson [Thu, 3 Nov 2011 18:26:52 +0000 (11:26 -0700)]
Make the formatting of the host build message consistent

12 years agoFix typo in Makefile.in comments
Brian Anderson [Thu, 3 Nov 2011 17:53:49 +0000 (10:53 -0700)]
Fix typo in Makefile.in comments

12 years agoUpdate some more tests for 1a68a9882
Marijn Haverbeke [Thu, 3 Nov 2011 10:14:48 +0000 (11:14 +0100)]
Update some more tests for 1a68a9882

12 years agoClarify metadata syntax in manual
Marijn Haverbeke [Thu, 3 Nov 2011 09:59:42 +0000 (10:59 +0100)]
Clarify metadata syntax in manual

Closes #1119

12 years agoDisallow writing to function arguments again
Marijn Haverbeke [Thu, 3 Nov 2011 09:57:54 +0000 (10:57 +0100)]
Disallow writing to function arguments again

Remove implicit copying hack.

Closes #1118

12 years agoconfigure: cleanup
Brian Anderson [Wed, 2 Nov 2011 23:26:22 +0000 (16:26 -0700)]
configure: cleanup

12 years agoconfigure: abort early on --help
Brian Anderson [Wed, 2 Nov 2011 23:25:22 +0000 (16:25 -0700)]
configure: abort early on --help

12 years agoconfigure: support --target-triples and --only-gcc.
Elly Jones [Wed, 2 Nov 2011 23:17:39 +0000 (19:17 -0400)]
configure: support --target-triples and --only-gcc.

Signed-off-by: Elly Jones <elly@leptoquark.net>
12 years agoChange the error message when no LLVM is found
Brian Anderson [Wed, 2 Nov 2011 23:10:34 +0000 (16:10 -0700)]
Change the error message when no LLVM is found

12 years agoconfigure: add --llvm-root
Elly Jones [Wed, 2 Nov 2011 23:03:34 +0000 (19:03 -0400)]
configure: add --llvm-root

Signed-off-by: Elly Jones <elly@leptoquark.net>
12 years agoconfigure: add support for --prefix=<prefix>
Elly Jones [Wed, 2 Nov 2011 22:58:21 +0000 (18:58 -0400)]
configure: add support for --prefix=<prefix>

Signed-off-by: Elly Jones <elly@leptoquark.net>
12 years agoAdd vec::permute to the standard library (#1013)
Matt Brubeck [Wed, 2 Nov 2011 20:34:23 +0000 (13:34 -0700)]
Add vec::permute to the standard library (#1013)

12 years agoEscape $ when building linux def files
Brian Anderson [Wed, 2 Nov 2011 21:22:07 +0000 (14:22 -0700)]
Escape $ when building linux def files

12 years agorerun the gyp-uv tool
Niko Matsakis [Wed, 2 Nov 2011 04:10:46 +0000 (21:10 -0700)]
rerun the gyp-uv tool

12 years agopass proper options to libuv make
Niko Matsakis [Wed, 2 Nov 2011 04:05:56 +0000 (21:05 -0700)]
pass proper options to libuv make

12 years agoadd required symbols
Niko Matsakis [Wed, 2 Nov 2011 01:20:54 +0000 (18:20 -0700)]
add required symbols

12 years agohastily port so we don't fail to build
Niko Matsakis [Wed, 2 Nov 2011 01:19:55 +0000 (18:19 -0700)]
hastily port so we don't fail to build

12 years agovirtualize rustllvm construction per target triple
Niko Matsakis [Wed, 2 Nov 2011 00:28:41 +0000 (17:28 -0700)]
virtualize rustllvm construction per target triple

12 years agovirtualize the runtime per target triple.
Niko Matsakis [Tue, 1 Nov 2011 23:50:47 +0000 (16:50 -0700)]
virtualize the runtime per target triple.

12 years agoFix build on windows
Niko Matsakis [Mon, 31 Oct 2011 23:27:48 +0000 (16:27 -0700)]
Fix build on windows

12 years agofix line too long
Niko Matsakis [Mon, 31 Oct 2011 21:43:31 +0000 (14:43 -0700)]
fix line too long

12 years agofix failed merge
Niko Matsakis [Mon, 31 Oct 2011 21:43:21 +0000 (14:43 -0700)]
fix failed merge

12 years agoadd -m64 to gcc args if appropriate
Niko Matsakis [Mon, 31 Oct 2011 17:28:18 +0000 (10:28 -0700)]
add -m64 to gcc args if appropriate

12 years agocorrect more i32 vs int mismatches
Niko Matsakis [Thu, 27 Oct 2011 00:28:04 +0000 (17:28 -0700)]
correct more i32 vs int mismatches

12 years agoconvert various ints to i32 and vice versa
Niko Matsakis [Thu, 27 Oct 2011 00:09:07 +0000 (17:09 -0700)]
convert various ints to i32 and vice versa

12 years agoconvert GEP to i32
Niko Matsakis [Wed, 26 Oct 2011 05:23:28 +0000 (22:23 -0700)]
convert GEP to i32

12 years agoget things checking on ia32
Niko Matsakis [Tue, 25 Oct 2011 20:13:55 +0000 (13:13 -0700)]
get things checking on ia32

12 years agothread the context through so that int can be 64 bits on x86_64
Niko Matsakis [Sat, 15 Oct 2011 03:38:24 +0000 (20:38 -0700)]
thread the context through so that int can be 64 bits on x86_64

12 years agowork on making the size of ints depend on the target arch
Niko Matsakis [Sat, 15 Oct 2011 00:00:17 +0000 (17:00 -0700)]
work on making the size of ints depend on the target arch

12 years agowork on making the size of ints depend on the target arch
Niko Matsakis [Fri, 14 Oct 2011 23:45:25 +0000 (16:45 -0700)]
work on making the size of ints depend on the target arch

12 years agoget the dependencies right so that all target archs are built
Niko Matsakis [Fri, 14 Oct 2011 21:08:04 +0000 (14:08 -0700)]
get the dependencies right so that all target archs are built

12 years agoenable building with different target arch
Niko Matsakis [Fri, 14 Oct 2011 19:22:20 +0000 (12:22 -0700)]
enable building with different target arch

12 years agoenable intrinsics for multiple arch
Niko Matsakis [Fri, 14 Oct 2011 18:31:40 +0000 (11:31 -0700)]
enable intrinsics for multiple arch

12 years agoarch is ia32 in libuv, annoyingly. this should be changed.
Niko Matsakis [Fri, 14 Oct 2011 00:20:54 +0000 (17:20 -0700)]
arch is ia32 in libuv, annoyingly. this should be changed.

12 years agostart going back to an i386 build
Niko Matsakis [Fri, 14 Oct 2011 00:11:28 +0000 (17:11 -0700)]
start going back to an i386 build

12 years agohack around on makefiles trying to get a 64 bit build
Niko Matsakis [Thu, 13 Oct 2011 19:23:50 +0000 (12:23 -0700)]
hack around on makefiles trying to get a 64 bit build

right now there are many temporary hacks, search for NDM to find them

12 years agomodify x64 assembly and so forth
Niko Matsakis [Thu, 13 Oct 2011 00:40:03 +0000 (17:40 -0700)]
modify x64 assembly and so forth

12 years agodo not preserve caller-saved registers
Niko Matsakis [Wed, 12 Oct 2011 23:43:40 +0000 (16:43 -0700)]
do not preserve caller-saved registers

12 years agocopy over x86-specific code
Niko Matsakis [Wed, 12 Oct 2011 22:45:17 +0000 (15:45 -0700)]
copy over x86-specific code

12 years agostart to isolate target strings so that they can be configured for
Niko Matsakis [Wed, 12 Oct 2011 19:29:08 +0000 (12:29 -0700)]
start to isolate target strings so that they can be configured for
x64 or other targets

12 years agoFix confusing sentence in tutorial.
Marijn Haverbeke [Wed, 2 Nov 2011 18:03:33 +0000 (19:03 +0100)]
Fix confusing sentence in tutorial.

12 years agoEvaluate alt expressions in their own block context
Marijn Haverbeke [Wed, 2 Nov 2011 13:30:51 +0000 (14:30 +0100)]
Evaluate alt expressions in their own block context

Closes #785

12 years agoRename car/cdr to head/tail in std::list
Marijn Haverbeke [Wed, 2 Nov 2011 13:12:24 +0000 (14:12 +0100)]
Rename car/cdr to head/tail in std::list

Closes #1086

12 years agoExpand the tutorial section on functions
Marijn Haverbeke [Wed, 2 Nov 2011 12:49:37 +0000 (13:49 +0100)]
Expand the tutorial section on functions

12 years agoWrite briefly about syntax extension in the syntax section
Marijn Haverbeke [Wed, 2 Nov 2011 08:43:49 +0000 (09:43 +0100)]
Write briefly about syntax extension in the syntax section

The currently existing syntax extension facilities don't really merit
their own section.

12 years agoMake it possible to cast unsafe pointers with the 'as' operator
Marijn Haverbeke [Wed, 2 Nov 2011 11:15:50 +0000 (12:15 +0100)]
Make it possible to cast unsafe pointers with the 'as' operator

12 years agoMake ptr::addr_of return an immutable vec, add mut_addr_of
Marijn Haverbeke [Wed, 2 Nov 2011 10:42:51 +0000 (11:42 +0100)]
Make ptr::addr_of return an immutable vec, add mut_addr_of

12 years agoMake 'lambda(...) -> ...' parse as a type
Marijn Haverbeke [Wed, 2 Nov 2011 10:42:31 +0000 (11:42 +0100)]
Make 'lambda(...) -> ...' parse as a type

12 years agoMake resolving of imports behave more sanely
Marijn Haverbeke [Wed, 2 Nov 2011 10:30:11 +0000 (11:30 +0100)]
Make resolving of imports behave more sanely

An import now ignores itself when resolving its target. This gets rid of
the previously existing (problematic) behaviour where the import would start
looking one scope up when its name was the same as its target's first
component.

Closes #1114

12 years agoFix printing of parameterized tag types in ppaux
Marijn Haverbeke [Wed, 2 Nov 2011 10:27:32 +0000 (11:27 +0100)]
Fix printing of parameterized tag types in ppaux

It was printing option::t[int] instead of option::t<int>

12 years agoRegister snapshots
Brian Anderson [Wed, 2 Nov 2011 04:18:51 +0000 (21:18 -0700)]
Register snapshots

12 years agoOrganize std.rc and make exports explicit
Brian Anderson [Wed, 2 Nov 2011 03:48:44 +0000 (20:48 -0700)]
Organize std.rc and make exports explicit

12 years agoIgnore another test involving failure on windows
Brian Anderson [Wed, 2 Nov 2011 00:35:32 +0000 (17:35 -0700)]
Ignore another test involving failure on windows

12 years agoIgnore should_fail tests on windows
Brian Anderson [Wed, 2 Nov 2011 00:22:32 +0000 (17:22 -0700)]
Ignore should_fail tests on windows

12 years agoAdd should_fail annotation for unit tests
Matt Brubeck [Tue, 1 Nov 2011 17:31:23 +0000 (10:31 -0700)]
Add should_fail annotation for unit tests

This allows test cases to assert that a function is expected to fail.
Tests annotated with "should_fail" will succeed only if the function
fails.

12 years agoFix some typos in tutorial
Marijn Haverbeke [Tue, 1 Nov 2011 21:11:19 +0000 (22:11 +0100)]
Fix some typos in tutorial

12 years agoFix typo in syntax.md
Brian Anderson [Tue, 1 Nov 2011 19:39:47 +0000 (12:39 -0700)]
Fix typo in syntax.md

12 years agoFix alignment of interior pointers of dynamic-size types. Closes #1112
Brian Anderson [Tue, 1 Nov 2011 19:10:46 +0000 (12:10 -0700)]
Fix alignment of interior pointers of dynamic-size types. Closes #1112

GEP_tup_like finds interior pointers by creating a tuple of all the types
preceding the element it wants a pointer to, then asks for the size of that
tuple. This results in incorrect pointers when the alignment of that tuple
is not the alignment of the interior type you're getting a pointer to.