[LLVMbugs] [Bug 6711] New: atomic builtin test uses C compiler instead of C++ compiler

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Mar 26 01:47:15 PDT 2010


           Summary: atomic builtin test uses C compiler instead of C++
           Product: new-bugs
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: edwintorok at gmail.com
                CC: llvmbugs at cs.uiuc.edu

It uses the C compiler to do the test, and succeeds (atomic builtins
At build time it fails to link with missing symbols for
__sync_val_compare_and_swap_4, because it uses the C++ compiler for linking
(and that is not what configure tested).

This happens if you build with CFLAGS != CXXFLAGS, and CFLAGS sets the target
architecture to something that supports atomic builtins, while CXXFLAGS stays
at the default (i386?) that doesn't support it.

See here for more details:

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