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

             Bug #: 11924
           Summary: clang makefile assumes all powerpc systems have
                    altivec
           Product: clang
           Version: unspecified
          Platform: Macintosh
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]
    Classification: Unclassified


Compiling clang 3.0 with g++ 4.4.5 on a PowerPC G3 system (no AltiVec) running
Linux results in a clang binary which crashes when the lexer runs. The problem
is these lines in lib/Lex/Makefile which cause the compiler to compile a
section with AltiVec instructions in Lexer.cpp:

ifeq ($(ARCH),PowerPC)
CXX.Flags += -maltivec
endif

These lines are still in trunk. When I remove them then the compiled binary
runs fine. Not all PowerPC systems have AltiVec support, so these lines should
be removed or replaced with a more intelligent test.

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