To -g or not to -g? (was: egcs build report)
Jeffrey A Law
law@cygnus.com
Thu Jul 30 06:00:00 GMT 1998
In message < 199807291558.IAA06299@atrus.synopsys.com >you write:
>
> > 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.
Agreed.
> (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).
Agreed.
> > 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.
Agreed.
> 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).
We might want to amend this to C++ libraries. I don't really know.
And it was my experience in the past that while -g1 did reduce the
amount of debug symbols in the resulting files, the reduction was
not all that significant. I don't have particularly strong opinions
on this either.
> 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.
It would certainly be nice to have a single convention :-)
jeff
More information about the Gcc
mailing list