On Thu, 2014-01-23 at 22:12 -0500, Brian Davis wrote:
> Brian Drummond wrote:
> >
> >    " GNA dir bug16782:
> >   <snip>
> >    " This application has requested the Runtime to terminate
> >    " it in an unusual way."
> >
> > The test is expected to fail; apparently it fails in the wrong way
> > (some sort of crash where a clean exit is preferred).
> >
> > While that could be improved for 0.32, I don't see it as serious
> > enough to hold up the 0.31 release.
> >
> I would disagree (at least in regards to posting a Windows 
> ghdl-0.31-mcode binary), for the following reasons:
> 
> 1) GHDL should issue an index range check error identifying the 
> offending line of code, as it does in the gcc version.

It doesn't seem to be a crash per se; more like a clean abort but with a
return code that Windows doesn't recognise (it possibly used to, but has
been re-classified as a problem).

The attached patch is intended to allow the simulation to return in a
more conventional manner : can you try it and report?

Thanks,
- Brian
diff -r 805ea23023fc translate/grt/config/win32.c
--- a/translate/grt/config/win32.c	Fri Jan 24 06:55:07 2014 +0100
+++ b/translate/grt/config/win32.c	Fri Jan 24 16:16:02 2014 +0000
@@ -179,7 +179,7 @@
       break;
      
     case EXCEPTION_INT_OVERFLOW:
-      grt_overflow_error ();
+      msg = "overflow_error";
       break;
            
     case EXCEPTION_STACK_OVERFLOW:
_______________________________________________
Ghdl-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/ghdl-discuss

Reply via email to