aboutsummaryrefslogtreecommitdiff
path: root/gcc/d
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2019-08-23 13:37:29 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2019-08-23 13:37:29 +0200
commitdf375b0321f9a5360fd04435ee5832c253aa4175 (patch)
treee93a027408faacfc6ec67b5f8767cad3774480cf /gcc/d
parent19566bdda5762ddc769fc848dcad5e1e4abf8d0d (diff)
downloadgcc-df375b0321f9a5360fd04435ee5832c253aa4175.zip
gcc-df375b0321f9a5360fd04435ee5832c253aa4175.tar.gz
gcc-df375b0321f9a5360fd04435ee5832c253aa4175.tar.bz2
re PR middle-end/91283 (gcc.dg/torture/c99-contract-1.c FAILs)
PR middle-end/91283 * common.opt (fexcess-precision=): Add Optimization flag. Use flag_excess_precision variable instead of flag_excess_precision_cmdline. * flags.h (class target_flag_state): Remove x_flag_excess_precision member. (flag_excess_precision): Don't define. * langhooks.c (lhd_post_options): Set flag_excess_precision instead of flag_excess_precision_cmdline. Remove comment. * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision and x_flag_excess_precision instead of frontend_set_flag_excess_precision_cmdline and x_flag_excess_precision_cmdline. (fast_math_flags_set_p): Use x_flag_excess_precision instead of x_flag_excess_precision_cmdline. * toplev.c (init_excess_precision): Remove. (lang_dependent_init_target): Don't call it. ada/ * gcc-interface/misc.c (gnat_post_options): Set flag_excess_precision instead of flag_excess_precision_cmdline. brig/ * brig-lang.c (brig_langhook_post_options): Set flag_excess_precision instead of flag_excess_precision_cmdline. c-family/ * c-common.c (c_ts18661_flt_eval_method): Use flag_excess_precision instead of flag_excess_precision_cmdline. * c-cppbuiltin.c (c_cpp_flt_eval_method_iec_559): Likewise. * c-opts.c (c_common_post_options): Likewise. d/ * d-lang.cc (d_post_options): Set flag_excess_precision instead of flag_excess_precision_cmdline. fortran/ * options.c (gfc_post_options): Set flag_excess_precision instead of flag_excess_precision_cmdline. Remove comment. go/ * go-lang.c (go_langhook_post_options): Set flag_excess_precision instead of flag_excess_precision_cmdline. lto/ * lto-lang.c (lto_post_options): Set flag_excess_precision instead of flag_excess_precision_cmdline. Remove comment. From-SVN: r274850
Diffstat (limited to 'gcc/d')
-rw-r--r--gcc/d/ChangeLog6
-rw-r--r--gcc/d/d-lang.cc4
2 files changed, 8 insertions, 2 deletions
diff --git a/gcc/d/ChangeLog b/gcc/d/ChangeLog
index a7821c2..1013c08 100644
--- a/gcc/d/ChangeLog
+++ b/gcc/d/ChangeLog
@@ -1,3 +1,9 @@
+2019-08-23 Jakub Jelinek <jakub@redhat.com>
+
+ PR middle-end/91283
+ * d-lang.cc (d_post_options): Set flag_excess_precision instead of
+ flag_excess_precision_cmdline.
+
2019-08-20 Iain Buclaw <ibuclaw@gdcproject.org>
PR d/88722
diff --git a/gcc/d/d-lang.cc b/gcc/d/d-lang.cc
index db0db0e..5cdb896 100644
--- a/gcc/d/d-lang.cc
+++ b/gcc/d/d-lang.cc
@@ -772,8 +772,8 @@ d_post_options (const char ** fn)
if (global_options_set.x_flag_max_errors)
global.errorLimit = flag_max_errors;
- if (flag_excess_precision_cmdline == EXCESS_PRECISION_DEFAULT)
- flag_excess_precision_cmdline = EXCESS_PRECISION_STANDARD;
+ if (flag_excess_precision == EXCESS_PRECISION_DEFAULT)
+ flag_excess_precision = EXCESS_PRECISION_STANDARD;
if (global.params.useUnitTests)
global.params.useAssert = true;