aboutsummaryrefslogtreecommitdiff
path: root/gcc/go/go-gcc.cc
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2013-08-06 16:40:09 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2013-08-06 16:40:09 +0000
commite086adbdb433ea655c8bf0bdcd210baa5a0a63f6 (patch)
tree5d8b8bdff4ff7fee1bad0c7056b8f8b7568763c1 /gcc/go/go-gcc.cc
parent15682f2418221ee45ebf9fd2c4803fb179060c42 (diff)
downloadgcc-e086adbdb433ea655c8bf0bdcd210baa5a0a63f6.zip
gcc-e086adbdb433ea655c8bf0bdcd210baa5a0a63f6.tar.gz
gcc-e086adbdb433ea655c8bf0bdcd210baa5a0a63f6.tar.bz2
go-gcc.cc (Gcc_backend::immutable_struct_set_init): Use compute_reloc_for_constant.
* go-gcc.cc (Gcc_backend::immutable_struct_set_init): Use compute_reloc_for_constant. From-SVN: r201535
Diffstat (limited to 'gcc/go/go-gcc.cc')
-rw-r--r--gcc/go/go-gcc.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/go/go-gcc.cc b/gcc/go/go-gcc.cc
index 50dbb31..1ecfaff 100644
--- a/gcc/go/go-gcc.cc
+++ b/gcc/go/go-gcc.cc
@@ -1525,7 +1525,9 @@ Gcc_backend::immutable_struct_set_init(Bvariable* var, const std::string&,
// These variables are often unneeded in the final program, so put
// them in their own section so that linker GC can discard them.
- resolve_unique_section(decl, 1, 1);
+ resolve_unique_section(decl,
+ compute_reloc_for_constant (init_tree),
+ 1);
rest_of_decl_compilation(decl, 1, 0);
}