[PATCH 3/4] MSP430: Disable __cxa_atexit

Jozef Lawrynowicz jozef.l@mittosystems.com
Thu Nov 7 21:39:00 GMT 2019


The MSP430 target does not need to support dynamic shared objects so
__cxa_atexit does not need to be used - atexit is sufficient.

Newlib atexit is a fine replacement as it also supports registration of more
than 32 functions.

By not using __cxa_atexit, we can define TARGET_LIBGCC_REMOVE_DSO_HANDLE to
remove the definition of __dso_handle from crtstuff.c, saving code size by
removing the necessity to link in functions to initialize global data in
*every* program.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-MSP430-Disable-__cxa_atexit.patch
Type: text/x-patch
Size: 5200 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20191107/8aed8870/attachment.bin>


More information about the Gcc-patches mailing list