summaryrefslogtreecommitdiff
path: root/gcc/cp/vtable-class-hierarchy.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cp/vtable-class-hierarchy.c')
-rw-r--r--gcc/cp/vtable-class-hierarchy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/cp/vtable-class-hierarchy.c b/gcc/cp/vtable-class-hierarchy.c
index 6da17c73134..3963d733805 100644
--- a/gcc/cp/vtable-class-hierarchy.c
+++ b/gcc/cp/vtable-class-hierarchy.c
@@ -1247,8 +1247,8 @@ vtable_find_or_create_map_decl (tree base_type)
/* Put these mmap variables in thr .vtable_map_vars section, so
we can find and protect them. */
- DECL_SECTION_NAME (var_decl) = build_string (strlen (".vtable_map_vars"),
- ".vtable_map_vars");
+ set_decl_section_name (var_decl, build_string (strlen (".vtable_map_vars"),
+ ".vtable_map_vars"));
DECL_HAS_IMPLICIT_SECTION_NAME_P (var_decl) = true;
DECL_INITIAL (var_decl) = initial_value;