https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96535
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 49039 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49039&action=edit gcc11-pr96535.patch Ugh, process_options is called only once and thus I believe processing of options with Optimization attribute doesn't really belong there, but should be done elsewhere (finish_options?). I think processing of even some other options might need moving, but am not ready to try that. In any case, such a patch is definitely not suitable for backporting, so perhaps for this PR we should just move the flag_cunroll_grow_size handling in there for now (and with opts->x_flag_unroll_all_loops || added to it because process_options does the if flag_unroll_all_loops then set flag_unroll_loops), and deal with the rest separately.