aboutsummaryrefslogtreecommitdiff
path: root/gcc/varpool.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/varpool.c')
-rw-r--r--gcc/varpool.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/varpool.c b/gcc/varpool.c
index 143cd3b..ff67127 100644
--- a/gcc/varpool.c
+++ b/gcc/varpool.c
@@ -582,7 +582,7 @@ varpool_finalize_named_section_flags (varpool_node *node)
&& !DECL_EXTERNAL (node->decl)
&& TREE_CODE (node->decl) == VAR_DECL
&& !DECL_HAS_VALUE_EXPR_P (node->decl)
- && DECL_SECTION_NAME (node->decl))
+ && node->get_section ())
get_variable_section (node->decl, false);
}