diff options
author | Caroline Tice <ctice@apple.com> | 2005-04-09 20:41:49 +0000 |
---|---|---|
committer | Caroline Tice <ctice@gcc.gnu.org> | 2005-04-09 13:41:49 -0700 |
commit | e5e625da47c6215bb0075bfdf7da3a7595d16a32 (patch) | |
tree | ec3765f0365ed2285df397e3dba04f4164e18760 /gcc/opts.c | |
parent | bd0e28a2adf23055c04afb46a8cda62bc02265b1 (diff) | |
download | gcc-e5e625da47c6215bb0075bfdf7da3a7595d16a32.tar.gz |
Fix problems with labels with hot/cold partitioning.
From-SVN: r97928
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 |