[PATCH v2] IPA: Provide a mechanism to register static DTORs via cxa_atexit.

2021-11-05 Thread Iain Sandoe via Gcc-patches
I tried enabling this on x86-64-linux (just for interest) and it seems to work OK there too - but that testing revealed a thinko that didn’t show with a a normal regstrap. Changes from original post: 1. amended a comment 2. fixed a thinko where I was not allowing for functions declared

Re: [PATCH v2] IPA: Provide a mechanism to register static DTORs via cxa_atexit.

2021-11-05 Thread Iain Sandoe via Gcc-patches
tch. [PATCH v2] IPA: Provide a mechanism to register static DTORs via cxa_atexit. For at least one target (Darwin) the platform convention is to register static destructors (i.e. __attribute__((destructor))) with __cxa_atexit rather than placing them into a list that is run by some other mechani

Re: [PATCH v2] IPA: Provide a mechanism to register static DTORs via cxa_atexit.

2021-11-13 Thread Jan Hubicka via Gcc-patches
gt; a normal regstrap. > > … now with the correct patch. > > [PATCH v2] IPA: Provide a mechanism to register static DTORs via > cxa_atexit. > > For at least one target (Darwin) the platform convention is to > register static destructors (i.e. __attribute__((destructor))