Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Mar 2004 18:42:27 +0100
From:      des@des.no (Dag-Erling =?iso-8859-1?q?Sm=F8rgrav?=)
To:        obrien@freebsd.org
Cc:        amd64@freebsd.org
Subject:   Re: [current tinderbox] failure on amd64/amd64
Message-ID:  <xzpfzc4ag3g.fsf@dwp.des.no>
In-Reply-To: <20040319172600.GA19851@dragon.nuxi.com> (David O'Brien's message of "Fri, 19 Mar 2004 09:26:00 -0800")
References:  <20040319133036.7BC637303A@freebsd-current.sentex.ca> <20040319172600.GA19851@dragon.nuxi.com>

next in thread | previous in thread | raw e-mail | index | archive | help
"David O'Brien" <obrien@freebsd.org> writes:
> Is it possible to use the default COPTFLAGS for AMD64?  The default is
> now -O2.  Which becomes "-O2 -fno-strict-aliasing" due to
>     . if ${COPTFLAGS:M-O[23s]} !=3D ""
> in kern.pre.mk.  I'm courious why you're not getting -fno-strict-aliasing
> when you set the tenderbox run up for -O2.

Because kern.pre.mk doesn't do what you think it does:

.if ${CC} =3D=3D "icc"
COPTFLAGS?=3D-O
.elif ${MACHINE_ARCH} =3D=3D "amd64"
COPTFLAGS?=3D-O2 -fno-strict-aliasing -frename-registers -pipe
.else
COPTFLAGS?=3D-O -pipe
. if ${COPTFLAGS:M-O[23s]} !=3D ""
COPTFLAGS+=3D -fno-strict-aliasing
. endif
.endif
.if !defined(NO_CPU_COPTFLAGS)
. if ${CC} =3D=3D "icc"
COPTFLAGS+=3D ${_ICC_CPUCFLAGS:C/(-x[^M^K^W]+)[MKW]+|-x[MKW]+/\1/}
. else
COPTFLAGS+=3D ${_CPUCFLAGS}
. endif
.endif

note that if ${COPTFLAGS:M-O[23s]} !=3D "" only applies in the non-amd64
case.

DES
--=20
Dag-Erling Sm=C3=B8rgrav - des@des.no



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