Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src sys/dev/ata/wd.c causes spurious warning about blkno not
details: https://anonhg.NetBSD.org/src/rev/c273f52a1baa
branches: trunk
changeset: 554455:c273f52a1baa
user: he <he%NetBSD.org@localhost>
date: Tue Oct 28 12:11:31 2003 +0000
description:
sys/dev/ata/wd.c causes spurious warning about blkno not
being initialized before used. This appears to be a bug
specific to (at least) the m68k target, and will be reported
to the GCC maintainers.
diffstat:
doc/HACKS | 14 +++++++++++++-
sys/conf/Makefile.kern.inc | 7 ++++++-
2 files changed, 19 insertions(+), 2 deletions(-)
diffs (46 lines):
diff -r ed148800640a -r c273f52a1baa doc/HACKS
--- a/doc/HACKS Tue Oct 28 11:46:39 2003 +0000
+++ b/doc/HACKS Tue Oct 28 12:11:31 2003 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: HACKS,v 1.17 2003/10/28 08:22:48 mrg Exp $
+# $NetBSD: HACKS,v 1.18 2003/10/28 12:11:31 he Exp $
#
# This file is intended to document workarounds for currently unsolved
# (mostly) compiler bugs.
@@ -260,3 +260,15 @@
ffs.c causes cc1 to barf for as-yet unknown reasons. this
hack ues -O0 to avoid the problem.
kcah
+
+hack gcc 3.3.2/m68k -Wno-uninitialized
+cdate Tue Oct 28 13:07:55 CET 2003
+who he
+port atari
+file sys/conf/Makefile.kern.inc : 1.39
+descr
+ sys/dev/ata/wd.c causes spurious warning about blkno not
+ being initialized before used. This appears to be a bug
+ specific to (at least) the m68k target, and will be reported
+ to the GCC maintainers.
+kcah
diff -r ed148800640a -r c273f52a1baa sys/conf/Makefile.kern.inc
--- a/sys/conf/Makefile.kern.inc Tue Oct 28 11:46:39 2003 +0000
+++ b/sys/conf/Makefile.kern.inc Tue Oct 28 12:11:31 2003 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.kern.inc,v 1.38 2003/10/26 19:24:06 christos Exp $
+# $NetBSD: Makefile.kern.inc,v 1.39 2003/10/28 12:11:31 he Exp $
#
# This file contains common `MI' targets and definitions and it is included
# at the bottom of each `MD' ${MACHINE}/conf/Makefile.${MACHINE}.
@@ -58,6 +58,11 @@
# Add -Wno-sign-compare. -Wsign-compare is included in -Wall as of GCC 3.3,
# but our sources aren't up for it yet.
CWARNFLAGS+= -Wno-sign-compare
+.if (${MACHINE_ARCH} == "m68k")
+# GCC 3.3.x for m68k apparently does not correctly handle -Wuninitialized
+# for 64-bit quantities
+CWARNFLAGS+= -Wno-uninitialized
+.endif
.endif
CFLAGS+= ${CPUFLAGS} -ffreestanding ${DEBUG} ${COPTS} ${CWARNFLAGS}
AFLAGS+= ${CPUFLAGS} -D_LOCORE
Home |
Main Index |
Thread Index |
Old Index