https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114968

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |10walls at gmail dot com,
                   |                            |jakub at gcc dot gnu.org,
                   |                            |jason at gcc dot gnu.org

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Guess you need to add a target hook next to use_aeabi_atexit and
use_atexit_for_cxa_atexit which returns attributes that should be added to a
FUNCTION_TYPE constructed by get_atexit_fn_ptr_type (build_function_type_list
returns a shared type, so if attributes are to be added, it needs to go on a
variant of the type.

On all but mingw ia32 it shouldn't add anything, and guess it shouldn't be done
if
!flag_use_cxa_atexit || !targetm.cxx.use_atexit_for_cxa_atexit ()
A question is what to do about the __tcf_* cleanup functions that might be
sometimes created.

Anyway, seems to be primarily mingw maintainer responsibility given that it is
the only target with such requirements.

Reply via email to