Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Jan 2016 13:11:23 +0100
From:      Roman Divacky <rdivacky@vlakno.cz>
To:        Mark Millard <markmi@dsl-only.net>
Cc:        FreeBSD PowerPC ML <freebsd-ppc@freebsd.org>, FreeBSD Toolchain <freebsd-toolchain@freebsd.org>
Subject:   Re: -mllvm -disable-ppc-float-in-variadic=true not recognized by clang 3.8.0; used in kern.mk for TARGET_ARCH=powerpc; more
Message-ID:  <20160119121123.GA15094@vlakno.cz>
In-Reply-To: <8100D2B8-175D-4372-AEFB-6DF25889BD20@dsl-only.net>
References:  <8100D2B8-175D-4372-AEFB-6DF25889BD20@dsl-only.net>

next in thread | previous in thread | raw e-mail | index | archive | help

clang 3.8 support soft-float on PPC natively, no need for the 
-mllvm -disable-ppc-float-in-variadic=true hack anymore.

Roman

On Fri, Jan 15, 2016 at 11:07:59PM -0800, Mark Millard wrote:
> At least for amd64 clang 3.8.0 -> powerpc via TARGET_ARCH=powerpc buildkernel I get the following clang command line options that stop the build attempt. . .
> 
> 
> In sys/conf/kern.mk :
> 
> The "CFLAGS.clang+=  -mllvm -disable-ppc-float-in-variadic=true" line in
> 
> > .if ${MACHINE_CPUARCH} == "powerpc"
> > CFLAGS+=        -mno-altivec
> > CFLAGS.clang+=  -mllvm -disable-ppc-float-in-variadic=true
> > CFLAGS.gcc+=    -msoft-float
> > INLINE_LIMIT?=  15000
> > .endif
> 
> results in:
> 
> > --- genassym.o ---
> > clang (LLVM option parsing): Unknown command line argument '-disable-ppc-float-in-variadic=true'.  Try: 'clang (LLVM option parsing) -help'
> > clang (LLVM option parsing): Did you mean '-disable-ppc-ctrloop-analysis=true'?
> 
> 
> (The above one is the main reason why I's also sending to toolchain: it suggests some sort of change to earlier clang-specific command line options.)
> 
> 
> In sys/conf/Makefile.powerpc :
> 
> > CFLAGS+= -msoft-float -Wa,-many
> 
> results in:
> 
> > --- genassym.o ---
> > cc: error: unsupported argument '-many' to option 'Wa,'
> > *** [genassym.o] Error code 1
> 
> 
> 
> In sys/conf/kmod.mk :
> 
> > .if ${MACHINE_CPUARCH} == powerpc
> > CFLAGS+=        -mlongcall -fno-omit-frame-pointer
> > .endif
> 
> results in:
> 
> > --- depend_subdir_dtrace ---
> > cc: error: unknown argument: '-mlongcall'
> . . .
> > --- depend_subdir_dtrace ---
> > *** [genassym.o] Error code 1
> 
> (no surprise).
> 
> 
> I stopped experimenting with this area after those 3. (They are not listed in the order discovered.)
> 
> ===
> Mark Millard
> markmi at dsl-only.net
> 
> _______________________________________________
> freebsd-toolchain@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-toolchain
> To unsubscribe, send any mail to "freebsd-toolchain-unsubscribe@freebsd.org"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20160119121123.GA15094>