summaryrefslogtreecommitdiff
path: root/src/trans/codegen_c.cpp
AgeCommit message (Expand)AuthorFilesLines
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
2018-01-14MIR Codegen C - Continued work with MSVC codegen (still not working)John Hodge1-72/+190
2018-01-13Trans - Add compiler triple/arch to the target specJohn Hodge1-5/+5
2018-01-13Codegen - Support writing the build command to a file (instead of running it)John Hodge1-1/+6
2018-01-01Codegen C - Remove hacky null pointer referenceJohn Hodge1-15/+26
2017-12-31Codegen - Remove need for `-z muldefs`John Hodge1-10/+19
2017-12-30Codegen C - Remove dead code, fix warning with mainJohn Hodge1-91/+1
2017-12-29Fix enums with `repr(u64)`Adam Chodorowski1-1/+1
2017-12-09HIR+Trans - Handling of various enum reprsJohn Hodge1-28/+30
2017-12-02Codegen C - Fiddling with SwitchValue handlingJohn Hodge1-53/+91
2017-11-30Codegen C - Structured SwitchValue partial support, unify Switch handlingJohn Hodge1-33/+6
2017-11-25Codegen C - Better error messages for bad SwitchJohn Hodge1-2/+2
2017-11-24Codegen C - Generate call_mut for both Fn and FnMutJohn Hodge1-7/+12
2017-11-18Codegen C - Fix bad SwitchValue with signedJohn Hodge1-1/+1
2017-11-18Codegen - Fiddling with MSVC support (not quite there)John Hodge1-20/+1
2017-11-18Codegen C - Various attempts at making MSVC workJohn Hodge1-39/+154
2017-11-18Codegen C - Fiddling with MSVCJohn Hodge1-4/+4
2017-11-05Trans - Calculate sizes, alignment, and representationJohn Hodge1-8/+7
2017-11-05MIR - Use SwitchValue terminatorJohn Hodge1-2/+49
2017-11-01All - Clean up a few minor errors (pointed out in #31)John Hodge1-1/+1
2017-11-01HIR - Refactor enums to only embed a single field (and give variants types)John Hodge1-204/+127
2017-10-14Codegen C - Escape trigraphs in stringsJohn Hodge1-63/+53
2017-09-24LoadCrates - Support loading crates that might collide (and handle name colli...John Hodge1-2/+2
2017-09-23Codegen C - A few MSVC fixesJohn Hodge1-30/+38
2017-09-23Codegen C - Use static when a destructor would be locally defined, extern oth...John Hodge1-3/+15
2017-09-22Trans - Little fixes for MSVC 32-bitJohn Hodge1-6/+34
2017-09-22Trans - MSVC twiddlingJohn Hodge1-3/+31
2017-09-10Const Eval - Evalulate from MIR where possible (avoids BorrowData)John Hodge1-2/+2
2017-09-10Consteval - Remove BorrowOf in favor of BorrowPath/BorrowDataJohn Hodge1-2/+8
2017-09-10Codegen C - Slightly more efficient static string outputJohn Hodge1-5/+11
2017-09-09Codegen C - Omit useless labels and gotos (untested)John Hodge1-2/+82
2017-09-09Codegen C - Cleaner handling of link dirs, fix try intrinsicJohn Hodge1-8/+25
2017-09-08HIR - Store link pathsJohn Hodge1-0/+11
2017-08-20Codegen C - Fix a few bugs with MSVC modeJohn Hodge1-3/+27
2017-08-20Codegen C - Rough support for msvc inline assemblyJohn Hodge1-79/+137
2017-08-19Codegen C - U8 MSVC atomicsJohn Hodge1-0/+4
2017-08-18Trans - VTable unsizing in statics, emit vtables before staticsJohn Hodge1-1/+13
2017-07-25HIR Typecheck - Refactor of markings to keep more informationJohn Hodge1-56/+65