about summary refs log tree commit diff
path: root/src/comp
AgeCommit message (Collapse)AuthorLines
2011-11-16fix minor merge errorsNiko Matsakis-18/+13
2011-11-16wrap long lineNiko Matsakis-2/+2
2011-11-16apply calling convention at call site tooNiko Matsakis-1/+1
2011-11-16temp workaround for failure to pass ulonglong successfullyNiko Matsakis-2/+4
2011-11-16remove wrappers from intrinsicsNiko Matsakis-141/+9
2011-11-16make stdcall use shimNiko Matsakis-43/+26
2011-11-16Various fixes for x86_64 on linuxBrian Anderson-2/+7
Configure LLVM correctly, use the right data layout, add the readlink function back, fix C constants, etc.
2011-11-16fix natives with user-specified link names, remove unused importsNiko Matsakis-9/+18
2011-11-16fix bug in shape where s_int/s_uint were not customized to platformNiko Matsakis-12/+29
2011-11-16wrap long line;Niko Matsakis-1/+2
2011-11-16temporarily disable these tests b/c they crash rustcNiko Matsakis-4/+4
2011-11-16enable comments in generated asm, llNiko Matsakis-6/+36
2011-11-16correct translation of neg. numbers in 64-bit architecturesNiko Matsakis-17/+11
2011-11-16remove fixed FIXMENiko Matsakis-1/+0
2011-11-16wrap long lineNiko Matsakis-1/+2
2011-11-16finish up the shim approachNiko Matsakis-9/+17
2011-11-16add back call to zero_and_revokeNiko Matsakis-0/+1
2011-11-16begin efforts to use shim functions for c-stack callsNiko Matsakis-76/+148
2011-11-16Replace 'mutable?' with 'const'Brian Anderson-4/+3
2011-11-16rustc: Accept 'const' as synonym for 'mutable?'Brian Anderson-4/+7
2011-11-16Use attributes for native module ABI and link nameHaitao Li-69/+32
This patch changes how to specify ABI and link name of a native module. Before: native "cdecl" mod llvm = "rustllvm" {...} After: #[abi = "cdecl"] #[link_name = "rustllvm"] native mod llvm {...} The old optional syntax for ABI and link name is no longer supported. Fixes issue #547
2011-11-16Use attributes for native module ABI and link name [temp]Haitao Li-1/+25
This patch adds support of using attributes to specify native mode ABI and link name. The old optional syntax like: native "cdecl" mod llvm = "rustllvm" { ... } is still supported. This is a transitional commit to avoid making a stage1 (backward imcompatible) snapshot.
2011-11-16rustc: Use link_name attribute for native functionHaitao Li-26/+29
Fixes issue #906
2011-11-15rustc: Don't sign extend uints during translationBrian Anderson-1/+1
Doing so produces incorrect results on a 32-bit compiler targeting 64-bits
2011-11-15Support conditional compilation based on architectureBrian Anderson-1/+7
target_os = "x86" or target_os = "x86_64"
2011-11-15Use native fn's link name attribute if givenHaitao Li-2/+8
Fixes issue #905
2011-11-15Fix handling of loops and conditionals in alias.rsMarijn Haverbeke-62/+150
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-15rustllvm: Add a GetOrInsertFunction wrapperHaitao Li-1/+4
Fixes issue #1161 Test-case-by: Brian Anderson <banderson@mozilla.com> Signed-off-by: Haitao Li <lihaitao@gmail.com>
2011-11-13Make various binops not typecheck for unsafe pointers. Closes #1173Brian Anderson-1/+0
2011-11-12Remove unused "--check-unsafe" flagHaitao Li-2/+1
Fixes issue #1138
2011-11-10Cleanup unused importsHaitao Li-194/+103
2011-11-10rustc: Add support of warning on unused importsHaitao Li-9/+35
Fixes issue #889
2011-11-10Add float support to #fmt. Fix #1014.Josh Matthews-0/+3
2011-11-09Rename "c-stack-stdcall" ABI to "stdcall"Brian Anderson-2/+0
2011-11-09Rename "c-stack-cdecl" ABI to "cdecl"Brian Anderson-3/+1
2011-11-09Add "cdecl" as synonym for "c-stack-cdecl"Brian Anderson-1/+3
2011-11-09Add "stdcall" as synonym for "c-stack-stdcall"Brian Anderson-1/+3
2011-11-09rustc: Rename native_abi_c_stack_cdecl to native_abi_cdeclBrian Anderson-10/+10
2011-11-09rustc: Rename native_abi_c_stack_stdcall to native_abi_stdcallBrian Anderson-8/+8
2011-11-09Remove native "x86stdcall" ABIBrian Anderson-21/+3
2011-11-09Make native "c-stack-stdcall" ABI workBrian Anderson-1/+16
The symbol name is based on the number of arguments, so we have to declare it correctly. For some reason GetLastError doesn't work now.
2011-11-09trans: Add binops (except for logic and comparators) and unops to ↵Joshua Wise-2/+78
trans_const_expr. Working towards issue #570.
2011-11-09middle: Add a pass to reject bad const expressions earlier. Currently just ↵Joshua Wise-0/+45
rejects unimplemented const expressions, but will be needed later.
2011-11-08Remove native "cdecl" ABIBrian Anderson-16/+5
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-07Remove native "llvm" ABIBrian Anderson-19/+1
2011-11-07Remove native "rust" ABIBrian Anderson-13/+2
2011-11-07[Parser] parser.rs: Made two error messages less ambiguousDavid Rajchenbach-Teller-2/+6
2011-11-07rustc: Set LLVM module identifier as crate nameHaitao Li-3/+3
2011-11-07rustc: Add support of generating LLVM assemblyHaitao Li-5/+19
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