avr: support ThinLTO

ThinLTO results in a small code size reduction, which is nice
(especially on these very small chips). It also brings us one step
closer to using ThinLTO everywhere.
This commit is contained in:
Ayke van Laethem
2022-11-17 18:43:51 +00:00
committed by Ron Evans
parent 5c622cfc43
commit 4d14d3cd54
6 changed files with 38 additions and 18 deletions
+2
View File
@@ -40,6 +40,8 @@ func procUnpin() {
// The following functions are workarounds for things missing in compiler-rt.
// They will likely need special assembly implementations.
// They are treated specially: they're added to @llvm.compiler.used so that the
// linker won't eliminate them.
//export __mulsi3
func __mulsi3(a, b uint32) uint32 {