d: Merge upstream dmd f5638c7b8.
authorIain Buclaw <ibuclaw@gdcproject.org>
Fri, 5 Jun 2020 17:27:29 +0000 (19:27 +0200)
committerIain Buclaw <ibuclaw@gdcproject.org>
Fri, 5 Jun 2020 18:13:50 +0000 (20:13 +0200)
commit0cdc55f5ed881436c49d313b6cead244bdcf0654
treef3ac3c20cabb0912a167dd0aecc8c034b2194fea
parent5094c4400a8687dcf44f5993aee3a88e98519f3b
d: Merge upstream dmd f5638c7b8.

Adds a CHECKENABLE enum, uses it for all contract parameters for
consistency in state checking.

gcc/d/ChangeLog:

* dmd/MERGE: Merge upstream dmd f5638c7b8.
* d-builtins.cc (d_init_versions): Use new CHECKENABLE enum.
* d-codegen.cc (array_bounds_check): Likewise.
(build_frame_type): Likewise.
(get_frameinfo): Likewise.
* d-lang.cc (d_init_options): Likewise.
(d_init_options_struct): Don't initialize x_flag_bounds_check.
(d_handle_option): Use new CHECKENABLE enum.
(d_post_options): Likewise.  Set flag_bounds_check here.
* expr.cc (ExprVisitor::visit(AssertExp *)): Use new CHECKENABLE enum.
gcc/d/d-builtins.cc
gcc/d/d-codegen.cc
gcc/d/d-lang.cc
gcc/d/dmd/MERGE
gcc/d/dmd/expressionsem.c
gcc/d/dmd/func.c
gcc/d/dmd/globals.h
gcc/d/dmd/statementsem.c
gcc/d/expr.cc