]> granicus.if.org Git - esp-idf/commit
cxx: don’t define stubs for __throw_* functions
authorAlexey Gerenkov <alexey@espressif.com>
Tue, 28 Aug 2018 04:22:12 +0000 (12:22 +0800)
committerAnton Maklakov <anton@espressif.com>
Thu, 20 Sep 2018 10:53:15 +0000 (18:53 +0800)
commite0f7e196f250fbcc073f60a8f9f2fc3f511282a0
tree9633bbbcb0716414d7ec45a36de13aebb454d98d
parent43116e6e2d160abf026473118948242e35cef339
cxx: don’t define stubs for __throw_* functions

If exception support is disabled in IDF, and libstdc++ tries to throw
an exception, it will call __cxa_allocate_exception which is replaced
with abort in IDF.

We have a dramatically size reduction of the RO-section in binary when using '__throw_'-stubs in GCC5
In the case of using GCC8, we are faced with 'multiple definition' errors when using '__throw_'-stubs.
Good that we don't have the size problem due to gcc8
components/cxx/cxx_exception_stubs.cpp