re PR d/90559 (Out of memory because of negative length)
authorIain Buclaw <ibuclaw@gdcproject.org>
Sun, 16 Jun 2019 07:50:20 +0000 (07:50 +0000)
committerIain Buclaw <ibuclaw@gcc.gnu.org>
Sun, 16 Jun 2019 07:50:20 +0000 (07:50 +0000)
commitb0a55e6657cbb934837b293a9ea2810b1a74c7e0
tree84e3d719a3b7181744a750bb09ccd7984f277ea4
parente5d0ba591e28d8be1fb5775fb0418fee04af17d7
re PR d/90559 (Out of memory because of negative length)

PR d/90559
d/dmd: Merge upstream dmd 7afcc60c3

Partially fixes out of memory because of negative length.

Reviewed-on: https://github.com/dlang/dmd/pull/10025

gcc/d/ChangeLog:

2019-06-16  Iain Buclaw  <ibuclaw@gdcproject.org>

PR d/90559
* d-target.cc (Target::_init): Reduce max static data size to INT_MAX.

From-SVN: r272351
gcc/d/ChangeLog
gcc/d/d-target.cc
gcc/d/dmd/MERGE
gcc/d/dmd/clone.c
gcc/d/dmd/expressionsem.c
gcc/d/dmd/mtype.c
gcc/d/dmd/mtype.h
gcc/testsuite/gdc.test/fail_compilation/staticarrayoverflow.d