diff options
author | ebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-10-07 07:56:43 +0000 |
---|---|---|
committer | ebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-10-07 07:56:43 +0000 |
commit | 3b68434490a85265312e4b0a0c4153c5ac05ca7d (patch) | |
tree | ddfc6423ea43b158728db7853802890da8621bf1 /gcc/lto-wrapper.c | |
parent | 224bdd518eae3c5b48c0f10988f2e520a6546685 (diff) |
* lto-opts.c (lto_write_options): Handle -fmath-errno, -fsigned-zeros
and -ftrapping-math.
* lto-wrapper.c (merge_and_complain): Likewise.
(run_gcc): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@215966 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/lto-wrapper.c')
-rw-r--r-- | gcc/lto-wrapper.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/gcc/lto-wrapper.c b/gcc/lto-wrapper.c index 08fd090588f..8033b155baa 100644 --- a/gcc/lto-wrapper.c +++ b/gcc/lto-wrapper.c @@ -261,6 +261,9 @@ merge_and_complain (struct cl_decoded_option **decoded_options, (*decoded_options)[j] = *foption; break; + case OPT_fmath_errno: + case OPT_fsigned_zeros: + case OPT_ftrapping_math: case OPT_fwrapv: /* For selected options we can merge conservatively. */ for (j = 0; j < *decoded_options_count; ++j) @@ -268,7 +271,10 @@ merge_and_complain (struct cl_decoded_option **decoded_options, break; if (j == *decoded_options_count) append_option (decoded_options, decoded_options_count, foption); - /* -fwrapv > -fno-wrapv. */ + /* -fmath-errno > -fno-math-errno, + -fsigned-zeros > -fno-signed-zeros, + -ftrapping-math -> -fno-trapping-math, + -fwrapv > -fno-wrapv. */ else if (foption->value > (*decoded_options)[j].value) (*decoded_options)[j] = *foption; break; @@ -502,6 +508,9 @@ run_gcc (unsigned argc, char *argv[]) case OPT_fpcc_struct_return: case OPT_fshort_double: case OPT_ffp_contract_: + case OPT_fmath_errno: + case OPT_fsigned_zeros: + case OPT_ftrapping_math: case OPT_fwrapv: case OPT_ftrapv: case OPT_fstrict_overflow: |