From: "Tim Van Holder" To: Subject: RE: config/mh-djgpp in Cygnus tree Date: Sat, 30 Dec 2000 19:33:34 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-4" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Importance: Normal In-Reply-To: <3A4E089C.A7FFDA87@softhome.net> X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id NAA29818 Reply-To: djgpp-workers AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > # We don't want to use debugging information on DOS. Unfortunately, > # this requires that we set CFLAGS. > # This used to set -fno-omit-frame-pointer. > CFLAGS=-O2 > > It is not clear from this comment why we don't want to use > debugging info on DOS. Or is this obsolete and we can remove > it safely? I've haven't fully grokked the way Cygnus tree works, > but overriding CFLAGS this way looks suspiciously. Well, I think the rationale is this: on Unix/Linux, you can safely assume sources are available and in a standard place (say, /usr/src). So a regular user could fire up gdb and trace through parts of the compiler if need be. DJGPP users will usually have only the binaries, and if they do have the sources they're not necessarily in a standard place, making casual debugging harder. Also, PC users usually are, how shall I put it, not as experienced as the average Unix/Linux user, and will not try to debug a compiler in order to provide a comprehensive bug report. Still, I see no reason for not removing this setting and letting configure decide. configure will probably make this '-g -O2', which is just as acceptable as a default; and for releases or true debugging build, it's easy enough to override CFLAGS from the environment.