From 87c8b4bed31dbbf4708549e10814197cac4d8249 Mon Sep 17 00:00:00 2001 From: Caroline Tice Date: Thu, 31 Mar 2005 06:59:59 -0800 Subject: Fix problems with hot/cold partitioning optimization. From-SVN: r97322 --- gcc/opts.c | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'gcc/opts.c') diff --git a/gcc/opts.c b/gcc/opts.c index 3befb1d..bd971c8 100644 --- a/gcc/opts.c +++ b/gcc/opts.c @@ -669,24 +669,11 @@ decode_options (unsigned int argc, const char **argv) if (flag_exceptions && flag_reorder_blocks_and_partition) { - warning + inform ("-freorder-blocks-and-partition does not work with exceptions"); flag_reorder_blocks_and_partition = 0; flag_reorder_blocks = 1; } - - /* The optimization to partition hot and cold basic blocks into - separate sections of the .o and executable files does not currently - work correctly with DWARF debugging turned on. Until this is fixed - we will disable the optimization when DWARF debugging is set. */ - - if (flag_reorder_blocks_and_partition && write_symbols == DWARF2_DEBUG) - { - warning - ("-freorder-blocks-and-partition does not work with -g (currently)"); - flag_reorder_blocks_and_partition = 0; - flag_reorder_blocks = 1; - } } /* Handle target- and language-independent options. Return zero to -- cgit v1.1