From: Ian Lance Taylor Date: Fri, 15 Feb 2019 00:29:41 +0000 (+0000) Subject: go-backend.c (go_imported_unsafe): Update optimization_default_node. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b90fff0cc04c63d7cf23d689dbf1bc91f799de2c;p=gcc.git go-backend.c (go_imported_unsafe): Update optimization_default_node. * go-backend.c (go_imported_unsafe): Update optimization_default_node. From-SVN: r268921 --- diff --git a/gcc/go/ChangeLog b/gcc/go/ChangeLog index ac2c2e185c9..cb69c8cfb9b 100644 --- a/gcc/go/ChangeLog +++ b/gcc/go/ChangeLog @@ -1,3 +1,8 @@ +2019-02-14 Ian Lance Taylor + + * go-backend.c (go_imported_unsafe): Update + optimization_default_node. + 2019-02-13 Ian Lance Taylor * go-gcc.cc: #include "opts.h". diff --git a/gcc/go/go-backend.c b/gcc/go/go-backend.c index 9422b0d2b8a..aaea330bd8a 100644 --- a/gcc/go/go-backend.c +++ b/gcc/go/go-backend.c @@ -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 ();