To -g or not to -g? (was: egcs build report)
Joe Buck
jbuck@synopsys.com
Wed Jul 29 15:04:00 GMT 1998
> This discussion ceased without any clear decision. Now that 1.1 is
> approaching quickly I think we should consider this again.
OK, but not for 1.1, any changes would delay the release. We're
really talking about the next release after 1.1.
(For 1.1 itself we could include a note on how to build without
debug symbols, but still have debuggable libraries, but not change
the code).
> Personally I second Mark's suggestion of de-defaulting -g (except for
> libraries), but then it was me to trigger this sub-thread. ;-)
If we're talking about a general solution for all modes, I would suggest
(and I think this resembles past suggestions by Mark) that there be
two modes, selectable by configure: --enable-debugging and
--disable-debugging. For a given tool at a given time, the default
might be set either way, but this is a separate choice.
When --disable-debugging is chosen, libraries still will get debug
symbols (possibly only a subset of the symbols, e.g. -g1, which is
enough to generate symbols for globals and declared classes).
Ideally, we'd get some input from the maintainers of other GNU tools,
so that everyone could use the same convention. A lot of them are at
Cygnus, so that's one place where it could be coordinated.
More information about the Gcc
mailing list