diff options
author | (no author) <(no author)@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-04-16 23:29:54 +0000 |
---|---|---|
committer | (no author) <(no author)@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-04-16 23:29:54 +0000 |
commit | 26eb0ca8cb9b8bd07b0a909d8e0e00d227e9e635 (patch) | |
tree | 30a2b77321cd9c181f288747e5b68d200f5333d3 /gcc/predict.c | |
parent | 86248a4b2696dd0f45ceabfd239e870ba0d36c89 (diff) |
This commit was manufactured by cvs2svn to create tagapple/gcc-1740
'apple-gcc-1740'.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/tags/apple-gcc-1740@80775 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/predict.c')
-rw-r--r-- | gcc/predict.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/predict.c b/gcc/predict.c index 0069274d0f2..223f43a5455 100644 --- a/gcc/predict.c +++ b/gcc/predict.c @@ -1578,6 +1578,14 @@ choose_function_section (void) of all instances. For now just never set frequency for these. */ || DECL_ONE_ONLY (current_function_decl)) return; + + /* APPLE LOCAL hot/cold partitioning */ + /* If we are doing the partitioning optimization, let the optimization + choose the correct section into which to put things. */ + if (flag_reorder_blocks_and_partition) + return; + /* APPLE LOCAL hot/cold partitioning */ + if (cfun->function_frequency == FUNCTION_FREQUENCY_HOT) DECL_SECTION_NAME (current_function_decl) = build_string (strlen (HOT_TEXT_SECTION_NAME), HOT_TEXT_SECTION_NAME); |