Fix __cxa_begin_cleanup return value

Vladimir Prus vladimir@codesourcery.com
Fri Jun 16 10:02:00 GMT 2006


Hello!
The ARM ABI specifies that __cxa_begin_cleanup should return 'true' on sucess, 
and 'false' on error. At the moment, however, it returns true is exception is 
not native, and false otherwise.

It does not cause any problems with gcc, since the return value of 
__cxa_begin_cleanup is not tested, but causes problem with third-party tools.

The attached patch fixes it by making __cxa_begin_cleanup always return 
'true'.

Tested with cross to arm-none-linux-gnueabi, no regressions.

2006-16-06  Vladimir Prus  <vladimir@codesourcery.com>

	* libsupc++/eh_arm.cc (__cxa_begin_cleanup): Always return 'true'.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: cxa_begin_cleanup.diff
Type: text/x-diff
Size: 447 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20060616/a3a92622/attachment.bin>


More information about the Gcc-patches mailing list