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>
index | next in thread | previous in thread | raw e-mail
"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]} != ""
> 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} == "icc"
COPTFLAGS?=-O
.elif ${MACHINE_ARCH} == "amd64"
COPTFLAGS?=-O2 -fno-strict-aliasing -frename-registers -pipe
.else
COPTFLAGS?=-O -pipe
. if ${COPTFLAGS:M-O[23s]} != ""
COPTFLAGS+= -fno-strict-aliasing
. endif
.endif
.if !defined(NO_CPU_COPTFLAGS)
. if ${CC} == "icc"
COPTFLAGS+= ${_ICC_CPUCFLAGS:C/(-x[^M^K^W]+)[MKW]+|-x[MKW]+/\1/}
. else
COPTFLAGS+= ${_CPUCFLAGS}
. endif
.endif
note that if ${COPTFLAGS:M-O[23s]} != "" only applies in the non-amd64
case.
DES
--
Dag-Erling Smørgrav - des@des.no
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?xzpfzc4ag3g.fsf>
