Marijn Haverbeke
f8393cc572
Add effect field to ast.ty_fn.
...
Still not used, except by the pretty-printer.
2011-03-31 14:41:40 +00:00
Marijn Haverbeke
e7e6f396d8
Preserve comments when pretty-printing.
...
The patch also includes a number of smaller fixes to the
pretty-printer that were encountered on the way.
2011-03-31 14:41:39 +00:00
Graydon Hoare
ffc188a4dd
Tweak build command on rustc.
2011-03-31 14:41:35 +00:00
Patrick Walton
ab8d200fb0
rustc: Read 'y' tags from external crates
2011-03-30 18:28:33 -07:00
Patrick Walton
ae5ba62b24
rustc: Use the type cache to construct external item references
2011-03-30 18:15:29 -07:00
Patrick Walton
cc59cea8b0
rustc: Thread an item-to-type mapping throughout the typechecking and translation phases
2011-03-30 17:28:06 -07:00
Graydon Hoare
a154c5b656
Um, that'd be, align the word *before* retpc. Addresses point to the low part of a word. Un-XFAIL nbody on Darwin.
2011-03-30 14:10:06 -07:00
Graydon Hoare
3e7b991d49
Ensure task stacks start out with a 16-byte aligned entry frame. Should make OSX behave a bit better.
2011-03-30 13:04:18 -07:00
Graydon Hoare
b5a4336487
Re-XFAIL lib-int.rs and lib-uint.rs.
2011-03-29 23:10:28 -07:00
Graydon Hoare
61e5587eab
Re-XFAIL lib-bitv.rs harder
2011-03-29 22:58:50 -07:00
Graydon Hoare
51807ad628
Re-XFAIL lib-bitv.rs
2011-03-29 22:08:35 -07:00
Patrick Walton
301cfe1354
rustc: Add all items to the item table during translation. lib-vec now compiles, but asserts and then segfaults.
2011-03-29 18:16:53 -07:00
Patrick Walton
b09e09c673
rustc: Un-XFAIL lib-uint.rs
2011-03-29 18:16:53 -07:00
Patrick Walton
601cf8c97f
rustc: Un-XFAIL lib-int.rs.
2011-03-29 17:31:48 -07:00
Patrick Walton
626bdaaa1f
rustc: Parse parameter IDs in external crate metadata. Un-XFAIL lib-bitv.rs.
2011-03-29 17:25:55 -07:00
Patrick Walton
c67eb1a575
rustc: Partially resolve external module imports
2011-03-29 17:01:27 -07:00
Patrick Walton
6a5feffd6c
rustc: Tolerate def id tags inside module tags. Fixes metadata reading.
2011-03-29 16:43:27 -07:00
Lindsey Kuper
55fbed3d8d
Beginnings of support for magical self prefix; nothing profound happening yet.
2011-03-29 15:59:15 -07:00
Graydon Hoare
f6490a6f03
Ignore 'mutable foo' in plain field contexts.
2011-03-29 15:40:21 -07:00
Patrick Walton
94c061729b
rustc: Resolve external modules and native modules to definition IDs as well
2011-03-29 14:46:42 -07:00
Graydon Hoare
77f85460e6
Rename trans_native to trans_native_call, for clarity.
2011-03-29 13:23:51 -07:00
Graydon Hoare
734abe593d
Teach trans to emit undefined references to 'use'd symbols. Can compile and run a simple 'use std;' example now.
2011-03-29 13:23:51 -07:00
Brian Anderson
8f2a97a562
Add partial support for if expressions resulting in generic types
2011-03-28 21:14:08 -07:00
Brian Anderson
38d5453584
Add an XFAILed test for if expressions resulting in boxes
2011-03-28 21:14:06 -07:00
Brian Anderson
aced4ce145
Handle structural types as the result of if expressions
2011-03-28 21:14:04 -07:00
Brian Anderson
a5a319fa04
Teach rustc to use the result of if expressions
2011-03-28 21:14:03 -07:00
Brian Anderson
2b27d12ce1
Add expr_spawn, spawn parsing, folding, typechecking, ty_task
2011-03-28 21:13:53 -07:00
Graydon Hoare
268b2140dc
Add long-while.rs to check on frame growth.
2011-03-28 18:07:29 -07:00
Graydon Hoare
540d29f641
Move all allocas to dedicated basic block at top of function, to keep frames finite. Un-comment next size in nbody.rs.
2011-03-28 18:07:29 -07:00
Patrick Walton
2809e30d1d
rustc: Parse types in external metadata
2011-03-28 16:49:26 -07:00
Patrick Walton
ace2c92a96
rustc: Populate the item types table with types of items from external crates; remove the redundant typeck.ty_and_params type on the way
2011-03-28 14:42:01 -07:00
Patrick Walton
621ab34410
rustc: Remove commented out "encode_tag_variant_info" call that sneaked in
2011-03-28 13:31:13 -07:00
Patrick Walton
62f4709953
rustc: Resolve def ids in external crates
2011-03-28 13:29:59 -07:00
Patrick Walton
cc221c472a
rustc: Don't include a trailing null when writing out metadata; it corrupts the EBML
2011-03-28 13:15:03 -07:00
Graydon Hoare
8b5968165f
Fix get_tydesc to alloca enough room for root; remove hack that was attempting to paper over it. Fix from espindola.
2011-03-28 11:11:03 -07:00
Patrick Walton
1cb3ce89dd
shootout: Hoist out the movement too; switch square root to an LLVM intrinsic
2011-03-28 08:24:58 -07:00
Patrick Walton
81695a19f8
rustc: Add support for calling LLVM intrinsics as native functions
2011-03-28 08:24:58 -07:00
Marijn Haverbeke
6ecdc04788
Add support for break and cont to rustc
...
Testing proper cleanup is hampered by
https://github.com/graydon/rust/issues/293
2011-03-27 14:11:23 +02:00
Patrick Walton
9c5affda1a
shootout: Hoist out the vector indexing on nbody; don't rely on LICM, which isn't working for some reason (insufficient alias info?) Speeds up nbody a bit.
2011-03-26 23:10:28 -07:00
Graydon Hoare
f59e49c9a6
Twiddle visibility, start exposing only type-mangled names (64 bit truncated sha1 prefixes).
2011-03-26 19:14:07 -07:00
Lindsey Kuper
2650487120
Got the nbody demo working, and hopefully faster, too!
2011-03-26 17:51:54 -07:00
Lindsey Kuper
1c1c67229a
Updates to the nbody demo.
2011-03-26 17:51:42 -07:00
Graydon Hoare
dbc7289a4d
Start refactoring name-mangling in trans.
2011-03-26 17:36:47 -07:00
Graydon Hoare
643a75b86e
Add visibility enum values to lib.llvm.
2011-03-26 17:36:26 -07:00
Graydon Hoare
e99feabf47
Add a result_str method to std.sha1.sha1.
2011-03-26 17:36:08 -07:00
Graydon Hoare
ac6e1131e9
Teach creader and metadata writer how to do ty.ty_type.
2011-03-26 17:35:51 -07:00
Patrick Walton
bea41aa7d8
rustc: Add a function to look up external item info in the item info table
2011-03-25 19:02:19 -07:00
Graydon Hoare
027368b885
Janitorial: move llvmext back to llvm module, as they're the same thing now.
2011-03-25 18:45:00 -07:00
Graydon Hoare
fb08ef44b4
Tweak rustllvm bindings to work on linux, where bool != LLVMBool.
2011-03-25 18:45:00 -07:00
Patrick Walton
24a75eeccc
rustc: Parse definition IDs from crates; add a function to parse unsigned ints to the standard library
2011-03-25 18:35:30 -07:00
Graydon Hoare
ee686dacb8
Add get_extern_const, factor get_extern into get_extern_fn and get_simple_extern_fn.
2011-03-25 17:59:56 -07:00
Patrick Walton
94c19a18ae
rustc: Look up names in "use"d crates
2011-03-25 17:54:48 -07:00
Graydon Hoare
661f1c541e
Trans nomenclature tidy-up: upcall vs. native vs. extern.
2011-03-25 15:48:00 -07:00
Graydon Hoare
b2427509e2
Another go at changing compile-command, this time using RBUILD env var.
2011-03-25 15:07:27 -07:00
Patrick Walton
864e2ab24e
stdlib: Implement a memory buffer reader, untested at the moment
2011-03-25 15:01:21 -07:00
Graydon Hoare
3712ee68ad
Sketch of wiring typeck up to creader.
2011-03-25 14:34:32 -07:00
Patrick Walton
739c4aedf1
stdlib: Separate basic I/O reading functionality into a separate buf_reader object, like writing
2011-03-25 14:06:18 -07:00
Graydon Hoare
91c2b82b09
Revert "Bulk-edit compile commands in emacs chatter to point to assumed build/ dir off src root."
...
This reverts commit 846f2e2ba9
.
2011-03-25 14:05:38 -07:00
Graydon Hoare
846f2e2ba9
Bulk-edit compile commands in emacs chatter to point to assumed build/ dir off src root.
2011-03-25 13:48:37 -07:00
Graydon Hoare
49d9d5688e
Switch xfail system to use comments embedded in source files.
2011-03-25 12:19:20 -07:00
Tim Chevalier
a47cd50dfb
Parse FP literals without coercing to int. This allows parsing 64-bit
...
floats. However, if someone writes a literal that can't be represented
precisely in 64 bits, the front-end will accept it while the back-end
will (presumably) complain.
2011-03-25 11:20:30 -07:00
Patrick Walton
e2d6475308
rustc: Store cached crate metadata in the session
2011-03-25 11:11:21 -07:00
Brian Anderson
9ca7acb1f3
Update pretty printer for ports, channels, send and receive
2011-03-25 11:01:52 -07:00
Brian Anderson
ebc4df3c7a
Implement local declarations with receive. Un-XFAIL decl-with-recv.rs.
2011-03-25 11:01:52 -07:00
Brian Anderson
71f058499a
Refactor ast.local to make room for initialization via recv
2011-03-25 11:01:52 -07:00
Brian Anderson
ef1bcdea70
Add test for local declarations with receive. XFAIL in rustc.
2011-03-25 11:01:52 -07:00
Patrick Walton
77a3373d53
rustc: Create a crate metadata cache
2011-03-25 10:44:24 -07:00
Marijn Haverbeke
d4c3059e1e
make lexer unicode-aware for strings and char literals
2011-03-25 08:23:00 -07:00
Marijn Haverbeke
a045514477
Start making the standard-lib utf-8 aware
...
Finally implements _str.is_utf8, adds from_chars, from_char, to_chars,
char_at, char_len, (push|pop|shift|unshift)_char. Also, proper
character I/O for streams.
2011-03-25 08:22:52 -07:00
Marijn Haverbeke
d3b49f5aab
fix pretty-printer
...
A change in 54587bdccb
(the vec
appending overhaul) had broken it. (Apparently modifying a vec while
iterating over it can corrupt memory.)
2011-03-25 07:59:13 -07:00
Graydon Hoare
0f9d460e24
Placate win32 build; no idea how it can be working currently on tinderbox.
2011-03-25 00:16:04 -07:00
Lindsey Kuper
bcc104ce79
A first stab at the 'nbody' demo, with support for calling C sqrt().
2011-03-25 00:15:56 -07:00
Patrick Walton
0b9cf7902c
build: Generate an object file for stage0/libstd.dylib
2011-03-24 18:43:32 -07:00
Graydon Hoare
4e49ca8abd
Start hooking resolve into creater.
2011-03-24 17:37:32 -07:00
Patrick Walton
af3d0d1848
rustc: Open "use"d crates; add a _vec.vec_from_buf() method along the way; XFAIL use-import-export.rs in rustc
2011-03-24 17:22:07 -07:00
Graydon Hoare
29d853dd19
Remove obsolete Makefiles.
2011-03-24 14:56:51 -07:00
Tim Chevalier
2bd78c176d
Improve error message when the lexer sees a bad character
2011-03-24 12:37:12 -07:00
Patrick Walton
c0f66a5240
Add .def.in files that I forgot to stage. Should put out burning tinderboxes on Windows and Darwin.
2011-03-24 12:36:14 -07:00
Patrick Walton
f284c5c1eb
Generate the platform-specific .def files at build time
2011-03-24 12:24:22 -07:00
Graydon Hoare
99682db53c
Make symbol resolution failures log under rust_log::ERR flag as well.
2011-03-24 12:20:48 -07:00
Graydon Hoare
86f1ace55b
Teach creader about reading ty_float, and trim trailing whitespace.
2011-03-24 11:50:45 -07:00
Patrick Walton
f0706d8932
Add trailing semicolons to Linux .def files
2011-03-24 11:50:02 -07:00
Patrick Walton
8c9f5ffc77
Add a Linux .def file. Might put out burning tinderbox.
2011-03-24 11:43:51 -07:00
Patrick Walton
a2b9a7ce8f
rustc: Use a .def file for Darwin. Puts out burning Darwin tinderbox.
2011-03-24 11:26:46 -07:00
Patrick Walton
2c21195b21
rustc: Emit a better error message when a type is used where a value was expected
2011-03-24 10:29:15 -07:00
Patrick Walton
8d8a48cfc4
rustc: Don't try to export symbols for crazy architectures from rustllvm.dll. Should unburn the tree on Windows.
2011-03-24 10:29:15 -07:00
Patrick Walton
4c5ab05741
rustc: Switch over to using rustllvm.dll exclusively, ending the "Franken-LLVM" problem
2011-03-23 17:48:53 -07:00
Patrick Walton
41be79acf3
rustllvm: Update rustllvm.def. The old one was missing a lot.
2011-03-23 17:48:01 -07:00
Graydon Hoare
08bea1d9a2
Revert "Change the type of the second argument of upcalls to be a %task*.", breaks win32 build.
...
This reverts commit dcf122ede0
.
2011-03-23 16:31:30 -07:00
Lindsey Kuper
0b63512f4c
Support for 'float' in type signatures.
2011-03-23 16:01:29 -07:00
Patrick Walton
c669f20231
rustc: Write out crate metadata
2011-03-23 15:44:17 -07:00
Patrick Walton
c1bc0101ca
stdlib: Provide a function to extract the underlying buf_writer from a writer
2011-03-22 17:53:43 -07:00
Tim Chevalier
23e23bd762
Further support for floating-point. Literals with exponents work
...
and literals with the 'f32' or 'f64' suffixes work as well. In
addition, logging things with the f32 or f64 type works. (float is
still assumed to be a synonym for f64).
2011-03-22 17:31:27 -07:00
Patrick Walton
d56971d5b4
stdlib: Add EBML writing functionality
2011-03-22 17:29:23 -07:00
Patrick Walton
e890383db1
stdlib: Add a convenience method for opening paths as a FILE
2011-03-22 17:29:23 -07:00
Patrick Walton
804771510e
Add a test case for empty mutable vector literals, XFAIL'd in rustboot
2011-03-22 16:48:00 -07:00
Patrick Walton
b33f0df152
stdlib: Make writers seekable; switch file writers to the C FILE interface to make this work
2011-03-22 16:40:22 -07:00
Rafael Ávila de Espíndola
dcf122ede0
Change the type of the second argument of upcalls to be a %task*.
2011-03-22 17:50:18 -04:00
Lindsey Kuper
0ce0c4c41a
Support for shorter error messages that are aware of objects' cnames.
2011-03-22 14:23:43 -07:00
Patrick Walton
bcf04e253f
Revert "Remove usages of case(_) { fail; } since the compiler does this automatically". When we have exhaustiveness checking, "case(_) { fail; }" will be useful to silence warnings.
...
This reverts commit 92a716d862
.
2011-03-22 14:02:52 -07:00
Patrick Walton
6623597c18
lib: Add an EBML reader module
2011-03-22 14:00:27 -07:00
Tim Chevalier
8556b2c1ad
Added test case for floats
2011-03-22 09:42:31 -07:00
Brian Anderson
1689d99965
Add some nesting to the else-if test case
2011-03-22 08:11:38 -07:00
Brian Anderson
92a716d862
Remove usages of case(_) { fail; } since the compiler does this automatically
2011-03-22 08:11:34 -07:00
Brian Anderson
530fe1daea
Add a cleanup to trans_send. Express further confusion about cleanups in trans_recv
2011-03-22 08:04:53 -07:00
Brian Anderson
0bcf49305c
Add test for sending strings over channels
2011-03-22 08:04:51 -07:00
Brian Anderson
cddd8094da
Remove a todo from trans_chan that doesn't appear necessary
2011-03-22 08:04:49 -07:00
Brian Anderson
3dcb79dac9
Add a regression test for channels of nil, which happens to work in rustc, but not in rustboot
2011-03-22 08:04:47 -07:00
Brian Anderson
c02cdc32a8
Generalize send/recv to work for more types
2011-03-22 08:04:45 -07:00
Brian Anderson
e20e7995ac
Un-XFAIL task-comm-4, 5 & 6
2011-03-22 08:04:43 -07:00
Brian Anderson
39c01c97ba
Fix trans_recv
2011-03-22 08:04:41 -07:00
Brian Anderson
b2ee569c23
Implement trans_send and a broken trans_recv
2011-03-22 08:04:39 -07:00
Brian Anderson
261d1e4c61
Add codegen for ports and chans
2011-03-22 08:04:38 -07:00
Graydon Hoare
7ac885ee8c
Repair some fallout from pcwalton's last few build changes.
2011-03-21 23:06:42 -07:00
Tim Chevalier
1e1ff638a3
Make floating-point operations work (neg, add, sub, mul, div, rem,
...
and comparison ops.)
2011-03-21 18:10:34 -07:00
Tim Chevalier
caa22c9341
Started adding support for floating-point type, floating-point literals, and logging of floats. Other operations on float probably don't work yet.
2011-03-21 18:10:34 -07:00
Patrick Walton
0943475f37
Add a suitable .def file for rustrt.dll on Windows
2011-03-21 18:01:25 -07:00
Patrick Walton
e56a1720e4
Add a "last" function to return the last element of a vector to the standard library
2011-03-21 17:21:35 -07:00
Patrick Walton
71de17d38e
Add a binding to ftell()
2011-03-21 16:41:18 -07:00
Rafael Ávila de Espíndola
933c01bd15
Every upcall needs a task pointer to find the C stack. It is just that when
...
handling cdecl call they should skip it when calling the final function.
There is some cleanup to be done on the generated IL, but this gets us
running Hello World for real.
2011-03-21 17:53:11 -04:00
Rafael Ávila de Espíndola
f3057244a6
Make the wrapper function of native functions private.
2011-03-21 16:02:00 -04:00
Rafael Ávila de Espíndola
12e7feb71c
The T_taskptr is already included in the n_args, don't add it twice.
2011-03-21 15:15:22 -04:00
Patrick Walton
3dec5b5e50
rustc: Remove uses of Unicode in type deserialization and fix vector-push operations
2011-03-21 12:03:34 -07:00
Patrick Walton
84c0d8638e
rustc: Update type serialization and deserialization for the "mutable?" change
2011-03-21 11:44:08 -07:00
Marijn Haverbeke
86d05655b4
rustc: Merge in type serialization and deserialization
...
Signed-off-by: Patrick Walton <pcwalton@mimiga.net>
2011-03-21 11:35:04 -07:00
Patrick Walton
0366f5ae23
Add some C99 and C++ compatibility headers for MSVC
2011-03-21 10:24:00 -07:00
Rafael Ávila de Espíndola
e687dd5ce7
Make lltaskptr a regular argument element in args in calls to trans_upcall2.
2011-03-21 11:59:14 -04:00
Rafael Ávila de Espíndola
770a49520c
Move calls to PtrToInt out of trans_upcall2.
2011-03-21 11:11:22 -04:00
Graydon Hoare
4b946cea35
Modify native_item_fn to handle trailing linkage names that differ from the item name (used in win32 build of std.dll)
2011-03-20 20:18:19 -07:00
Graydon Hoare
0c7545c1ce
Switch win32 path_sep to '/', add comment explaining a bit.
2011-03-20 19:43:43 -07:00
Graydon Hoare
460d89156f
Add slightly nicer failure message to io.rs when it can't open a file.
2011-03-20 19:43:41 -07:00
Patrick Walton
d31bfc8692
rustc: Internalize glue. Cuts libstd size by 8% or so.
2011-03-20 15:05:13 -07:00
Graydon Hoare
ff22bdfb6e
Fix indentation in tidy.
2011-03-19 18:34:46 -07:00
Patrick Walton
277d42f589
rustc: Only declare each native function once. std.rc now links.
2011-03-19 17:33:46 -07:00
Patrick Walton
a1aad28690
rustc: Use the right block context to generate unary operands. std.rc compiles now. For realz.
2011-03-19 15:03:21 -07:00
Patrick Walton
8e597b295f
rustc: Allow arguments to be captured as upvars. std.rc compiles now, except for the lack of a main fn.
2011-03-19 14:26:12 -07:00
Patrick Walton
c710c9a1b8
rustc: Do argument casts before loading aggregates, not after
2011-03-19 13:58:48 -07:00
Patrick Walton
3f2bae4449
rustc: Implement int-to-native casts
2011-03-18 18:49:59 -07:00
Patrick Walton
e6b6d1b645
rustc: Make trans_path() generic-safe wrt nullary tags
2011-03-18 18:45:49 -07:00
Patrick Walton
95dc89f012
rustc: Make iter_structural_ty_full() generic-safe wrt tags
2011-03-18 18:34:06 -07:00
Patrick Walton
8c48fae726
rustc: Do pointer casts when casting native types
2011-03-18 18:12:58 -07:00
Patrick Walton
9c0c0af1b2
rustc: Fix inference for auto slots (forgot to stage changes before)
2011-03-18 17:45:47 -07:00
Patrick Walton
082e5a5e5d
rustc: Fix inference for auto slots. Add a test case.
2011-03-18 17:43:56 -07:00
Patrick Walton
f3b58947c0
rustc: Don't always build a constant multiply instruction when translating literal vectors; the size of the referent isn't always constant
2011-03-18 16:41:56 -07:00
Patrick Walton
533dea772f
rustc: Move type_of() behind the check for dynamic size in trans_vec()
2011-03-18 16:34:22 -07:00
Patrick Walton
78bcfe28f2
rustc: Create global variable constants during the collection phase
2011-03-18 16:24:01 -07:00
Patrick Walton
8ff77b14a9
rustc: Make iter_sequence() work with generic vectors
2011-03-18 16:04:16 -07:00
Patrick Walton
9ad9d3783d
rustc: Fix list.foldl() to pass its second argument by alias
2011-03-18 15:19:32 -07:00
Patrick Walton
47d650e25b
rustc: Box the tuples returned by hashmap.items() for now since we don't have alias iterators yet
2011-03-18 15:18:45 -07:00
Patrick Walton
ebee49314b
rustc: Get type params from the item when translating native items
2011-03-18 15:01:45 -07:00
Patrick Walton
a9ba76d52a
Fix bug in string comparison. std.rc typechecks now.
2011-03-18 14:15:27 -07:00
Patrick Walton
0cf16e77ca
Add "mutable?" to _vec in the standard library; fix callers
2011-03-18 14:01:03 -07:00
Patrick Walton
368eb4bab6
Add some mutable variants of vector functions to the standard library
2011-03-18 13:53:49 -07:00
Patrick Walton
8b82a549bf
rustc: When encountering "mutable" as a tycon, parse it, drop it on the floor, and emit a warning
2011-03-18 13:44:54 -07:00
Patrick Walton
8aa946ff5e
Make some standard library pieces no longer dependent on mutable parameters, which rustc doesn't support
2011-03-18 13:32:15 -07:00
Patrick Walton
e8938f5fb2
rustc: Unify over alt expressions
2011-03-18 12:49:48 -07:00
Patrick Walton
6f65ce5255
rustc: Add a span_unimpl() for debugging
2011-03-18 12:30:44 -07:00
Patrick Walton
949ba9ca46
rustboot: Parse, and ignore, "mutable?"
2011-03-18 12:05:04 -07:00
Patrick Walton
2ef9c01ffc
rustc: Implement "mutable?". Add a test case and XFAIL it in rustboot for now.
2011-03-18 11:49:47 -07:00
Patrick Walton
5eca7129e3
rustc: Switch mutability from being a type constructor to a field annotation
2011-03-17 17:39:47 -07:00
Patrick Walton
ed96688be5
rustc: Typo: mutabliity -> mutability
2011-03-17 16:39:10 -07:00
Graydon Hoare
3ae9ca444c
Move Makefile.in and configure to top level, BOOT_-qualify names, various tweaks.
2011-03-17 14:26:32 -07:00
Patrick Walton
67bac63aa3
rustc: Correctly report mutability when stringifying types
2011-03-17 11:54:00 -07:00
Patrick Walton
2ca66718ce
rustc: Consider native types to be scalar
2011-03-17 11:46:21 -07:00
Patrick Walton
55587a554c
rustc: Sort object methods when parsing textual types in the AST
2011-03-17 11:40:05 -07:00
Patrick Walton
bc51842d4f
rustc: Don't go over inner functions' locals during the writeback phase of typechecking
2011-03-17 11:23:17 -07:00
Patrick Walton
84321d1f59
Add an option.is_none() method
2011-03-17 11:21:11 -07:00
Patrick Walton
ea7197e2cf
rustc: Add str_from_cstr() and str_from_buf() functions to the standard library, as well as a test case
2011-03-16 18:42:08 -07:00
Graydon Hoare
320ac6b8eb
Teach configure.sh to probe paths, factor a bit.
2011-03-16 17:36:49 -07:00
Graydon Hoare
6a6a30b792
Remove uses of 'break' in std lib; rustc doesn't support it yet, this is easier for now.
2011-03-16 16:47:27 -07:00
Patrick Walton
e1d2899553
Add a "rustllvm.def" file for Windows' linker to use. This allows us to create our own LLVM shared library on that platform.
2011-03-16 16:11:24 -07:00
Graydon Hoare
85c073dd3e
Disable built-in rules in makefile, speed up win32 build.
2011-03-16 15:21:57 -07:00
Rafael Ávila de Espíndola
9dc3f3f183
Fixed version of my previous patch to rename the upcall functions. This time also update the inline assembly.
2011-03-16 18:09:12 -04:00
Graydon Hoare
54587bdccb
Switch all vases of vec += elt to vec += vec. Prohibit former in rustboot. Tweak std lib vec fns in process.
2011-03-16 14:58:02 -07:00
Patrick Walton
23eef4da22
Add some more dlopen-related suppressions for the Mac
2011-03-16 11:37:50 -07:00
Graydon Hoare
9c6e7e6891
Beginning of build-system upgrade.
2011-03-16 09:22:25 -07:00
Rafael Ávila de Espíndola
e65e1716a7
Revert 6fdb81fa17
, it is causing failures in
...
the bots.
2011-03-16 11:46:51 -04:00
Rafael Ávila de Espíndola
8dc5059058
Update comment to reflect the decision to avoid cycles.
2011-03-16 11:29:41 -04:00
Patrick Walton
1d8b0e8f8a
rustc: Remove the memory-managed interface to LLVM memory buffers; passing them around transfers ownership
2011-03-15 18:08:30 -07:00
Patrick Walton
6fdb81fa17
rustc: Open "use"d crates with the LLVM object file reader
2011-03-15 18:05:29 -07:00
Patrick Walton
71b6e602c5
rustc: Add an annotation for the crate definition to view_item_use
2011-03-15 17:33:05 -07:00
Patrick Walton
341d128ad3
Revert "Change the numbering of upcall functions. upcall_0 now calls a function" due to tinderbox failure on win32
...
This reverts commit bd9dd5ed1a
.
2011-03-15 17:20:00 -07:00
Patrick Walton
1a3f533d28
Typo: FIXE -> FIXME
2011-03-15 17:13:19 -07:00
Patrick Walton
6d5379cdcb
Add a fs.connect() function to join paths
2011-03-15 17:11:55 -07:00
Patrick Walton
a8d8ea3cf3
Add an OS-specific dylib_filename() function to the standard library
2011-03-15 16:56:59 -07:00
Patrick Walton
7d32f3d052
rustc: Add a stub crate reader module for "use" directives
2011-03-15 16:30:43 -07:00
Patrick Walton
bb081d6611
rustc: Typo: "unput" -> "input"
2011-03-15 15:07:41 -07:00
Patrick Walton
736969f9fe
rustc: Add support for LLVM memory buffer creation via a wrapper function
2011-03-15 14:58:11 -07:00
Rafael Ávila de Espíndola
bd9dd5ed1a
Change the numbering of upcall functions. upcall_0 now calls a function
...
with no arguments. This is still preparation for calling functions that
don't take a rust task argument.
2011-03-15 16:24:03 -04:00
Graydon Hoare
73f4728182
Append 'svn' to version in dll name, hopefully to bring win32 up again.
2011-03-15 12:55:23 -07:00
Patrick Walton
b07634f212
rustc: Add Rust bindings to the LLVM object file library
2011-03-15 12:27:48 -07:00
Graydon Hoare
400df70643
Improve depfile generation for rustc.
2011-03-15 12:24:18 -07:00
Graydon Hoare
6cfeac8373
Fix ld flag order for fussy win32 linker.
2011-03-15 10:55:25 -07:00
Patrick Walton
6670a63f62
llvmext: Add Mach-O object file reading support to LLVM's BFD workalike
2011-03-14 18:22:51 -07:00
Patrick Walton
3bbd741c2e
llvmext: Make the Object bindings actually work
2011-03-14 18:13:04 -07:00
Graydon Hoare
316158df8e
Bump LLVM version strings to 3.0svn, we're effectively tied to it now anyways.
2011-03-14 17:33:06 -07:00
Graydon Hoare
7f5bffc3ea
Merge remote branch 'brson/recursive-elseif'
2011-03-14 16:59:04 -07:00
Brian Anderson
8b5574ac09
Rename check_assignment_like to check_assignment since it turned out not to be useful for send/recv
2011-03-14 16:41:46 -07:00
Brian Anderson
b83a4af93c
Fix the typechecking for expr_send and expr_recv
2011-03-14 16:41:46 -07:00
Brian Anderson
4ce4d8857f
Add ty_port and ty_chan to expr_ty function
2011-03-14 16:41:46 -07:00
Brian Anderson
83f758cf0d
Typecheck expr_send and expr_recv
2011-03-14 16:41:46 -07:00
Brian Anderson
a309f74a94
Reorganize evaluation of expr_send/recv to put them closer to expr_assign, to which they are similar
2011-03-14 16:41:46 -07:00
Brian Anderson
f0842030f3
Fix typo in expr_recv parsing
2011-03-14 16:41:46 -07:00
Brian Anderson
644d8b95da
Factor out expression checking for forms that look like assignment
2011-03-14 16:41:46 -07:00
Brian Anderson
7464237256
Add folding and type checking for ports and chans
2011-03-14 16:41:46 -07:00
Brian Anderson
a3cca65f6d
Fold ty_chan and ty_port
2011-03-14 16:41:46 -07:00
Brian Anderson
292dac644f
Parse receive expressions
2011-03-14 16:41:46 -07:00
Brian Anderson
80e0ebaa86
Parse port and chan types, constructors, send statements
2011-03-14 16:41:46 -07:00
Graydon Hoare
45f7955261
Put out darwin fire.
2011-03-14 16:14:17 -07:00
Brian Anderson
c5721759bb
Add fannkuchredux shootout benchmark
2011-03-14 15:52:48 -07:00
Brian Anderson
cba00ac2a1
Rename binary trees benchmark to match the original shootout source
2011-03-14 15:52:48 -07:00
Brian Anderson
467b9f3908
Implement the rest of the binary trees shootout benchmark
2011-03-14 15:52:48 -07:00
Brian Anderson
922f69387d
Add _int.pow
2011-03-14 15:52:48 -07:00
Brian Anderson
ac72f42b1c
Mention test/bench in README
2011-03-14 15:52:48 -07:00
Brian Anderson
595c4862ab
Remove broken 99-bottles makefile and run script
2011-03-14 15:52:48 -07:00
Brian Anderson
97245edd80
Add 99-bottles benchmarks to testsuite
2011-03-14 15:52:48 -07:00
Brian Anderson
8438eca45c
Integrate shootout benchmarks into testsuite
2011-03-14 15:52:48 -07:00
Brian Anderson
242ecd0e96
Reorganize makefile targets
2011-03-14 15:52:48 -07:00
Marijn Haverbeke
77f4c52c3e
Make pretty-printer print 'with' clause in rec literals
2011-03-14 14:57:13 -07:00
Marijn Haverbeke
ea5dc54c3f
Add functionality for running external programs to the std lib
...
See lib/run_program.rs.
2011-03-14 14:57:13 -07:00
Marijn Haverbeke
441697ab35
Extend stream functionality
...
Writer and reader streams now come with methods to write and read
little-endian numbers. Whether that is the right place for such
methods is debatable, but for now, that's where they live.
2011-03-14 14:57:13 -07:00
Marijn Haverbeke
c731d625fe
Add basic file-system functionality
...
std.fs.list_dir will list the files in a directory, std.fs.file_is_dir
will, given a pathname, determine whether it is a directory or not.
2011-03-14 14:57:13 -07:00
Rafael Ávila de Espíndola
3436979b17
Split trans' collection in two passes. This allows us to handle tags
...
that are defined after use in a block.
This is really inefficient, but for now it lets us compile the included test.
2011-03-14 16:56:03 -04:00
Brian Anderson
bbb6836da0
Merge branch 'master' into recursive-elseif
...
Conflicts:
src/comp/middle/typeck.rs
2011-03-13 19:40:25 -04:00
Brian Anderson
2a662944a4
Remove extra blocks from the translation of expr_block
...
Doesn't seem to break anything and allows trans_if to be streamlined
2011-03-13 19:29:40 -04:00
Patrick Walton
fdc22ef1a1
Add llvmext/include to the list of include directories to hopefully put out the burning tinderbox
2011-03-11 18:20:13 -08:00
Patrick Walton
57c2fa9d11
Rename libsupport to librustllvm
2011-03-11 18:17:57 -08:00
Patrick Walton
d34e1ff89e
rustc: Add a binding to LLVM's object file reader. Until it's sent upstream, add an explicit "support" library for our LLVM extensions.
2011-03-11 18:03:00 -08:00
Graydon Hoare
a8fbb53d64
Include glob in crate depfile deps, to handle file-add events with cached depfiles. Closes #269 .
2011-03-11 16:16:35 -08:00
Graydon Hoare
ec7e84ae0d
Preserve crate directives in the parsed crate.
2011-03-11 15:49:56 -08:00
Graydon Hoare
d24acf733a
Remove redundant entry from Makefile
2011-03-11 15:49:56 -08:00
Patrick Walton
9b3db0ed44
rustc: Add some stub metadata to each crate
2011-03-11 15:35:50 -08:00
Rafael Ávila de Espíndola
74d891517b
reindex the block index.
2011-03-11 17:35:33 -05:00
Patrick Walton
1feaf8ffb5
Re-XFAIL size-and-align.rs to put out burning tinderbox
2011-03-11 14:33:54 -08:00
Patrick Walton
6392bd1681
rustc: Load structural loop variables in iterators. Un-XFAIL foreach-put-structured.rs.
2011-03-11 14:29:45 -08:00
Rafael Ávila de Espíndola
28d51e3fd2
Add support for indexing tags in blocks.
2011-03-11 17:12:25 -05:00
Patrick Walton
5c21f03990
rustc: Un-XFAIL test/run-pass/foreach-simple-outer-slot.rs
2011-03-11 13:48:25 -08:00
Graydon Hoare
fc7cbe31f9
Switch rustboot from element-wise copying to take+drop+memcpy. Un-XFAIL size-and-align.rs for rustc.
2011-03-11 13:44:24 -08:00
Patrick Walton
2ef5728722
rustc: Un-XFAIL generic-iter-frame.rs
2011-03-11 12:11:24 -08:00
Patrick Walton
a93ab2e1b1
Un-XFAIL test/run-pass/foreach-nested.rs and test/run-pass/foreach-nested-2.rs
2011-03-11 12:06:09 -08:00
Patrick Walton
37007a4d01
rustc: Populate the upvar environment when calling iterator bodies. Un-XFAIL test/run-pass/iter-range.rs.
2011-03-11 12:02:51 -08:00
Patrick Walton
336f22db61
rustc: Resolve upvars as necessary
2011-03-11 10:39:36 -08:00
Rafael Ávila de Espíndola
0117cf2fc2
Handle resolving to native modules.
2011-03-10 21:33:53 -05:00
Graydon Hoare
bc5a8393e7
Help extinguish fires.
2011-03-10 17:57:22 -08:00
Graydon Hoare
3aac5059ee
Move the glue code to a .o file. This reduces how much asm we print
...
in each "translation unit".
Part of it is not repetitive and should probably be moved to a .ll file, but
for now we autogen all of it.
(Modified somewhat by graydon while integrating).
2011-03-10 17:30:08 -08:00
Patrick Walton
7454b53411
rustc: Build up a list of upvars inside foreach bodies
2011-03-10 16:49:00 -08:00
Patrick Walton
60f86354ad
rustc: Use the generic info from the item in bind thunks just as calls do. Un-XFAIL drop-parametric-closure-with-bound-box.rs.
2011-03-10 15:14:45 -08:00
Patrick Walton
185bcc6218
rustc: Increment the counter in trans_bind_thunk()
2011-03-10 15:09:41 -08:00
Patrick Walton
41d5094a8e
rustc: Fix off-by-one error and logic error regarding type parameters in the translation of bind expressions. Un-XFAIL bind-obj-ctor.rs.
2011-03-10 14:38:06 -08:00
Rafael Ávila de Espíndola
4ca0259b20
Update the current id when we create sub parsers.
2011-03-10 17:36:41 -05:00
Graydon Hoare
ab7b9b847a
Fix seemingly un-noticed thinko in structural copying code in rustboot.
2011-03-10 14:15:41 -08:00
Graydon Hoare
5f29988a2c
Add failing test for tag-leaking case.
2011-03-10 14:15:02 -08:00
Patrick Walton
36b81abf61
rustc: Perform a cast in vector initialization due to changing layers of indirection. Keep test/run-pass/size-and-align.rs XFAIL'd due to a leak in rustboot.
2011-03-10 12:15:07 -08:00
Patrick Walton
7505c1fa23
rustc: Run cleanups on while expressions' condition blocks. Un-XFAIL while-prelude-drop.rs.
2011-03-10 11:46:37 -08:00
Graydon Hoare
0d3cec71a3
Fix eval typo (caught by Martin Hock).
2011-03-10 10:17:10 -08:00
Graydon Hoare
8e8c336f93
Implement deep structural comparison through boxes and sequences.
2011-03-09 20:14:19 -08:00
Graydon Hoare
fb246e4e47
Un-XFAIL a couple export-related tests.
2011-03-09 19:01:13 -08:00
Patrick Walton
874e8e3505
rustc: Have tag patterns use the type parameter information from the typechecker instead of trying to deduce it in trans. Un-XFAIL test/run-pass/generic-tag-values.rs.
2011-03-09 17:50:46 -08:00
Graydon Hoare
bafcbb101c
Fold exports.
2011-03-09 17:34:22 -08:00
Graydon Hoare
11a10c7a7b
Remove redundant imports in lib (rustc doesn't like 'std' as a synonym for root within std.rc anyway)
2011-03-09 17:29:18 -08:00
Marijn Haverbeke
ec22fe9733
Add ty_obj case to pretty printer
2011-03-09 16:15:58 -08:00
Marijn Haverbeke
aed40fbcd8
Have the pretty-printer take a writer stream as argument
...
It now uses a string writer to also fill in for
middle.ty.ast_ty_to_str
2011-03-09 16:15:55 -08:00
Marijn Haverbeke
dddd7d8f44
Add stdout_writer and string_writer to std.io
...
For use by pretty-printer. string_writer API is a bit silly
right now, feel free to suggest a cleaner way to do this.
2011-03-09 16:15:52 -08:00
Patrick Walton
ea2c868744
rustc: Perform type substitutions for tag variants in dynamic_size_of()
2011-03-09 16:07:55 -08:00
Patrick Walton
1e65baad94
rustc Remove dead "llunit_ty" assignment in trans_index
2011-03-09 15:23:41 -08:00
Patrick Walton
7dc64b45b5
rustc: Make tag pattern translation generic-aware. Un-XFAIL generic-tag-alt.rs.
2011-03-09 15:17:06 -08:00
Patrick Walton
ba2e04f271
Rename confusing usage of "lltag" to "lldiscrim" in trans_pat_match()
2011-03-09 14:29:00 -08:00
Patrick Walton
ff15a93d95
rustc: Make test/run-pass/generic-tag-alt.rs valid Rust; it was passing a dynamically-sized value by value instead of by alias
2011-03-09 14:12:08 -08:00
Patrick Walton
603d820b85
rustc: Have demand_pat() extract type parameters from tags. Add a test case.
2011-03-09 14:09:02 -08:00
Patrick Walton
2986ed43e9
rustc: Substitute type parameters in type_of_variant(). Add a test case.
2011-03-09 13:31:25 -08:00
Patrick Walton
9aa26904b8
rustc: Remove redundant ty_params_of_tag() function
2011-03-09 13:07:06 -08:00
Patrick Walton
80fa01fb57
rustc: Perform type parameter substitutions in static_size_of_tag()
2011-03-09 12:53:12 -08:00
Patrick Walton
fcd195bb4c
rustc: Don't try to load dynamically-sized types when translating tag variants. Add a test case for this.
2011-03-09 12:53:12 -08:00
Rafael Ávila de Espíndola
02f669ca67
Pass the task pointer as just another i32.
2011-03-09 15:35:54 -05:00
Rafael Ávila de Espíndola
10d8b4e861
Fix access to the rust stack.
2011-03-09 15:05:22 -05:00
Rafael Ávila de Espíndola
aeca138944
swap taskptr and callee in preparation for making taskptr optional.
2011-03-09 14:16:11 -05:00
Patrick Walton
50da3ea5bc
rustc: Instantiate tag patterns with the type parameters supplied by the programmer. size-and-align.rs typechecks now.
2011-03-09 11:08:59 -08:00
Patrick Walton
b828ec36fb
rustc: Factor the type parameter and type lookup out of instantiate_path(), as patterns need different logic
2011-03-09 10:56:45 -08:00
Patrick Walton
3c200f3e14
rustc: Grammar police work in check_pat() error messages
2011-03-09 10:21:48 -08:00
Patrick Walton
0a22a4edbb
rustc: Factor out path type instantiation so that tag patterns can use it as well
2011-03-08 18:48:17 -08:00
Patrick Walton
e64085b0a2
rustc: Fold over the paths in tag patterns so that we can resolve type variables in them
2011-03-08 18:11:00 -08:00
Patrick Walton
5b7c3b8b5d
rustc: Typecheck the base part of record extension expressions. Un-XFAIL rec-extend.rs.
2011-03-08 17:34:41 -08:00
Graydon Hoare
1a05f99a10
Un-XFAIL obj-return-polytypes.rs
2011-03-08 17:25:34 -08:00
Patrick Walton
e9fe47b359
rustc: Make ann_to_type() fail if the node has no type. Miraculously, no test cases fail.
2011-03-08 17:03:00 -08:00
Patrick Walton
e62424944b
rustc: Have trans get the type parameters from the annotation instead of trying to deduce them itself. Un-XFAIL generic-fn-twice.rs.
2011-03-08 16:56:19 -08:00
Graydon Hoare
67a9532dee
Remove GC overspend; running out of memory on some tinderboxes.
2011-03-08 16:32:39 -08:00
Graydon Hoare
01bfc3ae8b
Fix generic-bind support for bound aliases and generics.
2011-03-08 16:32:39 -08:00
Patrick Walton
da9ea9ab69
rustc: Move type parameter resolution from translation into the typechecker
2011-03-08 14:55:39 -08:00
Patrick Walton
16344a0145
rustc: Re-XFAIL rec-extend.rs. The typechecker never assigned the path expr a type.
2011-03-08 14:50:50 -08:00
Graydon Hoare
27547c6514
Revert "Move the glue asm code to a .o file. This reduces how much asm we print"
...
This reverts commit 55c80e763b
.
2011-03-08 13:20:16 -08:00
Rafael Ávila de Espíndola
55c80e763b
Move the glue asm code to a .o file. This reduces how much asm we print
...
in each "translation unit".
2011-03-08 13:08:31 -08:00
Patrick Walton
35bee753de
rustc: Pass explicit type substitutions to later passes
2011-03-08 13:00:31 -08:00
Patrick Walton
4654faa67c
rustc: Add a slot for explicit type parameter instantations to the typechecker's AST annotation
2011-03-08 12:42:56 -08:00
Patrick Walton
e2f6f19fc8
rustc: Rework type substitution to pair up type parameter IDs with the supplied type parameter instantiations explicitly
2011-03-08 12:19:37 -08:00
Patrick Walton
51be50490e
rustc: Expose common.def_eq().
2011-03-08 11:59:38 -08:00
Patrick Walton
473a242525
rustc: Store type parameter definition IDs instead of type parameter counts in the typechecker
2011-03-08 11:27:36 -08:00
Patrick Walton
0054efc412
rustc: Store the number of type parameters per item, which will be needed to get unused type params working
2011-03-08 10:57:40 -08:00
Brian Anderson
5aabe7e84f
Add partial pretty-printing for syntax extensions
2011-03-07 22:06:26 -05:00
Brian Anderson
fa2525a7bd
Remove old pretty-printer from rustc
2011-03-07 22:06:07 -05:00
Brian Anderson
5ba012f4a5
Add missing alt arm to expr_if pretty-printer
2011-03-07 22:05:55 -05:00
Brian Anderson
9fc4db6b89
Merge branch 'master' into recursive-elseif
...
Conflicts:
src/Makefile
src/comp/front/ast.rs
src/comp/front/parser.rs
src/comp/middle/fold.rs
src/comp/middle/trans.rs
2011-03-07 21:21:01 -05:00
Graydon Hoare
0d60918855
Most of the way through genericizing bind properly with new malloc path. Still getting the thunk call wrong.
2011-03-07 18:13:56 -08:00
Patrick Walton
3473ff3bff
rustc: Cast dynamically-sized tags in iter_structural_ty_full() to opaque tag types. Un-XFAIL generic-recursive-tag.rs.
2011-03-07 18:03:33 -08:00
Patrick Walton
6ed226c6b3
rustc: Cast the LLVM representations of tag types when constructing boxes. Un-XFAIL list.rs.
2011-03-07 16:35:00 -08:00
Patrick Walton
6f7e21ddac
rustc: Truncate or zero-extend indexes appropriately. Un-XFAIL integral-indexing.rs.
2011-03-07 15:44:42 -08:00
Graydon Hoare
df3038e68b
Parse opacity (and drop on the floor), so std.rc parses now.
2011-03-07 15:38:20 -08:00
Patrick Walton
3869b3bfe4
Modernize test/run-pass/generic-recursive-tag.rs. Un-XFAIL it in rustboot.
2011-03-07 15:12:41 -08:00
Graydon Hoare
7fa8936ece
Un-XFAIL 5 more tests that pass lately.
2011-03-07 14:48:32 -08:00
Patrick Walton
eeb2d6d32c
rustc: Un-XFAIL box-unbox.rs
2011-03-07 14:28:52 -08:00
Graydon Hoare
abbcc0385d
Poison ty_param values in trans; fix buggy parametric obj and box malloc paths. Add generic-box test.
2011-03-07 14:05:16 -08:00
Marijn Haverbeke
0624f9db4a
Add a pretty-printer
...
Adds a -pp option to the compiler which will cause it to simply
pretty-print the given file.
2011-03-07 12:58:08 -08:00
Rafael Ávila de Espíndola
8047957b99
Construct the wrappers to native functions. Hello world now works :-)
2011-03-07 15:37:40 -05:00
Graydon Hoare
90f299e710
Permit view items in native modules.
2011-03-07 11:48:43 -08:00
Graydon Hoare
dfa85968c3
Stage the last compile fix to put out fire. Thanks git.
2011-03-07 10:33:04 -08:00
Graydon Hoare
44bceb84a7
Complain on unexpected native symbol, rather than failing with none-exhaustive match.
2011-03-07 10:02:01 -08:00
Graydon Hoare
5041944fd2
Yell louder when a linkage error in rt occurs, as compiler output fails quietly on null return.
2011-03-07 08:41:48 -08:00
Marijn Haverbeke
1ce6cfbe7c
use a precedence table for operator parsing
2011-03-07 15:32:11 +01:00
Graydon Hoare
f017a9e71f
Un-XFAIL str-concat.rs.
2011-03-07 00:18:10 -08:00
Graydon Hoare
60657fa8aa
Set the cleanup on the post-growth vector, not the temporary one.
2011-03-07 00:13:56 -08:00
Graydon Hoare
2cbfb8795d
Fix off-by-one in vector append code.
2011-03-06 23:06:01 -08:00
Graydon Hoare
386ba3ae63
Further work on vec-append. Almost working.
2011-03-06 22:37:14 -08:00
Brian Anderson
d39da6f978
Remove typestate workarounds
2011-03-06 15:13:35 -08:00
Brian Anderson
b893bec4bb
Flatten conditionals in rustc.rs. Remove FIXME
2011-03-06 15:13:32 -08:00
Brian Anderson
bed457d3a7
Change io.fileflag to a tag type. Remove FIXME
2011-03-06 15:13:30 -08:00
Brian Anderson
330c9c6c35
Make _str.bytes use _vec.init_fn. Remove FIXME.
2011-03-06 15:13:28 -08:00
Graydon Hoare
138c55a69d
Fix return value on trans_vec_add.
2011-03-06 15:12:33 -08:00
Graydon Hoare
3eb20f3f6e
Correct signatures and arguments associated with call into vec_append_glue.
2011-03-06 12:46:33 -08:00
Graydon Hoare
d97c800e31
Make ret and fail stmts have 0 out-edges, Closes #250 .
2011-03-05 20:05:02 +00:00
Patrick Walton
94b681afe4
rustc: Use copy_ty() when initializing N-ary tag variants. Un-XFAIL generic-tag.rs.
2011-03-04 18:05:48 -08:00
Patrick Walton
1dc6bdf331
rustc: Don't recurse forever if type glue needs to refer to its own type descriptor
2011-03-04 17:22:43 -08:00
Patrick Walton
0aa74828e3
rustc: Remove "translating variants" debug string
2011-03-04 15:15:12 -08:00
Patrick Walton
76ec67063e
rustc: Don't use recursive types for tags; remove tag_info; introduce GEP_tag()
2011-03-04 15:10:22 -08:00
Graydon Hoare
596face274
Parse (and generally ignore) constraints and constrained types.
2011-03-04 14:19:48 -08:00
Rafael Ávila de Espíndola
95c0cefd32
Build empty wrappers. This lets us compile hello world, but so far it
...
just returns 0.
2011-03-04 15:29:33 -05:00
Rafael Ávila de Espíndola
2ff67ed94e
Remove unused argument.
2011-03-04 14:53:52 -05:00
Graydon Hoare
02dff96b52
Parse meta directives in crates.
2011-03-04 11:28:40 -08:00
Graydon Hoare
652cb48475
Assortment of additional work on vec-append. Not done yet.
2011-03-03 18:18:59 -08:00
Patrick Walton
629eba1d06
rustc: Make tag discriminants per-tag-ID, not per-tag-ID-and-subtypes
2011-03-03 18:15:17 -08:00
Graydon Hoare
b4a85c7b58
Factor out and generalize sequence pointer walking, for use in vec-grow.
2011-03-03 17:36:38 -08:00
Patrick Walton
04a0a6fbef
Revert "rustc: Add support for folding over tag types" as it's unnecessary. Oops.
2011-03-03 17:09:20 -08:00
Patrick Walton
f6682280f3
rustc: Add support for folding over tag types
2011-03-03 16:54:15 -08:00
Patrick Walton
39b0563205
rustc: Remove dead code that used to generate tag constants from trans_constant()
2011-03-03 16:18:43 -08:00
Patrick Walton
f44fea8b6d
rustc: Teach trans_tag_variant() about generic tags
2011-03-03 15:53:36 -08:00
Graydon Hoare
5c7db0cde1
Rewrite rustboot's flow-graph wiring passes to be less awful. Add test for nested control-flow constructs.
2011-03-03 15:19:26 -08:00
Patrick Walton
7f74d4d4f2
Turn on Valgrind for Mac
2011-03-03 14:31:25 -08:00
Patrick Walton
2a241ece3a
rustc: Disallow calling type_of() on dynamically-sized types
2011-03-03 14:10:36 -08:00
Patrick Walton
5dba7a77d2
rustc: Don't call type_of() in GEP_tup_like() if there are any type parameters in the result
2011-03-03 14:03:37 -08:00
Rafael Ávila de Espíndola
da8058ff83
Handle native types in calls.
2011-03-03 16:44:15 -05:00
Patrick Walton
fae6870d05
rustc: Make populate_fn_ctxt_from_llself() generic-aware
2011-03-03 11:50:35 -08:00
Brian Anderson
5876da00cf
Remove some erroneous FIXMEs from #fmt parser
2011-03-02 22:05:19 -05:00