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

            Bug ID: 104374
           Summary: attributes for signal safety and signal handling
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: other
          Assignee: unassigned at gcc dot gnu.org
          Reporter: crrodriguez at opensuse dot org
  Target Milestone: ---

It will be nice that a set of function attributes like:

__attribute__((signal_handler)) (since "signal" is already used in the AVR
port) for sa_handler function 

and

__attribute__(("async-signal-safe")) --> for use with gcc builtins and the C
library to annotate functions that either ought to be signal safe according to
the standards or user defined.

SO -Wall could warn about for example using stdio on a signal handler or
similar bugs.

Reply via email to