https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103465
--- Comment #22 from Eric Botcazou <ebotcazou at gcc dot gnu.org> --- > I don't see why should it behave differently for command-line options and > options that are passed via #pragma GCC optimize (or optimize attribute). > That should behave the same. Absolutely, but it should let -freorder-blocks-and-partition go through in both cases, instead of disabling it in both cases as it does now.