]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix build of stand with base gcc
authordim <dim@FreeBSD.org>
Thu, 31 May 2018 14:38:13 +0000 (14:38 +0000)
committerdim <dim@FreeBSD.org>
Thu, 31 May 2018 14:38:13 +0000 (14:38 +0000)
commit2794ca713b52005005ee4aeaf4edb943e5982353
tree52a1505cd56892ab9b00ebeda623ebf37f0b5b05
parentc6a9955a40379df2e902812250713d0ce3019aa4
Fix build of stand with base gcc

* Make autoboot() a static function in stand/common/boot.c, so it does
  not shadow local variables in gptboot.c and zfsboot.c.
* Remove -Winline from the Makefiles for gptboot, gptzfsboot and
  zfsboot, as gcc will always fail to inline some functions, and there
  is nothing we can do about it.
* For gcc <= 4.2.1, silence -Wuninitialized for isoboot, as it produces
  a false positive warning.
* Remove deprecated and unnecessary -mcpu=i386 flag from stand/defs.mk,
  as there is already a -march=i386 flag further in the file.

Reviewed by: imp
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D15628
stand/common/boot.c
stand/common/bootstrap.h
stand/defs.mk
stand/i386/gptboot/Makefile
stand/i386/gptzfsboot/Makefile
stand/i386/isoboot/Makefile
stand/i386/zfsboot/Makefile