Specify -fno-strict-aliasing as a temporary workaround for gcc48.

The existing abcksum() also violates strict-aliasing rule
(while current gcc48 doesn't warn it) and fixing all violations
strictly requires whole reorganization of boot sector structures.
But it won't happen soon and this MD installboot should be integrated
into MI installboot(8) in future, and it requires whole overhaul anyway.
See long discussion in source-changes-d@ for details.

Should be pulled up to netbsd-7 if we switches m68k to using gcc48.
This commit is contained in:
tsutsui 2014-11-24 07:52:04 +00:00
parent e21ac01aa6
commit 7839e5ad38
1 changed files with 4 additions and 1 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.6 2011/11/01 13:19:53 chs Exp $ # $NetBSD: Makefile,v 1.7 2014/11/24 07:52:04 tsutsui Exp $
WARNS= 4 WARNS= 4
PROG= installboot PROG= installboot
@ -7,4 +7,7 @@ SRCS= installboot.c disklabel.c
BINDIR= /usr/mdec BINDIR= /usr/mdec
LDADD= -lkvm LDADD= -lkvm
# XXX needs proper struct or union to calculate boot sector uint16_t cksums
CFLAGS+= -fno-strict-aliasing
.include <bsd.prog.mk> .include <bsd.prog.mk>