[LLVMbugs] [Bug 8176] New: Warn about global destructors for static locals on platforms that don't use __cxa_atexit

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Sep 17 22:20:17 PDT 2010


http://llvm.org/bugs/show_bug.cgi?id=8176

           Summary: Warn about global destructors for static locals on
                    platforms that don't use __cxa_atexit
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: rjmccall at apple.com
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


On platforms that don't use __cxa_atexit, or when use of that function has been
specifically disabled, static locals are implemented using global destructors
that test the initialization guard to determine if the global was initialized. 
On these platforms, -Wglobal-constructors should warn about static local
variables that require a destructor.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list