Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 05 Jan 2000 11:25:13 -0800
From:      "Ronald F. Guilmette" <rfg@monkeys.com>
To:        Dan Nelson <dnelson@emsphone.com>
Cc:        Martin Cracauer <cracauer@cons.org>, mauzi@poli.hu, hackers@FreeBSD.ORG
Subject:   Re: [OFFTOPIC] alt. C compiler 
Message-ID:  <1129.947100313@monkeys.com>
In-Reply-To: Your message of Wed, 05 Jan 2000 12:44:40 -0600. <20000105124439.A28602@dan.emsphone.com> 

next in thread | previous in thread | raw e-mail | index | archive | help

In message <20000105124439.A28602@dan.emsphone.com>, you wrote:

>In the last episode (Jan 05), Ronald F. Guilmette said:
>> Martin Cracauer <cracauer@cons.org> wrote:
>> >
>> >When your code breaks when using -O2 or higher, don't do that, use
>> >just -O!
>> 
>> Ah, excuse me, but -O is equivalent to -O2.
>
>/usr/src/contrib/gcc/toplev.c:4821
>
>      if (!strcmp (argv[i], "-O"))
>        {
>          optimize = 1;
>          optimize_size = 0;
>        }
>
>So, -O is equivalent to -O1.

OH MY GOD!  You're right, and I stand corrected.

Once upon a time, -O *was* equivalent to -O2, but it appears that this
got changed somewhere along the way.

(I'm glad that you pointed out my faux pas... I won't be using just -O
with gcc anymore!)


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




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