[U-Boot] [U-Boot, 1/2] Makefile: fix clang warnings due to clang support

Tom Rini trini at ti.com
Thu Jun 12 00:17:07 CEST 2014


On Fri, May 30, 2014 at 03:45:27PM +0200, Jeroen Hofstee wrote:

> Building u-boot tools with clang as a host compiler e.g. on
> FreeBSD with `gmake HOSTCC=clang CONFIG_USE_PRIVATE_LIBGCC=y tools`
> leads to many warnings [1] for every compiler invocation since
> commit 598e2d33. Part of mentioned commit imports linux patches:
> 
>  - kbuild: LLVMLinux: Adapt warnings for compilation with clang
>  - kbuild: LLVMLinux: Add Kbuild support for building kernel with Clang
> 
> No version of clang supports the gcc fno-delete-null-pointer-checks
> though, but it is only passed to clang. Gcc does not have the clang
> specific Qunused-arguments for the target. Furthermore several
> warnings are disabled which aren't encountered in u-boot. Since such
> a build has worked for quite some time and works after removing these
> changes, just remove the clang specific handling to restore normal
> building with clang as hostcc.
> 
> [1] Actual warnings
> -------------------
>   GEN     include/autoconf.mk.dep
> arm-freebsd-gcc: unrecognized option '-Qunused-arguments'
> 
>   HOSTCC  scripts/basic/fixdep
> clang: warning: argument unused during compilation:
>                 '-fno-delete-null-pointer-checks'
> 
> cc: Masahiro Yamada <yamada.m at jp.panasonic.com>
> Signed-off-by: Jeroen Hofstee <jeroen at myspectrum.nl>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140611/54df9ef7/attachment.pgp>


More information about the U-Boot mailing list