From 8e8d51622f9c4aca782074532ee563f4c70f2e2f Mon Sep 17 00:00:00 2001 From: Caroline Tice Date: Wed, 25 Aug 2004 19:52:54 +0000 Subject: Add more details to hot/cold partitioning comments and documentation. 2004-08-25 Caroline Tice * bb-reorder.c (partition_hot_cold_basic_blocks): Add more details to comments at start of function. * cfgbuild.c (make_edges): Add more details to hot/cold partitioning comment. * cfgcleanup.c (try_simplify_condjump, try_forward_edges, merge_blocks_move_predecessor_nojumps, merge_blocks_move_successor_nojumps, merge_blocks_move, try_crossjump_to_edge, try_crossjump_bb): Likewise. * cfglayout.c (fixup_reorder_chain): Likewise. * cfgrtl.c (rtl_can_merge_blocks, try_redirect_by_replacing_jump, cfg_layout_can_merge_blocks_p): Likewise. * ifcvt.c (find_if_case_1, find_if_case_2): Likewise. * passes.c (rest_of_compilation): Update comments for calling optimization that partitions hot/cold basic blocks. * doc/invoke.texi: Update documentation of freorder-blocks-and-partition flag. From-SVN: r86570 --- gcc/passes.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'gcc/passes.c') diff --git a/gcc/passes.c b/gcc/passes.c index 7f0aeb6..06c2d89 100644 --- a/gcc/passes.c +++ b/gcc/passes.c @@ -1856,8 +1856,9 @@ rest_of_compilation (void) rest_of_handle_if_after_combine (); /* The optimization to partition hot/cold basic blocks into separate - sections of the .o file does not work well with exception handling. - Don't call it if there are exceptions. */ + sections of the .o file does not work well with linkonce or with + user defined section attributes. Don't call it if either case + arises. */ if (flag_reorder_blocks_and_partition && !DECL_ONE_ONLY (current_function_decl) -- cgit v1.1