[test-suite] disable darwin -force_cpusubtype_ALL option for ppc64-elf-linux
Bill Schmidt
wschmidt at linux.vnet.ibm.com
Mon Mar 18 06:51:17 PDT 2013
LGTM. Thanks for taking care of this...
Bill
On Mon, 2013-03-18 at 08:47 -0500, Will Schmidt wrote:
> 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
>
More information about the llvm-commits
mailing list