about summary refs log tree commit diff
path: root/src/comp/back
AgeCommit message (Collapse)AuthorLines
2011-10-31rustc: Enable segmented stacks in LLVM when --stack-growth is onPatrick Walton-0/+1
2011-10-28Produce dyn libraries with proper namesHaitao Li-8/+7
Issue #744
2011-10-27Remove uint::max/min in favor if math::max/minMatt Brubeck-1/+2
2011-10-24fix c-stack-cdecl when used w/ i64Niko Matsakis-3/+7
2011-10-24switch over sqrt from llvm to c-stack-cdecl, exposing a bug inNiko Matsakis-1/+5
the supported return types of upcall_c_stack
2011-10-21Remove last uses of iterators from stdlibMarijn Haverbeke-3/+1
Issue #1056
2011-10-20Don't rely on main.ll anymoreMarijn Haverbeke-7/+1
I'll remove the actual file after I register a snapshot. Issue #992
2011-10-20Output linker errors, when linking failsMarijn Haverbeke-3/+4
2011-10-20Get rid of taskpointer-passing throughout the compilerMarijn Haverbeke-2/+2
Only intrinsics still take a dummy taskptr. We'll have to do some makefile stunts to snapshot a version without taskptrs-in-intrinsics. Issue #466
2011-10-20Remove taskptr argument from upcallsMarijn Haverbeke-23/+15
Issue #466
2011-10-17Change the linkage order on linux and add -ldlBrian Anderson-5/+6
-lrt and -ldl need to be specified after -lrustrt since they are only used by rustrt.
2011-10-16Only link librt on linuxBrian Anderson-1/+8
2011-10-16Fix link error by explicitly link needed DSOsHaitao Li-1/+1
Building Rust(version 280bc56) on Ubuntu 11.10 failed with link error, like: compile_and_link: stage0/lib/rustc/i686-unknown-linux-gnu/lib/libstd.so compile_and_link: stage0/lib/rustc/i686-unknown-linux-gnu/bin/rustc /local/src/rust/build/stage0/lib/rustc/i686-unknown-linux-gnu/lib/librustrt.so: undefined reference to `clock_gettime' collect2: ld returned 1 exit status error: linking with gcc failed with code 1 GCC toolchain released by Ubuntu 11.10 introduced a few compiler flags that are different with upstream GCC[1]. Flags "-Wl,--as-needed' and '-Wl,--no-copy-dt-needed-entries' are passed by default. Function clock_gettime from librt is used by librustrt, indirectly by rustc. It is necessary to explicitly pass the "-lrt" flags when building rustc. Please note since the toolchain changes will be the default in the next release(2.22) of binutils, this is not actually a Debian/Ubuntu specific issue. 1. https://wiki.ubuntu.com/OneiricOcelot/ReleaseNotes#GCC_4.6_Toolchain Signed-off-by: Haitao Li <lihaitao@gmail.com>
2011-10-12reimplement some of the unsafe stuff which got lostNiko Matsakis-10/+7
- blocks inherit unsafety - remove the --check-unsafe flag - add unsafe annotations where needed to get things to compile
2011-10-12continue to annotate functions as unsafe where neccessaryNiko Matsakis-2/+3
2011-10-12add unsafe tags into various points in the translation chainsNiko Matsakis-4/+6
and so forth
2011-10-10Adjust function signatures to allow for vecs being immediateMarijn Haverbeke-2/+2
Some code was relying on vectors being implicitly by-reference (as non-immediate value). This adds the necessary &&-sigils. Closes #1021
2011-10-06Hopefully make test_prefix_rpath_abs work on win32Brian Anderson-1/+1
2011-10-06Mac uses @executable_path instead of $ORIGINBrian Anderson-2/+2
2011-10-06Always use an absolute path for the backup install prefix rpathBrian Anderson-5/+12
2011-10-06Mac doesn't seem to support rpath $ORIGINBrian Anderson-9/+28
2011-10-06Configure out rpath tests when not testingBrian Anderson-0/+1
2011-10-06Remove an unnecessary linking flag. Add comments about linkingBrian Anderson-1/+4
2011-10-06rpathing is based on the target, not host OSBrian Anderson-7/+5
2011-10-06Make rpath work on macBrian Anderson-0/+7
2011-10-05rpath all the things!Brian Anderson-2/+1
2011-10-05Add a FIXME about test exports to rustc::back::rpathBrian Anderson-0/+2
2011-10-05rpath the path to the runtimeBrian Anderson-1/+14
We don't currently rpath native libs, but we do know where rustrt is located and everything needs to link to it.
2011-10-05Fix some remaining rpath bugsBrian Anderson-15/+58
2011-10-05Figure out the relative path from output to each crateBrian Anderson-15/+62
2011-10-05Begin work on rpathBrian Anderson-0/+208
2011-10-04Use util::filesearch to locate intrinsics.bc and main.oBrian Anderson-4/+13
2011-10-04Encapsulate current sysroot and lib path handling into util::filesearchBrian Anderson-25/+5
2011-10-02rustc: Fix link error on Ubuntu Oneiric. Issue #903Haitao Li-2/+4
2011-09-30Change the directory for target libsBrian Anderson-3/+10
This pushes them down from stageN/lib/rustc/$(target) to stageN/lib/rustc/$(target)/lib in order to make room for a target bin dir
2011-09-29Reorganize structure of build directoryBrian Anderson-4/+18
Each stage is organized more according to Unix standards and to accommodate multiple target architectures. stageN/ bin - rustc lives here lib - libraries that rustc needs lib/rustc/$(target_triple/ - target libraries
2011-09-29rustc: Make the generic C stack function signature include a usable return valuePatrick Walton-1/+1
2011-09-29rustc: Fix call signature for call_c_stackPatrick Walton-18/+7
2011-09-29rustc: Add upcall stubs for the new C stack upcallsPatrick Walton-0/+5
2011-09-28Eliminate glue.o. Closes #990Brian Anderson-2/+1
2011-09-22Remove is_stateful flag from tydesc. Closes #136Brian Anderson-1/+1
2011-09-20Move linker invocation from driver::rustc to back::linkBrian Anderson-1/+93
2011-09-12Merge branch 'unwind'Brian Anderson-2/+5
Conflicts: src/comp/middle/trans.rs src/comp/middle/trans_build.rs src/lib/run_program.rs src/test/compiletest/runtest.rs
2011-09-12Pretty-print for new arg-mode syntaxMarijn Haverbeke-19/+17
2011-09-12Reformat for new mode syntax, step 1Marijn Haverbeke-47/+44
Long lines were fixed in a very crude way, as I'll be following up with another reformat in a bit.
2011-09-11Add upcall_rust_personalityBrian Anderson-2/+5
This just wraps __gxx_personality_v0 with our upcall naming convention Issue #236
2011-09-09Get rid of some unused upcallsMarijn Haverbeke-13/+2
I guess these became obsolete when the communication stuff moved into the stdlib.
2011-09-02Reformat. Issue #855Brian Anderson-148/+144
2011-09-02Eliminate const_refcount. Issue #855Brian Anderson-4/+0
2011-09-02Rename ivecs to vecs in the compilerMarijn Haverbeke-21/+11