Subject: Re: make release breaks on typed punned pointer in /sys/dev/pci/twe.c
To: Jaromir Dolecek <jdolecek@NetBSD.org>
From: Stephen Degler <stephen@degler.net>
List: current-users
Date: 08/03/2003 15:39:48
=2D----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

Its compiling cleanly now, thanks.

skd


On Sunday 03 August 2003 02:47 pm, Jaromir Dolecek wrote:
> 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=3D32 -D_KERNEL -D_KERNEL_OPT=
 =20
> > > -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
=2D----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (NetBSD)

iD8DBQE/LWVPLZku6EhyMUgRAi1tAJ9baoApQLwcBxiODmjbZtfQgFGTyACfVHIB
7Ed6H/KwUSxrcFoR46LPR0g=3D
=3DVxrH
=2D----END PGP SIGNATURE-----