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

           Summary: MSIL backend build failure under gcc 4.4
           Product: new-bugs
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: new bugs
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


lib/Target/MSIL/MSILWriter.h contains an anonymous namespace. This header is
included by both MSILWriter.cpp and TargetInfo/MSILTargetInfo.cpp.

With GCC 4.4, TargetInfo/MSILTargetInfo.cpp generates a .o file that includes
undefined symbols for all of the class methods. Since those are never defined
in MSILTargetInfo.cpp, they can never be resolved and we get an undefined
symbol error at link time. (For reference, GCC 4.2 never generates bothers to
emit undef symbols because they're never mentioned outside the declaration.)

The minimal fix is to remove the anonymous namespace in the header, putting the
class declarations into the global space, but we can almost certainly do
something smarter.


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