Update CFLAGS for clang compatibility
authorjhibbits <jhibbits@FreeBSD.org>
Tue, 31 Jan 2017 01:55:29 +0000 (01:55 +0000)
committerjhibbits <jhibbits@FreeBSD.org>
Tue, 31 Jan 2017 01:55:29 +0000 (01:55 +0000)
commit254b85f1d95a669a2d2b68230d10cdda4651dba7
tree7b69a28dcbfdb1443a25e02a45a6c31810e8ff04
parent153f7bb183f42a631c5ca3aa0a06972d3b8bd2a3
Update CFLAGS for clang compatibility

* Clang/llvm does not (yet) support -m(no-)spe, so make it gcc-only
* Clang now supports -msoft-float, and does not appear to recognize
  "-disable-ppc-float-in-variadic", which appears to have been a crutch until
  soft-float was implemented.  It's now implemented for both 32- and 64-bit.
* Clang/llvm use a 'medium' code model by default for powerpc64, supporting up
  to 4GB TOC, and does not support the '-mminimal-toc' option.  Given both of
  these, make -mminimal-toc gcc-only.

MFC after: 2 weeks
sys/conf/kern.mk
sys/modules/zfs/Makefile