]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix gcc build errors with SSE 4.2 detection and gcc warnings
authorngie <ngie@FreeBSD.org>
Wed, 6 Jul 2016 05:17:07 +0000 (05:17 +0000)
committerngie <ngie@FreeBSD.org>
Wed, 6 Jul 2016 05:17:07 +0000 (05:17 +0000)
commit31d9e3b72183cdfd1e42b199800943a1f1ad7c51
treec0b354ec7753fba78b3ccc787e8a3d8ef004c1bf
parent44da817a3d1625442d983bc87d3169a7393b4226
Fix gcc build errors with SSE 4.2 detection and gcc warnings

- Remove -Wunused-but-set-variable's (`len`, etc).
- Replace clang-specific tests in sse42_supported(..) with generic,
  FreeBSD-supported CPU feature tests, using macros and functions
  from machine/cpufunc.h and machine/specialreg.h . The previous method
  for determining SSE4.2 availability was only compatible with clang.
- Sort #includes per style(9).

Approved by: re (gjb)
Differential Revision: https://reviews.freebsd.org/D7119
MFC after: 1 week
X-MFC with: r302332
Reported by: Jenkins
Reviewed by: grehan (maintainer)
Sponsored by: EMC / Isilon Storage Division
usr.sbin/bhyve/rfb.c