Subject: Re: make release breaks on typed punned pointer in /sys/dev/pci/twe.c
To: Stephen Degler <stephen@degler.net>
From: Jaromir Dolecek <jdolecek@NetBSD.org>
List: current-users
Date: 08/03/2003 20:47:05
Hopefully it's fixed in rev. 1.39 of src/sys/dev/pci/twe.c
Can you confirm this? I don't have gcc 3.3 toolchain yet.

Jaromir

Stephen Degler wrote:
> 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
> >
> >  
> >
> 

-- 
Jaromir Dolecek <jdolecek@NetBSD.org>            http://www.NetBSD.cz/
-=- We should be mindful of the potential goal, but as the tantric    -=-
-=- Buddhist masters say, ``You may notice during meditation that you -=-
-=- sometimes levitate or glow.   Do not let this distract you.''     -=-