go-backend.c: Don't #include "rtl.h".
authorIan Lance Taylor <iant@google.com>
Tue, 23 Jul 2013 16:14:13 +0000 (16:14 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Tue, 23 Jul 2013 16:14:13 +0000 (16:14 +0000)
* go-backend.c: Don't #include "rtl.h".
(go_imported_unsafe): Don't call init_varasm_once.
* Make-lang.in (go/go-backend.o): Don't depend on $(RTL_H).

From-SVN: r201176

gcc/go/ChangeLog
gcc/go/Make-lang.in
gcc/go/go-backend.c

index dc2a6a7adddbb0f72e5bc83550187ecf3c272d14..ea82d35f83e50c0e1592d59e7fbd88e13863151e 100644 (file)
@@ -1,3 +1,9 @@
+2013-07-23  Ian Lance Taylor  <iant@google.com>
+
+       * go-backend.c: Don't #include "rtl.h".
+       (go_imported_unsafe): Don't call init_varasm_once.
+       * Make-lang.in (go/go-backend.o): Don't depend on $(RTL_H).
+
 2013-07-23  Ian Lance Taylor  <iant@google.com>
 
        * go-lang.c: Don't #include "except.h".
index 159bf9c524cff0977d7cb55870ffeb1bea44a6a6..3cb18d6adcf38a0727b8e206b7cee0f225666818 100644 (file)
@@ -240,7 +240,7 @@ GO_RUNTIME_H = go/gofrontend/runtime.h go/gofrontend/runtime.def
 GO_AST_DUMP_H = go/gofrontend/ast-dump.h go/gofrontend/string-dump.h
 
 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) $(TREE_H) $(TM_P_H) output.h $(TARGET_H) \
        $(COMMON_TARGET_H)
 
 CFLAGS-go/go-lang.o += -DDEFAULT_TARGET_VERSION=\"$(version)\" \
index ea47138a597940ee26f96b053ad5776bf2cd3fe0..c3ffa3b1deaf59776fc94321bc716142f9554dc0 100644 (file)
@@ -22,7 +22,6 @@ along with GCC; see the file COPYING3.  If not see
 #include "coretypes.h"
 #include "simple-object.h"
 #include "tm.h"
-#include "rtl.h"
 #include "tree.h"
 #include "tm_p.h"
 #include "intl.h"
@@ -91,12 +90,6 @@ go_imported_unsafe (void)
 {
   flag_strict_aliasing = false;
 
-  /* This is a real hack.  init_varasm_once has already grabbed an
-     alias set, which we don't want when we aren't doing strict
-     aliasing.  We reinitialize to make it do it again.  This should
-     be OK in practice since we haven't really done anything yet.  */
-  init_varasm_once ();
-
   /* Let the backend know that the options have changed.  */
   targetm.override_options_after_change ();
 }