Compiling libstdc++-v3 without the testsuite

Peter-Frank Spierenburg peter@spierepf.dyndns.org
Sat Dec 4 05:34:00 GMT 2004


Thanks Paolo,

Your info helped greatly. I had to alter testsuite_abi.cc and 
testsuite_hooks.cc to get it to work.

Thanks again,

Peter.



Paolo Carlini wrote:

> Hi,
>
>> Greetings,
>>
>> I am attempting to build a g++ cross-compiler without support for 
>> exceptions. My problem is that the libstdc++-v3 testsuite uses the 
>> throw() statement in about a million places and therefore refuses to 
>> compile. Is there a ./configure time option which prevents 
>> compilation of the testsuite? I cannot find one in the docs.
>>  
>>
> If I understand correctly your problem, in principle you only need to 
> pass
> -fno-exceptions at build time, as part of the CXXFLAGS.
>
> *But* I see that probably recently we are not testing sufficiently 
> with that option
> and you may need to fix locally a bit the code (we'll take care of 
> those issues
> ASAP): have a look to libstdc++-v3/libsupc++/exceptions_define.h, the 
> idea
> is that in principle we should never use naked throw, 
> __throw_exception_again
> instead. For me, 3.4.x works out of the box by just fixing a couple of 
> naked throw
> in testsuite_abi.cc.
>
> I hope you will find this info useful, maybe others more expert than 
> me in this
> area can give you other suggestions.
>
> Paolo.



More information about the Libstdc++ mailing list