From: Nate Eldredge Newsgroups: comp.os.msdos.djgpp Subject: Re: preprpcessor for overiding gcc optimation switch Date: 02 Jun 2000 21:09:23 -0700 Organization: Posted via Supernews, http://www.supernews.com Lines: 25 Sender: nate AT mercury DOT bitbucket Message-ID: <83zop3o170.fsf@mercury.bitbucket> References: X-Complaints-To: newsabuse AT supernews DOT com User-Agent: Gnus/5.0802 (Gnus v5.8.2) Emacs/20.5 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Kalum Somaratna aka Grendel writes: > On Fri, 2 Jun 2000, Gisle Vanem wrote: > > > batchex said: > > > > > Anybody know any C preprocessor for overiding gcc optimation > > > switch (-Ox)? > > > > Duh !? What are you really trying to accomplish? > > I think what he means is whether there is a pragma you can put into > the source that would turn off optiomizations..something like > #pragma OPT_OFF or something like that..... No, there isn't, but you could do: #ifdef __OPTIMIZE__ #error Don't compile with optimizations, you fool. #endif -- Nate Eldredge neldredge AT hmc DOT edu