https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97058
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> --- You're not supposed to use this flag but the behavior is indeed weird. The last part "not valid for C/C++" is due to the fact the option is not marked for any language: funroll-completely-grow-size Undocumented Var(flag_cunroll_grow_size) Optimization ; Internal undocumented flag, allow size growth during complete unrolling but the '-Werror=' argument part is really odd ;)