aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/darwin.c
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2010-12-12 20:12:08 +0100
committerJan Hubicka <hubicka@gcc.gnu.org>2010-12-12 19:12:08 +0000
commit4a10fb9416cefe050c804006aa77ca4fd6a8e8ab (patch)
tree224d943744c0280beb3d5ed43a18df98b06231cf /gcc/config/darwin.c
parentdcac2e64b306166f78fd8484009268916148a19d (diff)
downloadgcc-4a10fb9416cefe050c804006aa77ca4fd6a8e8ab.zip
gcc-4a10fb9416cefe050c804006aa77ca4fd6a8e8ab.tar.gz
gcc-4a10fb9416cefe050c804006aa77ca4fd6a8e8ab.tar.bz2
varasm.c (default_function_section): Check flag_reorder_functions and targetm.have_named_sections.
* varasm.c (default_function_section): Check flag_reorder_functions and targetm.have_named_sections. * config/darwin.c (darwin_function_section): Check flag_reorder_functions. Co-Authored-By: Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> From-SVN: r167727
Diffstat (limited to 'gcc/config/darwin.c')
-rw-r--r--gcc/config/darwin.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/config/darwin.c b/gcc/config/darwin.c
index 93621ac..8ae6409 100644
--- a/gcc/config/darwin.c
+++ b/gcc/config/darwin.c
@@ -2968,6 +2968,8 @@ section *
darwin_function_section (tree decl, enum node_frequency freq,
bool startup, bool exit)
{
+ if (!flag_reorder_functions)
+ return NULL;
/* Startup code should go to startup subsection unless it is
unlikely executed (this happens especially with function splitting
where we can split away unnecesary parts of static constructors. */