summaryrefslogtreecommitdiff
path: root/src/trans/codegen_c.cpp
AgeCommit message (Collapse)AuthorFilesLines
2018-08-20Trans - Fix size/alignment mismatches on x86John Hodge1-24/+110
2018-08-19Codegen C - Fix bad prototype for Drop::dropJohn Hodge1-2/+2
2018-08-18Codegen C - Fix some i128 overflow calculationJohn Hodge1-4/+8
2018-08-17Codegen C - Fix emulated i128 multiply/divideJohn Hodge1-22/+41
2018-08-12Codegen C - Very basic panic handling (doesn't unwind, but does get caught)John Hodge1-0/+53
2018-08-04Codegen C - Fix a few bugs and add new/now-used intrinsicsJohn Hodge1-7/+102
2018-07-08Codegen C - Fix a minor ABI issue for x86, fix emulated i128 a bitJohn Hodge1-9/+38
2018-07-05Codegen C - Implement some more parts of i128 emulationJohn Hodge1-2/+47
2018-07-04All - Dump full contents of asm! in AST/MIRJohn Hodge1-0/+1
2018-07-01Codegen C - Replace tUNIT by `void` (fixes FFI issues)John Hodge1-19/+58
2018-07-01Codegen C - Avoid &* pattern in reborrowsJohn Hodge1-7/+5
2018-06-30HIR Expand VTable - Fix incorrect associated type lookupsJohn Hodge1-0/+1
2018-06-03Trans C - Add configuration for linker argsJohn Hodge1-11/+17
2018-06-03Trans - Fix some minor errors from building with clangJohn Hodge1-0/+6
2018-05-27Trans - Plannin for dynamic library supportJohn Hodge1-0/+1
2018-05-26Codegen C - Don't emit destructor when type doesn't need itJohn Hodge1-0/+5
2018-05-12Trans - Support NonZero optimisation for BoxJohn Hodge1-0/+6
2018-05-05Target - Minor fixes to target.toml file loading (should work now)John Hodge1-6/+18
2018-04-01Codegen C - Fix compilation error in cargo (#66)John Hodge1-4/+16
2018-03-31Codegen C - Fix a few bugs with no ZST modeJohn Hodge1-3/+35
2018-03-30Codegen C - Fix ZST handlingJohn Hodge1-4/+23
2018-03-17Codegen C - Work around GCC5 bug by emitting a single-field struct instead ↵John Hodge1-1/+12
of a union Fixes #63
2018-03-17Codegen C - Fix structured emission (still disabled)John Hodge1-28/+134
2018-03-17Codegen - Minor array fix for MSVCJohn Hodge1-7/+27
2018-03-17VTables - Rename vtable static to have the # at the end (helps parsing in mmir)John Hodge1-1/+1
2018-03-03Codegen C - Avoid warning from msvc changeJohn Hodge1-1/+1
2018-03-03Codegen C - Avoid attempting to get type of a non-LValue when looking for ZSTsJohn Hodge1-6/+9
2018-03-03Codegen C - Fix ordering of InterlockedCompareExchange argumentsJohn Hodge1-3/+4
2018-03-03Codegen C - A few more MSVC compile fixes, now compiling (after patching ↵John Hodge1-5/+19
libstd to remove unused extern)
2018-03-03Codegen C - Work around InterlockedExchangeSubtract not existing for all ↵John Hodge1-2/+6
types by emulating with add
2018-03-03Codegen C - More work with MSVC support (darn atomics)John Hodge1-59/+82
2018-02-28Codegen C - MSVC fiddling still, fix compile error on gccJohn Hodge1-7/+37
2018-02-25Codegen C - More work on MSVC functionsJohn Hodge1-13/+43
2018-02-25Codegen C - Literals and omitted ZSTsJohn Hodge1-4/+19
2018-02-25Codegen C - Don't add `_d` field when there's an unsizedJohn Hodge1-1/+1
2018-02-25Codegen C - Minor fix with vtable handling, more work on MSVC zstsJohn Hodge1-6/+29
2018-02-25HIR+Codegen C - Encode drop/size/align in VTables at HIR level, working on ↵John Hodge1-96/+213
MSVC compilation
2018-02-19Codegen C - Fix bad attempt at making MSVC workJohn Hodge1-8/+5
2018-02-18Codegen C - Still trying to make MSVC workJohn Hodge1-4/+24
2018-02-11Codegen C - Fix warnings due to incorrect signs of enum variantsJohn Hodge1-34/+41
2018-02-11Codegen C - Fix some minor issuesJohn Hodge1-11/+11
2018-02-10Trans - Fix mismatches between mrustc's sizings and C's sizingsJohn Hodge1-14/+42
2018-02-04Trans - Fixes to edge cases with enum variantsJohn Hodge1-2/+10
2018-02-04Codegen C - Avoid ICE with gcc 5.4.0 (ubuntu), clean up some warningsJohn Hodge1-5/+6
2018-02-04Trans - mingw32 target attempt (still being worked on)John Hodge1-56/+226
2018-02-01Codegen C - Minor fixes from target structure layoutJohn Hodge1-64/+75
2018-01-27Trans - Move struct/enum layout calculation to target.cppJohn Hodge1-318/+190
2018-01-24MSVC - Fiddling about trying to make C code compileJohn Hodge1-4/+65
2018-01-17Codegen C - Switch back to using $CC or gccJohn Hodge1-3/+6
2018-01-14Codegen C - Add forgotten 'break' to avoid emitting msvc code on gccJohn Hodge1-0/+1