about summary refs log tree commit diff
path: root/src/librustc/back
AgeCommit message (Collapse)AuthorLines
2013-05-14Use static string with fail!() and remove fail!(fmt!())Björn Steinbrink-1/+1
fail!() used to require owned strings but can handle static strings now. Also, it can pass its arguments to fmt!() on its own, no need for the caller to call fmt!() itself.
2013-05-11auto merge of #6397 : cantsin/rust/rusti-fixes, r=catamorphismbors-2/+2
Fixes #6378 Don't pass the binary name to the LLVMRustExecuteJIT closure, otherwise it will leak memory; the binary name doesn't seem to be needed, anyhow.
2013-05-11auto merge of #6389 : sonwow/rust/issue-3356, r=bstriebors-2/+2
Fix for #3356
2013-05-10Fixes rusti crashes.James Tranovich-2/+2
Don't pass the binary name to the LLVMRustExecuteJIT closure; doesn't seem to be needed, anyhow.
2013-05-10renamed str::from_slice to str::to_ownedYoungsoo Son-2/+2
2013-05-09Use a specialized string interner to reduce the need for owned stringsBjörn Steinbrink-6/+6
&str can be turned into @~str on demand, using to_owned(), so for strings, we can create a specialized interner that accepts &str for intern() and find() but stores and returns @~str.
2013-05-08librustc: Stop parsing modes and remove them entirely from the languagePatrick Walton-2/+2
2013-05-08libcore: Remove mutable fields from hashPatrick Walton-19/+29
2013-05-06remove some unused mut decls and varsNiko Matsakis-1/+1
2013-05-03auto merge of #6198 : luqmana/rust/linker-arg, r=graydonbors-10/+18
2013-05-03rustpkg: Handle sysroot more correctlyTim Chevalier-1/+1
In rustpkg, pass around sysroot; in rustpkg tests, set the sysroot manually so that tests can find libcore and such. With bonus metadata::filesearch refactoring to avoid copies.
2013-05-03librustc: Add argument to allow choosing "linker"Luqman Aden-10/+18
2013-05-02auto merge of #6172 : Sodel-the-Vociferous/rust/rm_trt_obj_magic_nums, ↵bors-0/+7
r=catamorphism,graydon I don't know how one would write a separate test for this sort of thing. Building the compiler, and `make check` worked, which should mean I didn't screw anything.
2013-05-02Remove 'Local Variable' commentsBrendan Zabarauskas-70/+0
2013-05-01Add trait object field types to back/abi.rs, and use themDaniel Ralston-0/+7
I've added trt_field_vtable, trt_field_box, and trt_field_tydesc, and inserted them in place of the "magic numbers" used to access trait object fields through GEPi().
2013-04-29Adds '--print-link-args' that outputs linker arguments that would be usedJames Miller-79/+97
2013-04-29Add `--linker` option to pass flags to the linkerJames Miller-0/+3
2013-04-27only use #[no_core] in libcoreDaniel Micay-18/+0
2013-04-23Fixing some various warnings about unused importsAlex Crichton-1/+1
2013-04-22auto merge of #5996 : sanxiyn/rust/target-feature, r=graydonbors-57/+49
Fix #1879.
2013-04-22Choose target featuresSeo Sanghyeon-11/+18
2013-04-22Convert to C string inside WriteOutputFileSeo Sanghyeon-57/+42
2013-04-20rustc: remove unused 'mut' variablesAlex Crichton-3/+3
2013-04-19rustc: de-mode + fallout from libsyntax changesAlex Crichton-11/+11
2013-04-19librustc: WIP patch for using the return value.Patrick Walton-2/+4
2013-04-18rustc: One less copyTim Chevalier-2/+2
2013-04-16libcore,std,syntax,rustc: move tests into `mod tests`, make them private (no ↵Huon Wilson-17/+17
pub mod or pub fn).
2013-04-14rustc: remove unnecessary unsafe blocks/methodsAlex Crichton-3/+1
2013-04-03rename Linear{Map,Set} => Hash{Map,Set}Daniel Micay-2/+2
2013-04-03hashmap: rm linear namespaceDaniel Micay-1/+1
2013-03-29Add AbiSet and integrate it into the AST.Niko Matsakis-1/+1
I believe this patch incorporates all expected syntax changes from extern function reform (#3678). You can now write things like: extern "<abi>" fn foo(s: S) -> T { ... } extern "<abi>" mod { ... } extern "<abi>" fn(S) -> T The ABI for foreign functions is taken from this syntax (rather than from an annotation). We support the full ABI specification I described on the mailing list. The correct ABI is chosen based on the target architecture. Calls by pointer to C functions are not yet supported, and the Rust type of crust fns is still *u8.
2013-03-29librustc: Remove `fail_unless!`Patrick Walton-22/+22
2013-03-28Removing unused importsAlex Crichton-10/+7
2013-03-26rustc: Remove uses of oldmap::HashMapAlex Crichton-1/+1
2013-03-22librustc: Remove the `const` declaration form everywherePatrick Walton-36/+36
2013-03-22librustc: Remove `pure` from libsyntax and librustc.Patrick Walton-1/+1
2013-03-22rustc: replace uses of old deriving attribute with new oneAndrew Paseltiner-1/+1
2013-03-21back-renamed slice_DBG_BRWD, slice_V_DBG_BRWD -> slice, slice_DBG_UNIQ -> ↵Marvin Löbel-1/+1
slice_unique
2013-03-21renamed str::view -> slice_DBG_BRWDMarvin Löbel-1/+1
renamed str::slice -> slice_DBG_UNIQ changed vec slice method -> to_owned() renamed vec view method -> slice_V_DBG_BRWD
2013-03-20auto merge of #5455 : pcwalton/rust/framework, r=catamorphismbors-5/+1
r? @catamorphism
2013-03-20auto merge of #5447 : erickt/rust/incoming, r=graydonbors-1/+1
This normalizes the how we call reverse iteration functions. It also adds a char_len method, and a method to iterate backwards over a string.
2013-03-20librustc: Fix bug preventing `-framework Foo` from working cross-crate.Patrick Walton-5/+1
2013-03-20core: add str::each{,i}_reverseErick Tryzelaar-1/+1
2013-03-20auto merge of #5443 : alexcrichton/rust/less-bad-copy, r=catamorphismbors-8/+8
Removes a lot of instances of `/*bad*/ copy` throughout libsyntax/librustc. On the plus side, this shaves about 2s off of the runtime when compiling `librustc` with optimizations. Ideally I would have run a profiler to figure out which copies are the most critical to remove, but in reality there was a liberal amount of `git grep`s along with some spot checking and removing the easy ones.
2013-03-19auto merge of #5432 : ILyoan/rust/arm_use_ndk_rebase, r=sanxiynbors-9/+41
Partial Fix for #5265 - Enabling LLVM ARM ehabi option. - Add ARM debug information manually for ccall.s - Compile object file using Android-NDK. Current LLVM trunk version can generate ARM debug information for assembly files but it is incomplete for object files. Unwinding on ARM can be done with LLVM trunk(the LLVM submodule of rust has problem on generating ARM debug information). See #5368 The Android-NDK detour(0f89eab) can be removed after LLVM has complete feature of generating ARM debug information for object file.
2013-03-20rustc: Remove some bad copies throughoutAlex Crichton-8/+8
2013-03-19auto merge of #5350 : yichoi/rust/pull-0313-2, r=graydon,pcwaltonbors-1/+1
FIX #5330 rename arm-unknown-android to arm-linux-androideabi
2013-03-19Use NDK for building android target objectsILyoan-9/+41
2013-03-13Remove `++` mode from the compiler (it is parsed as `+` mode)Niko Matsakis-2/+2
and obsolete `-` mode altogether (it *was* parsed as `+` mode).
2013-03-13auto merge of #5293 : brson/rust/logging, r=brsonbors-1/+1
r? @graydon This removes `log` from the language. Because we can't quite implement it as a syntax extension (probably need globals at the least) it simply renames the keyword to `__log` and hides it behind macros. After this the only way to log is with `debug!`, `info!`, etc. I figure that if there is demand for `log!` we can add it back later. I am not sure that we ever agreed on this course of action, though I *think* there is consensus that `log` shouldn't be a statement.