[gccsdk] C++ exceptions not working with GCCSDK 4.7

Lee Noar leenoar at sky.com
Thu Aug 28 10:41:26 PDT 2014


On 18/08/14 08:44, alan buckley wrote:
>  > On Sat, 16 Aug 2014 14:25:24 +0100 Lee Noar wrote:
>  >
>  > On 15/08/14 14:59, Alan Buckley wrote:
>  > > I seem to be having a problem with programs not catching C++ exceptions
>  > > when compiled with GCCSDK 4.7.
>  >
>  > [snip]
>  >
>  > > Can anyone else confirm this isn’t working?
>  >
>  > I can't reproduce this. I've tried both the cross compiler and the
>  > native compiler running in RPCEmu which I also use to run the result.
>  >
>  > It looks like the same thing that Duncan reported in bug#256 (which I
>  > can't reproduce either).
>  >
>  > Are you running in VirtualRPC by any chance?
>  >
>
> I'm running on RPCEmu (the latest release) with RISC OS 4.02 (from the
> nearly
> free product from ROL) with the Castle 32 bit System installed.

Turned out to be a 26/32bit problem, hence why it works in RISC OS 5,
but not 4. The PSR bits were being interpreted as part of an address
when searching for exception handlers.

Should be fixed with r6737.

Lee.





More information about the gcc mailing list