[LLVMbugs] [Bug 11924] New: clang makefile assumes all powerpc systems have altivec
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sat Feb 4 15:30:43 PST 2012
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: unassignedclangbugs at nondot.org
ReportedBy: wala1 at illinois.edu
CC: llvmbugs at cs.uiuc.edu
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.
More information about the llvm-bugs
mailing list