delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/05/12/02:59:46

Date: Wed, 12 May 1999 09:57:35 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: djgpp AT delorie DOT com
Subject: Re: Failed compilation of GCC 2.8.1
In-Reply-To: <373b164b.4977938@noticias.iies.es>
Message-ID: <Pine.SUN.3.91.990512095717.20820I-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Tue, 11 May 1999, Guillermo Rodriguez Garcia wrote:

> I read somewhere that with gcc you can debug optimized programs, so I
> think -O2 shouldn't strip debug info.

The problem happens because the default value of CFLAGS in the
Makefile is "-g", which causes GCC to emit debug info.  Setting CFLAGS
to -O2 doesn't strip the debug info, but GCC will not produce the
debug info because there's no -g in CFLAGS.  "make CFLAGS=-O2"
overrides the value of CFLAGS in the Makefile, not adds to whatever
the Makefile says.

- Raw text -


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