Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Jul 2003 23:32:50 +0300
From:      Ruslan Ermilov <ru@freebsd.org>
To:        Bruce Evans <bde@zeta.org.au>
Cc:        John De Boskey <jwd@bsdwins.com>
Subject:   Re: -current 'make release' status? [SOLVED]
Message-ID:  <20030729203250.GE66399@sunbay.com>
In-Reply-To: <20030730060749.G978@gamplex.bde.org>
References:  <20030729103054.GA33488@BSDWins.Com> <20030729120105.GB20737@sunbay.com> <20030729123740.GA6239@BSDWins.Com> <20030729125738.GA27879@sunbay.com> <20030729134154.GA7048@BSDWins.Com> <20030729143848.GA37496@sunbay.com> <20030730060749.G978@gamplex.bde.org>

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

--so9zsI5B81VjUb/o
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, Jul 30, 2003 at 06:14:17AM +1000, Bruce Evans wrote:
> On Tue, 29 Jul 2003, Ruslan Ermilov wrote:
>=20
> > ...
> > Forget what I've said about NO_WERROR, it (unfortunately) only
> > applies to the userland.
> >
> > Still, running "make rerelease KERNEL_FLAGS=3DWERROR=3D" gets the
> > release done.
> >
> > I wondered why I get it, and similarly my nigthly "buildkernel"
> > completed without errors.  This turned out to be due to the
> > -O vs. -Os differences.  For example, compiling vfs_subr.o
> > from the GENERIC kernel results in these same warnings when
> > compiled with COPTFLAGS=3D"-Os -pipe".  Peter, should we switch
> > -Werror back off in kern.pre.mk?
>=20
> Use -fno-strict-aliasing if you use -Os.  Otherwise, -Os is stricter
> than -O.
>=20
> On second thoughts, -Os implies -f-strict-aliasing because -Os may
> need strict aliasing for the same reasons as -O2.  We've seen -O2
> in combination with broken aliasing in libm cause fatal errors.
> Better find part of -O2 that needs strict aliasing and turn it off
> too.
>=20
Hm, I always thought that -O2 and -Os are just useful aliases
that in effect only turn a few dozens of -f optimization flags,
and that switching some of them off later is allowed.  I.e.,
"-Os -fno-strict-aliasing" should work.


Cheers,
--=20
Ruslan Ermilov		Sysadmin and DBA,
ru@sunbay.com		Sunbay Software Ltd,
ru@FreeBSD.org		FreeBSD committer

--so9zsI5B81VjUb/o
Content-Type: application/pgp-signature
Content-Disposition: inline

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

iD8DBQE/JtnyUkv4P6juNwoRAiqSAJ0YiESboiU7MUzSRGQezgsrOV3fFwCdEK0Z
6hq82naRrPgwWzPagjrQAGE=
=mXA3
-----END PGP SIGNATURE-----

--so9zsI5B81VjUb/o--



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