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 ac2c2e185c96b4b7d1c920079182f54b64c43942..cb69c8cfb9bff678c91bb4ffbe0e37121928a05d 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 9422b0d2b8a7b65652cb4f5c7571a361df8fea15..aaea330bd8ad0bcc6144076d9de15b2bbd20b727 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 ();