diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-10-03 19:43:00 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-10-03 19:43:00 +0000 |
commit | bc0c486dac5212fc4ad0e4d2d6c20853415d0031 (patch) | |
tree | ef10f6d6952f059b9d8fb6642af9a15d6198b8d8 /gcc/predict.c | |
parent | 0e26095bdbd8bcb6145d3498ef15954e44f30f5f (diff) | |
download | gcc-bc0c486dac5212fc4ad0e4d2d6c20853415d0031.tar.gz |
* predict.c (choose_function_section): Avoid choice for linkonce functions.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@57785 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/predict.c')
-rw-r--r-- | gcc/predict.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gcc/predict.c b/gcc/predict.c index 7d94deafa8d..844366aeeff 100644 --- a/gcc/predict.c +++ b/gcc/predict.c @@ -1247,7 +1247,12 @@ static void choose_function_section () { if (DECL_SECTION_NAME (current_function_decl) - || !targetm.have_named_sections) + || !targetm.have_named_sections + /* Theoretically we can split the gnu.linkonce text section too, + but this requires more work as the frequency needs to match + for all generated objects so we need to merge the frequency + of all instances. For now just never set frequency for these. */ + || !DECL_ONE_ONLY (current_function_decl)) return; if (cfun->function_frequency == FUNCTION_FREQUENCY_HOT) DECL_SECTION_NAME (current_function_decl) = |