Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 3 Jul 2005 21:39:48 -0400
From:      Kris Kennaway <kris@obsecurity.org>
To:        Darren Pilgrim <dmp@bitfreak.org>
Cc:        ports@FreeBSD.org, current@FreeBSD.org, 'Kris Kennaway' <kris@obsecurity.org>
Subject:   Re: HEADS UP: Ports are not ready for CFLAGS=-O2 in 6.0
Message-ID:  <20050704013948.GA47038@xor.obsecurity.org>
In-Reply-To: <001401c57ff4$6f429730$0b2a15ac@SMILEY>
References:  <20050703055842.GA1933@xor.obsecurity.org> <001401c57ff4$6f429730$0b2a15ac@SMILEY>

next in thread | previous in thread | raw e-mail | index | archive | help

--C7zPtVaVf+AK4Oqc
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sun, Jul 03, 2005 at 10:27:04AM -0700, Darren Pilgrim wrote:
> From: Kris Kennaway
> > On Sat, Jul 02, 2005 at 09:47:44PM -0700, Adam Weinberger wrote:
> > > Kris Kennaway wrote:
> > > >About a week ago des changed the default value of CFLAGS to "-O2=20
> > > >-pipe" on FreeBSD 6.0-CURRENT.  While this is believed to be safe
> > > >for compiling world + kernel on -CURRENT thesedays (because the
> > > >aliasing bugs that are exposed with -O2 have been fixed), it's
> > > >definitely *not* safe for compiling many ports (there are at
> > > >least 350 ports that emit warnings about aliasing, and would
> > > >probably have runtime errors when compiled with -O2; moreover, a
> > > >number of ports fail to even build with -O2).
> > > >
> > > >Therefore, if you compile ports on FreeBSD 6.0, you should set=20
> > > >CFLAGS=3D-O -pipe in your /etc/make.conf for now, until we can=20
> > > >resolve this problem more satisfactorily.
> <...>
> >=20
> > P.S. The problem is only if you build without=20
> > -fno-strict-alias, which is the default now.
>=20
> Is that to say, then, that ports will build and run safely if you use
> CFLAGS=3D-O2 -pipe -fno-strict-alias?

As per the quoted thread from last year, and the default CFLAGS
settings, yes :-)

Kris

--C7zPtVaVf+AK4Oqc
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (FreeBSD)

iD8DBQFCyJNkWry0BWjoQKURAnDzAJ98sZzrfF+8iGrxEwJDnF4m8YPPgwCg7/6r
T7GUwoLC9NnIwST/o3WPM7o=
=O5Df
-----END PGP SIGNATURE-----

--C7zPtVaVf+AK4Oqc--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050704013948.GA47038>