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

            Bug ID: 128828
           Summary: RFE: support capability systems (aka clang's "Thread
                    Safety Analysis"; Linux kernel's "Compiler-Based
                    Context Analysis")
           Product: gcc
           Version: 17.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: analyzer
          Assignee: dmalcolm at gcc dot gnu.org
          Reporter: dmalcolm at gcc dot gnu.org
  Target Milestone: ---

clang implements a compile-time checking feature it calls "Thread Safety
Analysis":
  https://clang.llvm.org/docs/ThreadSafetyAnalysis.html

based on "Capability Systems", see 
  "Typed Memory Management in a Calculus of Capabilities"
     https://www.cs.cornell.edu/talc/papers/capabilities.pdf

Linux uses it to implement what it calls "Compiler-Based Context Analysis":
  https://docs.kernel.org/dev-tools/context-analysis.html
to get compile-time checking of things like mutex-handling within the kernel.

It would be nice to support this checking from GCC also, so I'm filing this
RFE.  I'm arbitrarily picking "analyzer" as the component for now, but I don't
know if that would be the best place to implement it.  It might also need
front-end support (I don't know yet).

Reply via email to