Document the hack to compile sys/arch/powerpc/oea/pmap.c with

-Wno-cast-qual.
This commit is contained in:
he 2005-06-02 10:25:22 +00:00
parent f483e62113
commit f25c7d55fa
1 changed files with 17 additions and 1 deletions

View File

@ -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 @@ port hppa
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