delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/06/03/00:19:59.1

From: Nate Eldredge <neldredge AT hmc DOT edu>
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: <Pine DOT LNX DOT 4 DOT 21 DOT 0006030531400 DOT 1081-100000 AT roadrunner DOT grendel DOT net>
X-Complaints-To: newsabuse AT supernews DOT com
User-Agent: Gnus/5.0802 (Gnus v5.8.2) Emacs/20.5
MIME-Version: 1.0
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 <kalum AT lintux DOT cx> writes:

> On Fri, 2 Jun 2000, Gisle Vanem wrote:
> 
> > batchex <thedark1NOthSPAM AT phreaker DOT net DOT invalid> 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019