(In reply to Michal Suchanek from comment #3) > prebuilt avr-gcc6 with lto > https://build.opensuse.org/package/show/home:michals:arduino/cross-avr-gcc6- > lto Can't see what you did here (no diff or whatsoever), but here int main() {} compiles just fine with -flto.