*BSD News Article 27555


Return to BSD News archive

Newsgroups: comp.os.386bsd.misc
Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!agate!howland.reston.ans.net!xlink.net!subnet.sub.net!flatlin!bad
From: bad@flatlin.ka.sub.org (Christoph Badura)
Subject: Re: Why uses /usr/src -O instead of -O2?
Date: Mon, 21 Feb 1994 13:14:57 GMT
Message-ID: <CLKssx.DLq@flatlin.ka.sub.org>
References: <1994Feb16.103448.6398@paramount.nikhefk.nikhef.nl>
Organization: Guru Systems/Funware Department
Lines: 16

In <1994Feb16.103448.6398@paramount.nikhefk.nikhef.nl> eloy@paramount.nikhefk.nikhef.nl (Eloy Domingos) writes:
>When rebuilding the 'world' I noticed that the makefiles use -O instead
>of the better optimizing -O2. Is there a reason not to use the better
>optimization? I think in gcc 2.4.5 the -O2 optimizer is reliable.

I'm not sure of that.  I've built a couple of NetBSD 0.9 kernels with
-O2 that worked fine on the machine in question except that after a
week the -O2 kernels refused to boot.  Compiling with -O produced a
kernel that works reliably ever since.  However, that might easily be a
hardware problem but somehow I couldn't be bothered to investigate
further once the system was back up and running.
-- 
Christoph Badura	bad@flatlin.ka.sub.org		+49 721 606137

Es genuegt nicht, keine Gedanken zu haben;
man muss auch unfaehig sein, sie auszudruecken.  - Karl Kraus