diff options
Diffstat (limited to 'gcc/varasm.c')
-rw-r--r-- | gcc/varasm.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/varasm.c b/gcc/varasm.c index da494d69ad8..891d4e06e57 100644 --- a/gcc/varasm.c +++ b/gcc/varasm.c @@ -533,6 +533,9 @@ section * default_function_section (tree decl, enum node_frequency freq, bool startup, bool exit) { + if (!flag_reorder_functions + || !targetm.have_named_sections) + 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. */ |