https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107692
--- Comment #8 from Segher Boessenkool <segher at gcc dot gnu.org> --- (In reply to Jiu Fu Guo from comment #5) > > -munroll-only-small-loops does not turn on or off -funroll-loops, and it > > should not, so that it does what it says, if nothing else. > > Yes, and -funroll-loops would win over -munroll-only-small-loops -funroll-loops is the only thing that enables loop unrolling. -munroll-only-small-loops, like the name says, says to only unroll small loops, and no others. It is not something at the same level as -funroll-loops, that would be insanity: other code likes to see if the user requested loops to be unrolled as well!