PATCH: Factor __aeabi_atexit into its own object file

Mark Mitchell mark@codesourcery.com
Sat May 5 00:40:00 GMT 2007


Paolo Carlini wrote:
> Hi Mark,
> 
>> ===================================================================
>> --- libstdc++-v3/libsupc++/cxxabi.h    (revision 170155)
>> +++ libstdc++-v3/libsupc++/cxxabi.h    (working copy)
>> @@ -136,7 +136,7 @@ namespace __cxxabiv1
>>
>>   // DSO destruction.
>>   int
>> -  __cxa_atexit(void (*)(void*), void*, void*);
>> +  __cxa_atexit(void (*)(void*), void*, void*) throw ();
>>
> because of this change, abi/header_cxxabi.c is now failing. I'm not sure
> to remember the whole story, but certainly the header isn't C++-only, as
> the various #ifdef __cplusplus clearly show...

Doh.  I'm not sure why I didn't see that.

I've put the exception specifier under #ifdef __cplusplus, and checked
that in.  However, I don't have time to test that properly tonight.  So,
 I'll certainly preapprove reverting the entire patch if that's most
convenient.

Sorry,

-- 
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713



More information about the Gcc-patches mailing list