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

           Summary: atomic builtin test uses C compiler instead of C++
                    compiler
           Product: new-bugs
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


It uses the C compiler to do the test, and succeeds (atomic builtins
available).
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:
http://lurker.clamav.net/message/20100326.084547.051ffb52.en.html

-- 
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to