diff options
author | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-02-08 17:53:17 +0000 |
---|---|---|
committer | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-02-08 17:53:17 +0000 |
commit | 11a9e74f6a391868da08900024e48143df615232 (patch) | |
tree | b59d2417a00814ce4b67ada5314a750afa88a7ba /gcc/go/go-lang.c | |
parent | ecee1b296d7a3e1bf2a7613eac325a9d761e8a1c (diff) | |
download | gcc-11a9e74f6a391868da08900024e48143df615232.tar.gz |
* go-lang.c (go_langhook_init_options_struct): Set
frontend_set_flag_errno_math. Don't set x_flag_trapping_math.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@169931 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/go/go-lang.c')
-rw-r--r-- | gcc/go/go-lang.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gcc/go/go-lang.c b/gcc/go/go-lang.c index ef019d33c3d..b59e72dd700 100644 --- a/gcc/go/go-lang.c +++ b/gcc/go/go-lang.c @@ -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)) |