[test-suite] disable darwin -force_cpusubtype_ALL option for ppc64-elf-linux
Will Schmidt
will_schmidt at vnet.ibm.com
Mon Mar 18 06:47:55 PDT 2013
We occasionally see gcc throw some unrecognized command line option
errors when working on the test suite on ppc64-elf-linux.
> gcc: error: unrecognized command line option ‘-force_cpusubtype_ALL’
> make[4]: [Output/test1.llc] Error 1 (ignored)
The option is specified in Makefile.programs ; and per the comments
there, it is a darwin specific flag. Thus, should be disabled for
Linux targets.
OK to commit?
Thanks,
-Will
Index: Makefile.programs
===================================================================
--- Makefile.programs (revision 174442)
+++ Makefile.programs (working copy)
@@ -377,8 +377,10 @@
# On darwin, pass -force_cpusubtype_ALL to allow all ppc instructions.
ifeq ($(ARCH),PowerPC)
+ifneq ($TARGET_OS),Linux)
LLCASSEMBLERFLAGS = -force_cpusubtype_ALL
endif
+endif
# On sparc, pass -mcpu=v9 to allow all V9 instructions, even in 32-bit mode.
ifeq ($(ARCH),Sparc)
LLCASSEMBLERFLAGS = -mcpu=v9
-------------- next part --------------
A non-text attachment was scrubbed...
Name: remove_cpusubtype_ALL_from_Makefile.programs.diff
Type: text/x-patch
Size: 503 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130318/68d99fd7/attachment.bin>
More information about the llvm-commits
mailing list