https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92276
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> --- Instead of trying to force the compiler to unroll with -funroll-loops you can use #pragma GCC unroll N on individual loops instead. The attributes should not conflict in any way.