diff options
Diffstat (limited to 'gcc/opts.c')
-rw-r--r-- | gcc/opts.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/opts.c b/gcc/opts.c index 70a9b22ac5b..c2cf1251cc9 100644 --- a/gcc/opts.c +++ b/gcc/opts.c @@ -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 |