Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/atari/stand/installboot Specify -fno-strict-aliasin...
details: https://anonhg.NetBSD.org/src/rev/f07da93fdada
branches: trunk
changeset: 804109:f07da93fdada
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Mon Nov 24 07:52:04 2014 +0000
description:
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.
diffstat:
sys/arch/atari/stand/installboot/Makefile | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diffs (17 lines):
diff -r 87eea610015f -r f07da93fdada sys/arch/atari/stand/installboot/Makefile
--- a/sys/arch/atari/stand/installboot/Makefile Mon Nov 24 07:34:45 2014 +0000
+++ b/sys/arch/atari/stand/installboot/Makefile Mon Nov 24 07:52:04 2014 +0000
@@ -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
PROG= installboot
@@ -7,4 +7,7 @@
BINDIR= /usr/mdec
LDADD= -lkvm
+# XXX needs proper struct or union to calculate boot sector uint16_t cksums
+CFLAGS+= -fno-strict-aliasing
+
.include <bsd.prog.mk>
Home |
Main Index |
Thread Index |
Old Index