diff options
author | Tristan Gingold | 2015-03-14 07:58:52 +0100 |
---|---|---|
committer | Tristan Gingold | 2015-03-14 07:58:52 +0100 |
commit | f82a4c49a364b78f13bdbecf99bd11cf8734978e (patch) | |
tree | bb9c1a8723f7fa53deadb674a8a897f0fd6ca8ba /src/vhdl/evaluation.adb | |
parent | cf2ab2cf781a5c689739d57097d6da7ea6e710a0 (diff) | |
download | ghdl-f82a4c49a364b78f13bdbecf99bd11cf8734978e.tar.gz ghdl-f82a4c49a364b78f13bdbecf99bd11cf8734978e.tar.bz2 ghdl-f82a4c49a364b78f13bdbecf99bd11cf8734978e.zip |
Disable overflow checks in Eval_Discrete_Range_Length.
To avoid crash when dealing with very large ranges.
Diffstat (limited to 'src/vhdl/evaluation.adb')
-rw-r--r-- | src/vhdl/evaluation.adb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vhdl/evaluation.adb b/src/vhdl/evaluation.adb index c4727ac..9bcc85e 100644 --- a/src/vhdl/evaluation.adb +++ b/src/vhdl/evaluation.adb @@ -2554,6 +2554,8 @@ package body Evaluation is function Eval_Discrete_Range_Length (Constraint : Iir) return Iir_Int64 is + -- We don't want to deal with very large ranges here. + pragma Suppress (Overflow_Check); Res : Iir_Int64; Left, Right : Iir_Int64; begin |