Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Jul 2002 23:01:33 -0700
From:      Darren Pilgrim <dmp@pantherdragon.org>
To:        Clifton Royston <cliftonr@lava.net>
Cc:        freebsd-stable@FreeBSD.org
Subject:   Re: Is use of -O2 still deprecated for buildworld in -stable?
Message-ID:  <3D4388BD.EB384247@pantherdragon.org>
References:  <20020727191945.A10231@lava.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Clifton Royston wrote:
> 
>   I had a vigorous discussion about this with a colleague on Friday
> (yesterday.) We're trying to agree on the proper set of options to use
> in /etc/make.conf for doing "buildworld" and/or "buildkernel" i386
> servers (Pentium 3.)

-O -pipe is the recommended for CFLAGS and COPTFLAGS.

>   These machines will be running production services for our customers,
> so they need to be high-reliability; we're running 4.5-release and
> 4.6-release CVSuped to those tags, not trying to track -stable.
> 
>   My colleague is insistent that because -O2 in gcc will generally
> produce much better code, we should be using it if it's at all possible
> and safe.

According to everything I've read, the difference between -O and -O2
is neglible in FreeBSD, at the cost of significantly higher compilation
times.  Also, the more the compiler does to the code, the more likely
you'll get unexpected behaviour.  If you want stability, then go with
-O.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




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