Subject: Re: make release breaks on typed punned pointer in /sys/dev/pci/twe.c
To: None <firstname.lastname@example.org>
From: Stephen Degler <email@example.com>
Date: 08/03/2003 14:36:37
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.
>make release of NetBSD-current as of 4-8-2003 breaks with the following
>/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/
>/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?