aboutsummaryrefslogtreecommitdiff
path: root/gcc/lto-wrapper.c
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2014-10-07 07:56:43 +0000
committerEric Botcazou <ebotcazou@gcc.gnu.org>2014-10-07 07:56:43 +0000
commita35c1ac710c0bbd03f00380179a375c45c81f08a (patch)
treeddfc6423ea43b158728db7853802890da8621bf1 /gcc/lto-wrapper.c
parent7a0ca710c81d249cf8346eb243120dd6f727b354 (diff)
downloadgcc-a35c1ac710c0bbd03f00380179a375c45c81f08a.zip
gcc-a35c1ac710c0bbd03f00380179a375c45c81f08a.tar.gz
gcc-a35c1ac710c0bbd03f00380179a375c45c81f08a.tar.bz2
lto-opts.c (lto_write_options): Handle -fmath-errno, -fsigned-zeros and -ftrapping-math.
* lto-opts.c (lto_write_options): Handle -fmath-errno, -fsigned-zeros and -ftrapping-math. * lto-wrapper.c (merge_and_complain): Likewise. (run_gcc): Likewise. From-SVN: r215966
Diffstat (limited to 'gcc/lto-wrapper.c')
-rw-r--r--gcc/lto-wrapper.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/gcc/lto-wrapper.c b/gcc/lto-wrapper.c
index 08fd090..8033b15 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: