_Unwind_Resume() references in libgcc division functions

Jakub Jelinek jakub@redhat.com
Tue Jun 21 13:24:16 GMT 2022


On Tue, Jun 21, 2022 at 03:13:19PM +0200, Sebastian Huber wrote:
> Hello,
> 
> I noticed that several division related routines provided by libgcc such as
> __divdi3, __moddi3 and __umoddi3 have references to _Unwind_Resume for the
> sparc-rtems target. For example:

That is because:

ifeq ($(LIB2_DIVMOD_EXCEPTION_FLAGS),)
# Provide default flags for compiling divmod functions, if they haven't been
# set already by a target-specific Makefile fragment.
LIB2_DIVMOD_EXCEPTION_FLAGS := -fexceptions -fnon-call-exceptions
endif

which is there so that e.g. Ada or other -fnon-call-exceptions languages can
have properly working divisions.

	Jakub



More information about the Gcc mailing list