Shall we modify '-g' to '-g3' to have gcc save the macro info?

Jakub Jelinek jakub at redhat.com
Wed Jan 16 14:36:39 UTC 2013


On Wed, Jan 16, 2013 at 02:26:00PM +0100, Jan Kratochvil wrote:
> On Wed, 16 Jan 2013 04:12:29 +0100, xning wrote:
> > Shall we should modify '-g' to '-g3' to have gcc save the macro
> > info? So when we install *-debuginfo packages, we can look up a
> > macro definition, just like we can look up a function definition.
> 
> That would be great, I have not found any official request for it, there was
> only short -g3 discussion in:
> 	Summary/Minutes from today's FESCo Meeting (2012-06-18)
> 	http://lists.fedoraproject.org/pipermail/devel/2012-June/168884.html
> 
> The new -g3 format by Jakub Jelinek has only very small debug info size
> increase requirement (FIXME: missing numbers here).

The tests performed on average meant that all or most of the space savings
thanks to dwz were consumed again by the .debug_macro addition (+ .debug_str
growth), which is why I've given up on the request to use -g3 in
RPM_OPT_FLAGS by default.

	Jakub


More information about the devel mailing list