https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87067
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |lto Component|lto |target --- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> --- I suppose that with your compiler a simple int main() {} would exhibit the same issue when doing gcc -c -flto -march=armv7-a t.c gcc -o t t.o -flto ? That is, somehow target specific option handling wrecks things here.