https://gcc.gnu.org/bugzilla/show_bug.cgi?id=14541
--- Comment #22 from Richard Biener <rguenth at gcc dot gnu.org> --- (In reply to ktkachov from comment #21) > Created attachment 34215 [details] > Link errors output for aarch64 > > > Which one exactly? That is, what is the failing link output? > > All of them AFAICS. I'm attaching the link failures log. > > The test PASSes at -O2 -flto and -O2 -flto -flto-partition=none > > but FAILs on all other torture options With a cross to aarch64-linux and compiling with -O1+ -ffast-math the result is as expected (optimized to empty functions). How exactly do you configure? I used /space/rguenther/src/svn/trunk2/configure --target=aarch64-suse-linux --enable-languages=c,c++,fortran --enable-checking