PATCH: Factor __aeabi_atexit into its own object file

Mark Mitchell mark@codesourcery.com
Tue May 8 04:09: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...

How about this patch, as a solution?  (To replace the quick hack I
checked in when you reported this to me.)

-- 
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cxa_atexit_nothrow.patch
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20070508/32b2e8ea/attachment.ksh>


More information about the Gcc-patches mailing list