aboutsummaryrefslogtreecommitdiff
path: root/gcc/d/decl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/d/decl.cc')
-rw-r--r--gcc/d/decl.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/d/decl.cc b/gcc/d/decl.cc
index 457894f..d668715 100644
--- a/gcc/d/decl.cc
+++ b/gcc/d/decl.cc
@@ -1663,7 +1663,7 @@ finish_thunk (tree thunk, tree function)
resolve_unique_section (thunk, 0, flag_function_sections);
/* Output the thunk into the same section as function. */
- set_decl_section_name (thunk, DECL_SECTION_NAME (fn));
+ set_decl_section_name (thunk, fn);
symtab_node::get (thunk)->implicit_section
= symtab_node::get (fn)->implicit_section;
}