aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* Update foregoing patches to leave rust_crate alone.Marijn Haverbeke2011-04-186-104/+100
| | | | | | | | | Apparently it can't live in the main binary, since on non-Linux platforms, dynamics libs won't find symbols in the binary. This removes the crate_map pointer from rust_crate again, and instead passes it as an extra argument to rust_start. Rustboot doesn't pass this argument, but supposedly that's okay as long as we don't actually use it on that platform.
* Add a -c option.Rafael Ávila de Espíndola2011-04-185-11/+46
|
* Make log the log level configurable per moduleMarijn Haverbeke2011-04-185-29/+206
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This overloads the meaning of RUST_LOG to also allow 'module.submodule' or 'module.somethingelse=2' forms. The first turn on all logging for a module (loglevel 3), the second sets its loglevel to 2. Log levels are: 0: Show only errors 1: Errors and warnings 2: Errors, warnings, and notes 3: Everything, including debug logging Right now, since we only have one 'log' operation, everything happens at level 1 (warning), so the only meaningful thing that can be done with the new RUST_LOG support is disable logging (=0) for some modules. TODOS: * Language support for logging at a specific level * Also add a log level field to tasks, query the current task as well as the current module before logging (log if one of them allows it) * Revise the C logging API to conform to this set-up (globals for per-module log level, query the task level before logging, stop using a global mask) Implementation notes: Crates now contain two extra data structures. A 'module map' that contains names and pointers to the module-log-level globals for each module in the crate that logs, and a 'crate map' that points at the crate's module map, as well as at the crate maps of all external crates it depends on. These are walked by the runtime (in rust_crate.cpp) to set the currect log levels based on RUST_LOG. These module log globals are allocated as-needed whenever a log expression is encountered, and their location is hard-coded into the logging code, which compares the current level to the log statement's level, and skips over all logging code when it is lower.
* collect crate meta info and ext crate namesMarijn Haverbeke2011-04-184-11/+24
|
* move rust_crate structure into the actual crate codeMarijn Haverbeke2011-04-181-4/+2
|
* introduce local_ctxt in trans.rs to keep crate_ctxt globalMarijn Haverbeke2011-04-181-318/+333
| | | | | | This reduces crate_ctxt copying (which unfortunately did not result in a noticeable speedup), and makes the role of that type a bit more clear.
* Support the space flag in #fmtBrian Anderson2011-04-173-23/+53
|
* Support + flag in #fmtBrian Anderson2011-04-173-6/+40
|
* Support #fmt precision for bools, with same rules as stringsBrian Anderson2011-04-172-2/+14
| | | | | Not totally confident this is desirable. The alternative would be to make it a compile error.
* Fix indentation in syntax-extension-fmt.rsBrian Anderson2011-04-171-44/+44
|
* Treat char #fmt conversions just like str conversionsBrian Anderson2011-04-172-1/+7
| | | | Add missing tests
* Support #fmt precision for signed typesBrian Anderson2011-04-172-49/+66
|
* Support #fmt precision for unsigned typesBrian Anderson2011-04-172-27/+65
|
* Support #fmt precision for string typesBrian Anderson2011-04-173-4/+70
|
* Support left-justification in #fmt conversionsBrian Anderson2011-04-163-12/+95
|
* Add another test for #fmt conversion widthsBrian Anderson2011-04-161-0/+1
|
* Make #fmt support explicit conversion widthsBrian Anderson2011-04-163-13/+91
|
* More tests for #fmtBrian Anderson2011-04-161-0/+7
|
* rustc: Capture type parameters into for-each blocks. Add a test case.Patrick Walton2011-04-152-2/+44
|
* rustc: Use a regular vector instead of a hash table for type descriptorsPatrick Walton2011-04-151-14/+13
|
* stdlib: Add some vector functions: empty, empty_mut, grow_set, and freeze. ↵Patrick Walton2011-04-151-4/+31
| | | | Change _vec.grow to use uint arguments.
* Produce PIC code and use -S in the Makefile.Rafael Ávila de Espíndola2011-04-152-46/+25
|
* rustc: Remove the "boxed" check, and make the static_size_of_tag ↵Patrick Walton2011-04-151-33/+32
| | | | recursion-eliminating transformation deep
* Add a -S option for producing assembly. I will move more of it toRafael Ávila de Espíndola2011-04-155-20/+68
| | | | rust once the necessary APIs are available in C.
* rustc: Make fold_ty no longer use an object; introduce walk_tyPatrick Walton2011-04-153-115/+160
|
* Work on destructors, not entirely functional yet (no tydesc integration).Graydon Hoare2011-04-147-13/+100
|
* rustc: Use the unified result for the type of assignment expressionsPatrick Walton2011-04-141-1/+1
|
* rustc: Add a test case for previous commitPatrick Walton2011-04-141-0/+11
|
* rustc: Perform type substitutions when recording localsPatrick Walton2011-04-141-1/+11
|
* rt: Remove half-baked, incomplete, commented-out print_stack_trace() stubPatrick Walton2011-04-141-17/+0
|
* rustc: Remove generalize_ty. Instead, maintain an explicit type parameter ↵Patrick Walton2011-04-145-358/+548
| | | | substitution list.
* rustc: Use union-find for variable substitutionPatrick Walton2011-04-142-64/+115
|
* Add support for upper-case hex and binary output to #fmt.Brian Anderson2011-04-135-0/+40
| | | | Only works for uints at present. Necessitated the addition of _str.to_upper.
* Add more commentary about ExtFmtBrian Anderson2011-04-132-15/+37
|
* Add support for printing uints as lower-case hex to ExtFmt.Brian Anderson2011-04-133-18/+101
| | | | | Begin passing an ExtFmt.RT.conv parsed format description to each of the ExtFmt.RT.conv* functions.
* Move #fmt conversion model into ExtFmt.CT namespaceBrian Anderson2011-04-132-73/+72
|
* Add ExtFmt test for unsigned typeBrian Anderson2011-04-131-0/+1
|
* Fix a typo in test expr-alt-generic-box1.rsBrian Anderson2011-04-131-1/+1
|
* rm unused importTim Chevalier2011-04-131-1/+0
|
* Make expr_while work in typestate_checkTim Chevalier2011-04-133-116/+104
| | | | | | Also did some refactoring in typestate_check. All test cases in compile-fail that involve uninitialized vars now fail correctly! (All eight of them, that is.)
* Remove gc() call from end of lib-map.rs, works on stage0 otherwise (stage0 ↵Graydon Hoare2011-04-131-2/+0
| | | | produces no gc info)
* Fix temporary-spilling logic in trans_args, uncomment most of lib-deque.rs ↵Graydon Hoare2011-04-132-11/+5
| | | | (which now passes on stage0).
* Add generic-temporary.rs minimal test showing cause of lib-deque.rs failure ↵Graydon Hoare2011-04-131-0/+21
| | | | on stage0.
* Fix lib-deque.rs to pass typarams by alias.Graydon Hoare2011-04-131-6/+6
|
* Slight updates to match API drift in io, lib-io.rs passes.Graydon Hoare2011-04-132-5/+5
|
* Remove code that is already in llvm for some time.Rafael Ávila de Espíndola2011-04-133-63/+1
|
* Lex numeric escapes, needed for lib-str.rs (which now passes).Graydon Hoare2011-04-131-13/+77
|
* Typo.Rafael Ávila de Espíndola2011-04-131-1/+1
|
* Update Makefile.in, not Makefile :-(Rafael Ávila de Espíndola2011-04-131-1/+1
|
* Enable alias analysis and the function attributes pass.Rafael Ávila de Espíndola2011-04-135-4/+28
| | | | | The C API extension is already upstream, we can drop the local copy once the bots are updated.