[LLVMbugs] [Bug 6075] New: Using atomic operations creates multiple, distinct function declarations

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Mon Jan 18 12:43:28 PST 2010


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

           Summary: Using atomic operations creates multiple, distinct
                    function declarations
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Semantic Analyzer
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: dgregor at apple.com
                CC: llvmbugs at cs.uiuc.edu


As reported here:

  http://lists.cs.uiuc.edu/pipermail/cfe-dev/2010-January/007506.html

The following code creates two FunctionDecls for __sync_fetch_and_add, which do
*not* share a canonical declaration:

  void foo() {
   int i;
   __sync_fetch_and_add(&i, 1);
   __sync_fetch_and_add(&i, 1);
  }

We should probably just create one FunctionDecl, or at the very least be
careful to link the FunctionDecls together.


-- 
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