diff options
author | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-08-06 16:40:09 +0000 |
---|---|---|
committer | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-08-06 16:40:09 +0000 |
commit | 66b3edb83f7a5f6d555be6c3f33041984de767c1 (patch) | |
tree | 5d8b8bdff4ff7fee1bad0c7056b8f8b7568763c1 /gcc/go | |
parent | 1f7747bdd19378ccc7df852c1f4693f197373428 (diff) | |
download | gcc-66b3edb83f7a5f6d555be6c3f33041984de767c1.tar.gz |
* go-gcc.cc (Gcc_backend::immutable_struct_set_init): Use
compute_reloc_for_constant.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201535 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/go')
-rw-r--r-- | gcc/go/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/go/go-gcc.cc | 4 |
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/go/ChangeLog b/gcc/go/ChangeLog index f0317c4a473..d2997de3da8 100644 --- a/gcc/go/ChangeLog +++ b/gcc/go/ChangeLog @@ -1,3 +1,8 @@ +2013-08-06 Ian Lance Taylor <iant@google.com> + + * go-gcc.cc (Gcc_backend::immutable_struct_set_init): Use + compute_reloc_for_constant. + 2013-08-02 Ian Lance Taylor <iant@google.com> * go-gcc.cc (immutable_struct_set_init): Always call diff --git a/gcc/go/go-gcc.cc b/gcc/go/go-gcc.cc index 50dbb3128f1..1ecfaffd73a 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); } |