https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115735
--- Comment #14 from Gabriel Ravier <gabravier at gmail dot com> --- __attribute((async_signal_unsafe)) certainly seems quite useful (that is, like many attributes it avoids having to rely on massive cross-TU analysis for something we'd want to be able to do without -flto), but I do wonder whether __attribute((async_signal_safe)) would be equally or more useful (IMO I'd think so - it would seem to be like it'd be more common to want that as a way to ensure one is writing a signal handler that one can know does *not* call an unsafe function according to the attributes, if one of the two should be chosen over the over I'd take `async_signal_safe` any day of the week, though I wouldn't be against having both either, if e.g. having a specific toggle-able warning option for "function not marked either of these is called" seems useful) ...also, I do recall __attribute__((signal)) having pretty special codegen properties ? Quite good idea too but AIUI it should probably be like __attribute__((signal_handler)) to avoid having a really weird conflict/overload
