[current tinderbox] failure on amd64/amd64

Dag-ErlingSmørgrav des at des.no
Fri Mar 19 09:42:37 PST 2004


"David O'Brien" <obrien at 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 at des.no


More information about the freebsd-amd64 mailing list