Re: libstdc++ not handling exception for sh4 architecture

Oleg Endo <[email protected]>
Newsgroups gmane.linux.debian.ports.superh,gmane.linux.debian.devel.toolchain
Message-ID <[email protected]>
On 16 Aug 2015, at 20:49, John Paul Adrian Glaubitz <[email protected]> wrote:

> Hello!
> 
> On 07/25/2015 09:02 AM, Rahul Dhobi wrote:
>> I'm using *gcc4.9 sh4 toolchain* from
>> http://download.si-linux.co.jp/debian-sh/jessie-sh4/toolchain-amd64/gcc-4.9/
> 
> This is not part of Debian, so we can't really support it! In any case,
> please make sure you use a current snapshot of either gcc-4.9 or gcc-5
> as many bugs in the SH backend were fixed recently.
> 
>> , During testing I have found that libstdc++ is not handling exception
>> and program receives  *SIGABRT* signal. 
> Works as expected here:

It's also working on a plain sh-elf/newlib configuration with unmodified vanilla versions of all the parts of the toolchain.  There are many ways how to disable or break exception handling.  I would start looking at the GCC configure options that were used to build the toolchain.  Then maybe also check the linker script.

Cheers,
Oleg
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.