aboutsummaryrefslogtreecommitdiff
path: root/gcc/go
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/go')
-rw-r--r--gcc/go/ChangeLog10
-rw-r--r--gcc/go/Make-lang.in5
-rw-r--r--gcc/go/go-backend.c3
-rw-r--r--gcc/go/go-lang.c3
4 files changed, 17 insertions, 4 deletions
diff --git a/gcc/go/ChangeLog b/gcc/go/ChangeLog
index a5e56b1..20385d1 100644
--- a/gcc/go/ChangeLog
+++ b/gcc/go/ChangeLog
@@ -1,3 +1,13 @@
+2011-06-14 Joseph Myers <joseph@codesourcery.com>
+
+ * Make-lang.in (go/go-lang.o, go/go-backend.o): Update
+ dependencies.
+ * go-backend.c: Include common/common-target.h.
+ (go_write_export_data): Use targetm_common.have_named_sections.
+ * go-lang.c: Include common/common-target.h.
+ (go_langhook_init_options_struct): Use
+ targetm_common.supports_split_stack.
+
2011-06-13 Ian Lance Taylor <iant@google.com>
* Make-lang.in (go/expressions.o): Depend on $(GO_RUNTIME_H).
diff --git a/gcc/go/Make-lang.in b/gcc/go/Make-lang.in
index 51760bf..26c1619 100644
--- a/gcc/go/Make-lang.in
+++ b/gcc/go/Make-lang.in
@@ -224,13 +224,14 @@ GO_IMPORT_H = go/gofrontend/import.h go/gofrontend/export.h
GO_RUNTIME_H = go/gofrontend/runtime.h go/gofrontend/runtime.def
go/go-backend.o: go/go-backend.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
- $(TM_H) $(RTL_H) $(TREE_H) $(TM_P_H) output.h $(TARGET_H)
+ $(TM_H) $(RTL_H) $(TREE_H) $(TM_P_H) output.h $(TARGET_H) \
+ $(COMMON_TARGET_H)
go/go-lang.o: go/go-lang.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(OPTS_H) \
$(TREE_H) $(GIMPLE_H) $(GGC_H) $(TOPLEV_H) debug.h options.h \
$(FLAGS_H) convert.h $(DIAGNOSTIC_H) langhooks.h \
$(LANGHOOKS_DEF_H) $(EXCEPT_H) $(TARGET_H) $(GO_C_H) \
- gt-go-go-lang.h gtype-go.h
+ gt-go-go-lang.h gtype-go.h $(COMMON_TARGET_H)
$(COMPILER) $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) \
-DDEFAULT_TARGET_VERSION=\"$(version)\" \
-DDEFAULT_TARGET_MACHINE=\"$(target_noncanonical)\" \
diff --git a/gcc/go/go-backend.c b/gcc/go/go-backend.c
index 60a97db..62102a2 100644
--- a/gcc/go/go-backend.c
+++ b/gcc/go/go-backend.c
@@ -26,6 +26,7 @@ along with GCC; see the file COPYING3. If not see
#include "tm_p.h"
#include "output.h"
#include "target.h"
+#include "common/common-target.h"
#include "go-c.h"
@@ -103,7 +104,7 @@ go_write_export_data (const char *bytes, unsigned int size)
if (sec == NULL)
{
- gcc_assert (targetm.have_named_sections);
+ gcc_assert (targetm_common.have_named_sections);
sec = get_section (".go_export", SECTION_DEBUG, NULL);
}
diff --git a/gcc/go/go-lang.c b/gcc/go/go-lang.c
index 4687c6e..576e35f 100644
--- a/gcc/go/go-lang.c
+++ b/gcc/go/go-lang.c
@@ -35,6 +35,7 @@ along with GCC; see the file COPYING3. If not see
#include "langhooks-def.h"
#include "except.h"
#include "target.h"
+#include "common/common-target.h"
#include <mpfr.h>
@@ -143,7 +144,7 @@ go_langhook_init_options_struct (struct gcc_options *opts)
opts->frontend_set_flag_errno_math = true;
/* We turn on stack splitting if we can. */
- if (targetm.supports_split_stack (false, opts))
+ if (targetm_common.supports_split_stack (false, opts))
opts->x_flag_split_stack = 1;
/* Exceptions are used to handle recovering from panics. */