On 03/12/2015 03:00 PM, Thomas Sailer wrote:
Another issue. I'm trying to compile ghdl with gcc/gnat 5.0.0. I
succeed getting ghdl1 compiled, but then compiling standard aborts
with an exception. It doesn't matter whether I use the llvm or gcc
backend...
I'm now using this workaround:
--- src/vhdl/evaluation.adb.orig 2015-03-12 15:10:19.489526836 +0100
+++ src/vhdl/evaluation.adb 2015-03-12 15:22:13.476472857 +0100
@@ -2564,6 +2564,9 @@
if Right < Left then
-- Null range.
return 0;
+ elsif Right = 9223372036854775807
+ and then Left = -9223372036854775808 then
+ return 0;
else
Res := Right - Left + 1;
end if;
@@ -2571,6 +2574,9 @@
if Left < Right then
-- Null range
return 0;
+ elsif Left = 9223372036854775807
+ and then Right = -9223372036854775808 then
+ return 0;
else
Res := Left - Right + 1;
end if;
Not a proper fix IMO, but it compiles now with gcc5 and I've not seen
adverse effects so far...
_______________________________________________
Ghdl-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/ghdl-discuss