]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r334432:
authordim <dim@FreeBSD.org>
Sun, 3 Jun 2018 17:17:45 +0000 (17:17 +0000)
committerdim <dim@FreeBSD.org>
Sun, 3 Jun 2018 17:17:45 +0000 (17:17 +0000)
commit7e0804d5079e7e1867d8fa290aaa5f1e97b934c1
tree734b0267faee3a1e263145c9117b2547fb8af2d6
parentf720fe88061413ba0ab0f4beb0c03d578a946b22
MFC r334432:

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
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