Mail Archives: djgpp-workers/2000/12/30/13:29:43
> # 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.
- Raw text -