My make.conf contains (fbsd-5.4) CFLAGS= -O -pipe COPTFLAGS= -O -pipe Are these settings the same for the upcoming release6 or do I need to set -O2 in this new version? -- dick -- http://nagual.st/ -- PGP/GnuPG key: F86289CE ++ Running FreeBSD 4.11-stable ++ FreeBSD 5.4 + Nai tiruvantel ar vayuvantel i Valar tielyanna nu vilja
On Saturday 22 October 2005 09:07 am, dick hoogendijk wrote:> My make.conf contains (fbsd-5.4) > CFLAGS= -O -pipe > COPTFLAGS= -O -pipe > > Are these settings the same for the upcoming release6 or do I need to > set -O2 in this new version?6.0 uses -O2 by default. I upgraded my systems by doing a diff between /usr/src/share/examples/etc/make.conf and /etc/make.conf to get a list of changes I made, copying over the new (6.0) make.conf, and re-applying the parts of the diff that made sense. The 5.x and 6.x versions are different enough that my method is probably easier than attempting to hand-update the old copy. -- Kirk Strauser -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 187 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20051022/8c4454a7/attachment.bin
dick hoogendijk wrote:> My make.conf contains (fbsd-5.4) > CFLAGS= -O -pipe > COPTFLAGS= -O -pipe > > Are these settings the same for the upcoming release6 or do I need to > set -O2 in this new version?FreeBSD is moving towards "-O2 -fno-strict-aliasing" by default [1], but there is nothing wrong with using "-O" only. On most platforms, there isn't much difference between -O and -O2, although -O2 does help more with the x86 architecture. -- -Chuck [1] Or, if we get lucky, perhaps the local compiler guru will choose to make the strict-aliasing option in GCC default to being off. Also, not everybody seems to agree with this, which is probably not surprising. :-)
Kirk Strauser wrote:> On Saturday 22 October 2005 09:07 am, dick hoogendijk wrote: > >>My make.conf contains (fbsd-5.4) >>CFLAGS= -O -pipe >>COPTFLAGS= -O -pipe >> >>Are these settings the same for the upcoming release6 or do I need to >>set -O2 in this new version? > > > 6.0 uses -O2 by default. I upgraded my systems by doing a diff > between /usr/src/share/examples/etc/make.conf and /etc/make.conf to get a > list of changes I made, copying over the new (6.0) make.conf, and re-applying > the parts of the diff that made sense. > > The 5.x and 6.x versions are different enough that my method is probably > easier than attempting to hand-update the old copy.mergemaster -p can help with this as well, FYI. Doug -- This .signature sanitized for your protection