summaryrefslogtreecommitdiff
path: root/src/vhdl/evaluation.adb
diff options
context:
space:
mode:
authorTristan Gingold2015-03-14 07:58:52 +0100
committerTristan Gingold2015-03-14 07:58:52 +0100
commitf82a4c49a364b78f13bdbecf99bd11cf8734978e (patch)
treebb9c1a8723f7fa53deadb674a8a897f0fd6ca8ba /src/vhdl/evaluation.adb
parentcf2ab2cf781a5c689739d57097d6da7ea6e710a0 (diff)
downloadghdl-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.adb2
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