diff options
Diffstat (limited to 'gcc/opts.c')
-rw-r--r-- | gcc/opts.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -678,6 +678,15 @@ decode_options (unsigned int argc, const char **argv) flag_reorder_blocks_and_partition = 0; flag_reorder_blocks = 1; } + + if (flag_reorder_blocks_and_partition + && !targetm.have_named_sections) + { + inform + ("-freorder-blocks-and-partition does not work on this architecture."); + flag_reorder_blocks_and_partition = 0; + flag_reorder_blocks = 1; + } } /* Handle target- and language-independent options. Return zero to |