about summary refs log tree commit diff
path: root/src/comp/driver
AgeCommit message (Collapse)AuthorLines
2011-12-08rustc: Actually hook the crate_type attribute into sessionBrian Anderson-3/+9
2011-12-08rustc: Support 'crate_type' attributeBrian Anderson-0/+74
[crate_type = "lib"] builds it as a library. [crate_type = "bin"] builds it as an executable. Executable is the default. --lib and --bin switches override.
2011-12-08rustc: Move linking into compile_inputBrian Anderson-16/+20
2011-12-08rustc: Determine the crate type (lib/bin) in the session, not session optsBrian Anderson-9/+21
This is in preparation for adding a #[crate_type] attribute
2011-12-07Inject the view_items for core in the right place, add comment documenting ↵Graydon Hoare-5/+3
why the wrong place was wrong.
2011-12-07Change literal representation to not truncateMarijn Haverbeke-4/+4
Also shuffles around the organization of numeric literals and types, separating by int/uint/float instead of machine-vs-non-machine types. This simplifies some code. Closes #974 Closes #1252
2011-12-06Add --no-core option and inject a use core/import core::* pair into crate ↵Graydon Hoare-0/+33
unless it's given.
2011-12-06Rename --noverify flag to --no-verify.Graydon Hoare-3/+3
2011-12-02Allow literal patterns to contain arbitrary literal expressionsMarijn Haverbeke-2/+2
This removes the need for the unary minus hacks, and allows some other neat things like matching on 1 >> 4. Issue #954
2011-11-21Add a pass that checks that blocks are only used in safe waysMarijn Haverbeke-0/+2
Closes #1188
2011-11-21Fix bad interaction between last-use finding and referencesMarijn Haverbeke-3/+3
The last-use pass now takes input from the alias pass to not mark things as last uses that are still accessed through a reference. Issue #925
2011-11-18Make trans use last_use info to not actually generate copiesMarijn Haverbeke-1/+1
Issue #925
2011-11-18Implement a last-use-of-local finding algorithmMarijn Haverbeke-2/+6
Issue #925
2011-11-17remove compile-command from local variable blocksNiko Matsakis-2/+0
2011-11-17rustc: Add a flag '--warn-unused-imports'Haitao Li-3/+9
Followup of issue #889
2011-11-16remove unused flag (thanks lht)Niko Matsakis-1/+1
2011-11-16Removed --no-typestate flag from rutscStefan Plantikow-9/+3
Fixes issue #1139
2011-11-16rustc: Fix help text for --sysrootBrian Anderson-1/+1
2011-11-16wrap long line;Niko Matsakis-1/+2
2011-11-16enable comments in generated asm, llNiko Matsakis-3/+12
2011-11-15Support conditional compilation based on architectureBrian Anderson-1/+7
target_os = "x86" or target_os = "x86_64"
2011-11-15Fix handling of loops and conditionals in alias.rsMarijn Haverbeke-0/+1
It now threads information about invalidated aliases through the AST properly. This makes it more permissive for conditionals (invalidating an alias in one branch doesn't prevent you from using it in another), and less permissive for loops (it now properly notices when a loop invalidates an alias that it might still use in another iteration). Closes #1144
2011-11-12Remove unused "--check-unsafe" flagHaitao Li-2/+1
Fixes issue #1138
2011-11-10Cleanup unused importsHaitao Li-8/+4
2011-11-09middle: Add a pass to reject bad const expressions earlier. Currently just ↵Joshua Wise-0/+2
rejects unimplemented const expressions, but will be needed later.
2011-11-07Use ".ll" as default suffix of LLVM assembly fileHaitao Li-1/+1
This commit is a follow up of Issue #1147. Althought there are some inconsistency about this naming convention in LLVM. For example, `clang' write LLVM assembly to a file with ".s" suffix, while both `llvm-dis' and `opt' write to files with ".ll" suffices. We think ".ll" makes more sense. Also rustc manual page is updated.
2011-11-07rustc: Add support of generating LLVM assemblyHaitao Li-0/+3
rustc generates output files in LLVM bitcode format if "--emit-llvm" option is given. When used with the "-S" option, rustc generates LLVM intermediate language assembly files. Fixes Issue #476
2011-11-03Disallow writing to function arguments againMarijn Haverbeke-1/+1
Remove implicit copying hack. Closes #1118
2011-11-02hack around on makefiles trying to get a 64 bit buildNiko Matsakis-5/+5
right now there are many temporary hacks, search for NDM to find them
2011-11-02start to isolate target strings so that they can be configured forNiko Matsakis-6/+21
x64 or other targets
2011-10-29stdlib: Make io failures recoverable by returning a resultBrian Anderson-5/+11
2011-10-28rustc: Remove broken --depend flagBrian Anderson-1/+0
2011-10-28rustc: -h cleanupBrian Anderson-2/+2
2011-10-28rustc: Change --OptLevel to --opt-levelBrian Anderson-7/+7
2011-10-28rustc: Use consistent error handling in mainBrian Anderson-16/+17
2011-10-28Reorder statements in rustc main to avoid bounds checkBrian Anderson-3/+3
2011-10-28rustc: Lift output file name handling out of mainHaitao Li-40/+53
2011-10-28Produce dyn libraries with proper namesHaitao Li-15/+15
Issue #744
2011-10-25Update our code to new type parameter kind syntaxMarijn Haverbeke-1/+1
Closes #1067
2011-10-20Make fn denote a bare function. Convert fn to fn@ as neededBrian Anderson-1/+1
2011-10-13Rename rustc::middle::unsafeck to fn_usageBrian Anderson-3/+3
I'm going to add further checks unrelated to unsafe. Issue #1038
2011-10-12reimplement some of the unsafe stuff which got lostNiko Matsakis-5/+2
- blocks inherit unsafety - remove the --check-unsafe flag - add unsafe annotations where needed to get things to compile
2011-10-12make a good error msg if you try to use an unsafe fn for a testNiko Matsakis-1/+1
2011-10-12add pass to check that unsafe fns cannot be used as valuesNiko Matsakis-1/+3
2011-10-12correct lines over 78 charsNiko Matsakis-1/+1
2011-10-12enable unsafe checking but only with a flag --check-unsafeNiko Matsakis-3/+7
2011-10-12[Renaming] str_to_float is now float::from_str, float_to_str is now ↵David Rajchenbach-Teller-1/+1
float::to_str
2011-10-11[Move] Moved str_to_float, float_to_str from compiler to libDavid Rajchenbach-Teller-1/+1
2011-10-10Adjust function signatures to allow for vecs being immediateMarijn Haverbeke-1/+1
Some code was relying on vectors being implicitly by-reference (as non-immediate value). This adds the necessary &&-sigils. Closes #1021
2011-10-06Revert "rustc: Add a workaround for a segfault with --time-passes (issue ↵Marijn Haverbeke-24/+9
#1005)." This reverts commit 100e0264b2a2e4e7d8f27b4ed25af8cb7b4a8c3c.