Re: -fno-strict-aliasing

From: David Schultz <das_at_FreeBSD.ORG>
Date: Sun, 8 Feb 2004 23:07:00 -0800
On Mon, Feb 09, 2004, Bruno T. wrote:
> Hi everyone.
> i'm pretty new to bsd, but i have some background in linux development
> and for what i have seen until now, i must say that -CURRENT is rather impressive, congrats !
> 
> I was rebuilding my base sys and noticed that any compiler flag 
> that implies -fstrict-aliasing (like -O2) would break some few things,
> adding "-fno-strict-aliasing" to "CFLAGS+=" in these makefiles
> solves the problem for now.
> 
> usr.sbin/kldxref/Makefile
> lib/libc/Makefile
> lib/libpam/Makefile
> libexec/ypxfr/Makefile
> usr.sbin/rpc.yppasswd/Makefile

I assume the problem is some specific C sources, rather than the
Makefiles themselves.  It's generally known that there are a few
aliasing problems lurking around the source tree that break
-fstrict-aliasing, and patches to fix them would be appreciated.
Received on Sun Feb 08 2004 - 22:07:01 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:42 UTC