Brian Anderson
1a1fdf34b1
rt: Add lots of documentation to __morestack
2011-12-18 02:02:35 -08:00
Brian Anderson
7359fa422b
Revert "rt: Turn on big stacks again. Unwinding still doesn't always succeed on mac"
...
This reverts commit 68f4849f0f
.
2011-12-18 00:42:46 -08:00
Brian Anderson
cb5f636ff1
rustc: Don't emit compact unwind info on mac
...
It's not compatible with the subtlety of __morestack
2011-12-18 00:42:37 -08:00
Brian Anderson
68f4849f0f
rt: Turn on big stacks again. Unwinding still doesn't always succeed on mac
2011-12-17 17:54:43 -08:00
Brian Anderson
39c8f0cb4a
libstd: Long lines
2011-12-17 17:02:07 -08:00
Brian Anderson
555006a304
rustc: Remove --stack-growth option
2011-12-17 16:58:26 -08:00
Brian Anderson
fe683dfb80
rt: Get rid of the valgrind guard bytes at the end of the stack
...
Preventing us from writing beyond our allocations is _what valgrind does_,
so telling valgrind not to let us write to the end of the stack isn't
buying anything.
2011-12-17 16:46:50 -08:00
Brian Anderson
00be346089
libstd: Add 'xterm-256-color' to list of color-enabled terminals
2011-12-17 16:44:27 -08:00
Brian Anderson
471b4d6e58
rt: Use a DWARF CFI scheme that works on mac in __morestack
2011-12-17 14:10:44 -08:00
Brian Anderson
7da8ab8fab
rt: Turn on stack alignment checks for mac
2011-12-17 14:10:40 -08:00
Brian Anderson
4ac345939c
rt: Cache an extra stack segment to avoid bad behavior at stack boundaries
2011-12-17 13:45:38 -08:00
Brian Anderson
0ed5117a9d
rt: Set the default stack size to 768 bytes. Double on each alloc
2011-12-17 13:45:38 -08:00
Brian Anderson
c1a2c2f6b0
Add Graham Fawcett to AUTHORS.txt
2011-12-16 23:29:48 -08:00
Elly Jones
bb2c1f7613
cargo: complain if rustc fails
2011-12-16 20:40:10 -08:00
Brian Anderson
f8d06a2a84
Merge pull request #1320 from elly/cargo
...
cargo: shorten a line
2011-12-16 20:16:13 -08:00
Elly Jones
648b69d692
cargo: shorten a line
2011-12-16 23:15:13 -05:00
Graydon Hoare
bf4efa3a20
Merge pull request #1319 from elly/cargo
...
cargo: support distributed package indexes
2011-12-16 19:48:19 -08:00
Elly Jones
c8427e4ffd
cargo: fix lib detection logic
2011-12-16 22:39:33 -05:00
Graydon Hoare
c758e11fd3
Install and snapshot cargo by default.
2011-12-16 19:37:27 -08:00
Elly Jones
b7e30bc4c5
cargo: fix remaining warnings
2011-12-16 22:31:49 -05:00
Elly Jones
7bd003a1d0
cargo: remove obsolete rust-pkg-index lookup code
2011-12-16 22:27:47 -05:00
Elly Jones
9a0b89b534
cargo: fix some warnings
2011-12-16 22:27:04 -05:00
Elly Jones
327af5b9f3
cargo: flesh out usage
2011-12-16 22:24:01 -05:00
Elly Jones
8b7a41f23d
cargo: Support distributed package indexes.
...
Indexes are listed in ~/.cargo/sources.json and ~/.cargo/local-sources.json, the
former of which is stored in the rust source tree in src/cargo. Each entry in
either of these files is a source, which is a dictionary with (currently) a
single key, "url". The supplied url should point to a json list, each element of
which should be a dictionary with four keys: "name", "uuid", "url", and
"method". The name and uuid serve to identify the package; the method describes
how to fetch the package; the url describes where to fetch it from. Currently
supported methods are "git", "http", and "file".
Signed-off-by: Elly Jones <elly@leptoquark.net>
2011-12-16 22:08:25 -05:00
Brian Anderson
b5b2ac0ec4
rt: Make 32-bit morestack compatible with fastcc
2011-12-16 18:18:43 -08:00
Brian Anderson
7d51961b6f
rt: Fix saved address of unwinding %rsp in __morestack
...
I haven't thought too deeply about this, but I think I was telling the
unwinder to use the stack pointer for the wrong frame when unwinding. Not sure
how that could have worked at all, but this results in the correct alignment
for cleanups.
2011-12-16 18:18:43 -08:00
Brian Anderson
9d70c1949e
rt: Fix alignment of the call to upcall_del_stack in __morestack
2011-12-16 18:18:43 -08:00
Brian Anderson
23df4de86d
rt: Fix alignment of new stack segments
2011-12-16 18:18:43 -08:00
Brian Anderson
ab4f35c1f1
rt: Only call check_stack_alignment on linux
2011-12-16 18:18:43 -08:00
Brian Anderson
121c420184
rt: Insert stack alignment checks into upcalls
2011-12-16 18:18:43 -08:00
Elly Jones
10cf4a1b0a
cargo: wip
2011-12-16 20:33:39 -05:00
Graydon Hoare
4f826b34cb
Update build machinery to build and install librustc everywhere (including snapshots).
2011-12-16 17:21:28 -08:00
Graydon Hoare
0ca50a2828
Add additional pretend legalese to cover not-mozilla and not-otherwise-mentioned copyright holders.
2011-12-16 17:21:28 -08:00
Brian Anderson
1477fb3f2b
libstd: Temporarily use #[link_name = ""]
2011-12-16 15:29:59 -08:00
Graham Fawcett
f14bc54b06
allow #[link_args] with #[nolink]. For now, fail if two modules link same lib, and second has link_args.
...
I think it should undefined to have multiple modules that link in the same
library, but provide different link arguments. Unfortunately we don't track
link_args by module -- they are just appended as discovered into the crate
store -- but for now, it should be an error to provide link_args on a module
that's already been included (with or without link_args).
2011-12-16 15:29:59 -08:00
Graham Fawcett
7ddd353ef6
implement #[nolink]; deprecate #[link_name = ""]; note in stdlib to remove empty link_name.
...
Can't remove them from stdlib until the snapshotted compiler supports #[nolink].
2011-12-16 15:29:59 -08:00
Graydon Hoare
8dc5c445cc
Merge pull request #1318 from elly/cargo
...
std: file_is_dir -> path_is_dir, add path_exists
2011-12-16 14:43:55 -08:00
Elly Jones
89e880d613
std: file_is_dir -> path_is_dir, add path_exists
2011-12-16 17:37:21 -05:00
Marijn Haverbeke
b11268780e
Fix arg order for vec::map call
2011-12-16 22:29:01 +01:00
Marijn Haverbeke
58a81a68ed
Finish resolving and calling of crate-external impls
...
Issue #1227
2011-12-16 22:18:38 +01:00
Marijn Haverbeke
dd9693f211
Reserve node_id 0 for the crate top-level module
...
And define a const to refer to it.
2011-12-16 22:17:47 +01:00
Graydon Hoare
dbfa1b5689
Merge pull request #1317 from boggle/fix1315
...
fix to #1315 + small additions to std::either and result
2011-12-16 13:01:47 -08:00
Graydon Hoare
1bf078f988
Remove hopefully-now-redundant chops of ./ at the beginning of filenames in cargo.
2011-12-16 12:28:39 -08:00
Graydon Hoare
d1bca753b8
Switch fmt extension to reference extfmt that's in core.
2011-12-16 10:59:11 -08:00
Stefan Plantikow
7d786318a1
std: declared fns as pure where sensible
2011-12-16 18:18:34 +01:00
Stefan Plantikow
bfbaadc694
core: marked fns as pure where possible
2011-12-16 17:41:07 +01:00
Niko Matsakis
88818334b7
update to not look at descs[], which is not necessarily valid
...
if the input is a statically allocated type_desc
2011-12-16 08:06:45 -08:00
Niko Matsakis
34283c6a78
add test that requires capturing generic descriptors
2011-12-16 08:06:45 -08:00
Niko Matsakis
4465c1ad02
first test of sendable fns (passes)
2011-12-16 08:06:45 -08:00
Niko Matsakis
21cc0c6e69
revoke cleanup of sendable closure once construction completes
2011-12-16 08:06:44 -08:00