go-lang.c (go_langhook_init_options_struct): Set frontend_set_flag_errno_math.
authorIan Lance Taylor <iant@google.com>
Tue, 8 Feb 2011 17:53:17 +0000 (17:53 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Tue, 8 Feb 2011 17:53:17 +0000 (17:53 +0000)
* go-lang.c (go_langhook_init_options_struct): Set
frontend_set_flag_errno_math.  Don't set x_flag_trapping_math.

From-SVN: r169931

gcc/go/ChangeLog
gcc/go/go-lang.c

index ff6958abfcccc74a3ca9a79733a1eabb38ddb123..979247a71bc8268ba1ad90f3ccbac8444d5b311a 100644 (file)
@@ -1,3 +1,8 @@
+2011-02-08  Ian Lance Taylor  <iant@google.com>
+
+       * go-lang.c (go_langhook_init_options_struct): Set
+       frontend_set_flag_errno_math.  Don't set x_flag_trapping_math.
+
 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
 
        * gospec.c (lang_specific_driver) [HAVE_LD_STATIC_DYNAMIC] Use
index ef019d33c3d9ebbc413b1a4db5b356224cf29105..b59e72dd700b37e1d547bb1a83fd8ca3f50b28dd 100644 (file)
@@ -149,9 +149,7 @@ go_langhook_init_options_struct (struct gcc_options *opts)
 
   /* The builtin math functions should not set errno.  */
   opts->x_flag_errno_math = 0;
-
-  /* By default assume that floating point math does not trap.  */
-  opts->x_flag_trapping_math = 0;
+  opts->frontend_set_flag_errno_math = true;
 
   /* We turn on stack splitting if we can.  */
   if (targetm.supports_split_stack (false, opts))