https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101736
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |hubicka at gcc dot gnu.org
--- Comment #6 from Richard Biener <rguenth at gcc dot gnu.org> ---
We do
if (opts->x_flag_reorder_blocks_and_partition)
SET_OPTION_IF_UNSET (opts, opts_set, flag_reorder_functions, 1);
I guess that needs to be adjusted to disable -freorder-blocks-and-partition
when -freorder-functions is explicitely unset.
section *
default_function_section (tree decl, enum node_frequency freq,
bool startup, bool exit)
{
...
if (!flag_reorder_functions
|| !targetm_common.have_named_sections)
return NULL;
might be the actual issue though (the only user of the flag I can find)