Subject: Re: make release breaks on typed punned pointer in /sys/dev/pci/twe.c
To: None <wulf@ping.net.au>
From: Stephen Degler <stephen@degler.net>
List: current-users
Date: 08/03/2003 14:36:37
Hi,

twe and at least one other driver need to be compiled with 
-fno-strict-aliasing until someone checks fixes into cvs.

Be sure to get the acpi fixes commtted yesterday as well.

skd


wulf@ping.net.au wrote:

>G'day,
>
>make release of NetBSD-current as of 4-8-2003 breaks with the following
>error message:
>
>/usr/src/newtools/bin/i386--netbsdelf-gcc   -ffreestanding  -O2 -Werror -Wall
>-Wno-main -Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes -Wstrict-
>prototypes -Wno-sign-compare -Wno-uninitialized  -Di386 -I.  -I/usr/src/sys/arch
>
>-I/usr/src/sys -nostdinc -DLKM -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT   -c /usr/
>src/sys/dev/pci/twe.c
>/usr/src/sys/dev/pci/twe.c: In function `tweioctl':
>/usr/src/sys/dev/pci/twe.c:1265: warning: dereferencing type-punned pointer wi
>l break strict-aliasing rules
>*** Error code 1
>
>Has anyone worked around this yet?
>
>cheerio Berndt
>
>  
>