https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122041
--- Comment #8 from Petr Sumbera <sumbera at volny dot cz> --- Adding -flto doesn't seem to help here (with original code using memcpy): gcc -o test.o -c test.c gcc -flto -O3 -funroll-loops -mcpu=niagara4 -mtune=niagara4 -o crc-gcc.o -c crc.c gcc -flto -o test-gcc test.o crc-gcc.o /opt/developerstudio12.6/bin/cc -m64 -xO4 -xtarget=generic -xarch=sparcvis -xchip=generic -xregs=no%appl -xmemalign=16s -o crc-studio.o -c crc.c gcc -o test-studio test.o crc-studio.o time ./test-gcc real 33.6 user 33.6 sys 0.0 time ./test-studio real 14.5 user 14.5 sys 0.0