aboutsummaryrefslogtreecommitdiff
path: root/gcc/d/d-lang.cc
diff options
context:
space:
mode:
authorIain Buclaw <ibuclaw@gdcproject.org>2020-06-09 18:56:52 +0200
committerIain Buclaw <ibuclaw@gdcproject.org>2020-06-09 19:00:35 +0200
commit98866120092edfd7d5a7ae008db960dae8ab1523 (patch)
tree5f8f01e69a689ae4b8d2ff66d380767a30806c8f /gcc/d/d-lang.cc
parentef41587df9839d1dfc77dbc48a0830e42b36626e (diff)
downloadgcc-98866120092edfd7d5a7ae008db960dae8ab1523.zip
gcc-98866120092edfd7d5a7ae008db960dae8ab1523.tar.gz
gcc-98866120092edfd7d5a7ae008db960dae8ab1523.tar.bz2
d: Merge upstream dmd 13d67c575.
Reviewed-on: https://github.com/dlang/dmd/pull/11224 gcc/d/ChangeLog: * dmd/MERGE: Merge upstream dmd 13d67c575. * d-builtins.cc (build_frontend_type): Update call to TypeVector::create. * d-frontend.cc (Global::_init): Move setting of errorLimit to ... * d-lang.cc (d_init_options): ... here. Update for new field location of errorLimit. (d_post_options): Likewise. * d-port.cc (Port::readwordLE): Update signature. (Port::readwordBE): Likewise. (Port::readlongLE): Likewise. (Port::readlongBE): Likewise. * decl.cc (get_symbol_decl): Update for new field types.
Diffstat (limited to 'gcc/d/d-lang.cc')
-rw-r--r--gcc/d/d-lang.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/d/d-lang.cc b/gcc/d/d-lang.cc
index 2bc0def..badd67f 100644
--- a/gcc/d/d-lang.cc
+++ b/gcc/d/d-lang.cc
@@ -293,6 +293,7 @@ d_init_options (unsigned int, cl_decoded_option *decoded_options)
global.params.hdrStripPlainFunctions = true;
global.params.betterC = false;
global.params.allInst = false;
+ global.params.errorLimit = flag_max_errors;
/* Default extern(C++) mangling to C++14. */
global.params.cplusplus = CppStdRevisionCpp14;
@@ -793,7 +794,7 @@ d_post_options (const char ** fn)
/* Make -fmax-errors visible to frontend's diagnostic machinery. */
if (global_options_set.x_flag_max_errors)
- global.errorLimit = flag_max_errors;
+ global.params.errorLimit = flag_max_errors;
if (flag_excess_precision == EXCESS_PRECISION_DEFAULT)
flag_excess_precision = EXCESS_PRECISION_STANDARD;