Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/doc Document the hack to compile sys/arch/powerpc/oea/pmap.c...



details:   https://anonhg.NetBSD.org/src/rev/1bce9c0737de
branches:  trunk
changeset: 581527:1bce9c0737de
user:      he <he%NetBSD.org@localhost>
date:      Thu Jun 02 10:25:22 2005 +0000

description:
Document the hack to compile sys/arch/powerpc/oea/pmap.c with
-Wno-cast-qual.

diffstat:

 doc/HACKS |  18 +++++++++++++++++-
 1 files changed, 17 insertions(+), 1 deletions(-)

diffs (29 lines):

diff -r 1854afce7105 -r 1bce9c0737de doc/HACKS
--- a/doc/HACKS Thu Jun 02 10:22:20 2005 +0000
+++ b/doc/HACKS Thu Jun 02 10:25:22 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: HACKS,v 1.48 2005/05/26 18:33:36 he Exp $
+# $NetBSD: HACKS,v 1.49 2005/06/02 10:25:22 he Exp $
 #
 # This file is intended to document workarounds for currently unsolved
 # (mostly) compiler bugs.
@@ -474,3 +474,19 @@
                For now, we'll add some padding to scsipi_xfer so that
                the corrupted memory is not otherwise used.
        kcah
+
+port   powerpc
+
+       hack    add -Wno-cast-qual to pmap.c
+       cdate   Thu Jun  2 12:18:53 CEST 2005
+       who     he
+       file    sys/arch/powerpc/conf/Makefile.powerpc : 1.34
+       file    sys/arch/powerpc/conf/files.powerpc : 1.59
+       descr
+               sys/arch/powerpc/oea/pmap.c cannot be compiled with
+               -Wcast-qual because "volatile struct pteg *pmap_pteg_table"
+               is being passed to memset(), and the only obvious
+               alternative to adding -Wno-cast-qual I could see would
+               be to open-code memset(), which I think would be worse
+               than this fix.
+       kcah



Home | Main Index | Thread Index | Old Index