Dylan McKay
Dylan McKay
`libcore` now compiles fine. We need to get `compiler-builtins` working on AVR (#125) before AVR can be made the default target.
Good point, I hadn't though of that - changing the default target to AVR could only ever be relevant in a rustc fork.
@Rahix > I have also started working on similar crates for the ATtiny85, but while doing so, I hit some strange compiler bugs ... I hope they magically solve themselves,...
LLVM IR was not actually attached in the description so here is what I get when I compile it locally ```llvm ; ModuleID = 'test.cgu-0.rs' source_filename = "test.cgu-0.rs" target datalayout...
Continuing conversation from #53 It's interesting because it looks like LLVM is making the switch -> lookup table optimisation. That means that in order to correctly mark the global variable...
This completely untested/uncompiled hack would probably fix it ```diff diff --git a/lib/Transforms/Utils/SimplifyCFG.cpp b/lib/Transforms/Utils/SimplifyCFG.cpp index 7b0bddbbb83..d0506c2ef17 100644 --- a/lib/Transforms/Utils/SimplifyCFG.cpp +++ b/lib/Transforms/Utils/SimplifyCFG.cpp @@ -4973,7 +4973,8 @@ SwitchLookupTable::SwitchLookupTable( Array = new GlobalVariable(M, ArrayTy,...
I've been looking into fixing this properly via adding target-specific hooks to the `TargetTransformInfo` class. I've been thinking about it and I don't think these lookup tables are a special...
Opened [D34983](https://reviews.llvm.org/D34983).
I completely agree, having lookup tables copied into ram would be a very ugly wart. My point is that I can fix switch tables but if we currently cannot load...
Do you know if this functionality is a part of the CRT? If so, that means we will get it for free if we link correctly with avr-gcc's CRT library.