go-backend.c (go_imported_unsafe): Update optimization_default_node.
authorIan Lance Taylor <iant@golang.org>
Fri, 15 Feb 2019 00:29:41 +0000 (00:29 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Fri, 15 Feb 2019 00:29:41 +0000 (00:29 +0000)
* go-backend.c (go_imported_unsafe): Update
optimization_default_node.

From-SVN: r268921

gcc/go/ChangeLog
gcc/go/go-backend.c

index ac2c2e1..cb69c8c 100644 (file)
@@ -1,3 +1,8 @@
+2019-02-14  Ian Lance Taylor  <iant@golang.org>
+
+       * go-backend.c (go_imported_unsafe): Update
+       optimization_default_node.
+
 2019-02-13  Ian Lance Taylor  <iant@golang.org>
 
        * go-gcc.cc: #include "opts.h".
index 9422b0d..aaea330 100644 (file)
@@ -89,6 +89,7 @@ void
 go_imported_unsafe (void)
 {
   flag_strict_aliasing = false;
+  TREE_OPTIMIZATION (optimization_default_node)->x_flag_strict_aliasing = false;
 
   /* Let the backend know that the options have changed.  */
   targetm.override_options_after_change ();