[LLVMbugs] [Bug 10544] New: Darwin (10.7) llvm compiler generates bad code when compiling gcc-4.5.4-linaro for OpenWRT router project

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Jul 31 08:51:18 PDT 2011


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

           Summary: Darwin (10.7) llvm compiler generates bad code when
                    compiling gcc-4.5.4-linaro for OpenWRT router project
           Product: new-bugs
           Version: unspecified
          Platform: PC
        OS/Version: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: joe at roback.cc
                CC: llvmbugs at cs.uiuc.edu


Compiling OpenWRT from trunk for MIPS router, the OpenWRT build systems builds
a toolchain for the MIPS binaries with uClibc-0.9.32 and gcc-4.5.4 with linaro
enhancements. As of Mac OS X 10.7, Apple now defaults to llvm, and it causes
the cross-compiler to fail and the "cfun" global to be NULL in the cross
compiler. (It is like its optimizing it out or something).

No matter what is attempted to be compiled, even a simple hello world, it
results in the same gcc_assert() failing. For example,

libpthread/nptl/sysdeps/unix/sysv/linux/gen_lowlevelbarrier.c:12:1: internal
compiler error: in execute_ipa_pass_list, at passes.c:1804

If I switch back to straight gcc-4.2 by overriding the the CC and CXX
variables, the entire OpenWRT build completes without issue.

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