|
From: | Georg-Johann Lay |
Subject: | Re: [avr-gcc-list] using exceptions |
Date: | Sun, 29 Apr 2012 01:07:22 +0200 |
User-agent: | Mozilla Thunderbird 1.0.7 (Windows/20050923) |
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. 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
[Prev in Thread] | Current Thread | [Next in Thread] |