[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] using exceptions

From: Gabriel Dos Reis
Subject: Re: [avr-gcc-list] using exceptions
Date: Sun, 29 Apr 2012 10:32:55 -0500

On Sat, Apr 28, 2012 at 6:07 PM, Georg-Johann Lay <address@hidden> wrote:
> Kövesdi György schrieb:
>> I am using avr-g++ for building my projects for avr and i am happy with
>> it. :-)
>> But i would need exception support, and could not find how to get it work.
>> :-(
>> I found some mails in the archive (dated many years ago) about possibility
>> of
>> building libstdc++ or libsupc++ with exception support, but could not find
>> how to do it. Reportedly it uses 10...20 kbytes of text, which would be
>> acceptable.
>> Currently i have gcc 4.6.2 sources, and have tried the options
>> --enable-sjlj-exceptions,
>> --with-exceptions, --with-rtti, --enable-libstdc++, etc... no one helped.
> libstdc++ is turned off in configury, for example configure.ac reads
> # Disable libstdc++-v3 for some systems.
> case "${target}" in
>  [...]
>  avr-*-*)
>    noconfigdirs="$noconfigdirs target-libstdc++-v3"
>    ;;
> esac
> This is current trunk. There were some changes not very long ago.

Would it be reasonable to expect at least libsupc++?  That would be
a useful start...

> Anyway, you may want to use something like
> $ grep -lr avr .
> to find and inspect all the places where avr-configury is special.
> If you get it to build, I'd recomment that you run the C++ testsuite
> to ensure that you got a reasonably working library that is not
> completely useless because, e.g. of missing support in the avr backend.
> As C++ is not completely functional for avr, I don't know if there is
> anything missing in the avr backend like for exceptions, unwind, etc.
> and if the compiler is fit enough to build llibstdc++.
> For questions in that field the address@hidden mailing list is
> a better place than here...
> Good luck
> Johann
> _______________________________________________
> AVR-GCC-list mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/avr-gcc-list

reply via email to

[Prev in Thread] Current Thread [Next in Thread]