This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] -gused
- From: Devang Patel <dpatel at apple dot com>
- To: Andi Kleen <ak at suse dot de>
- Cc: Devang Patel <dpatel at apple dot com>, gcc-patches at gcc dot gnu dot org
- Date: Thu, 12 Jun 2003 11:48:07 -0700
- Subject: Re: [PATCH] -gused
On Thursday, June 12, 2003, at 06:09 AM, Andi Kleen wrote:
Devang Patel <dpatel@apple.com> writes:
This patch introduces different way of emitting debugging info stabs.
It emits stabs for only symbols which are actually used. Symbols are
collected in a queue and at the right time queue is flushed. It is
enabled
by -gused command line option. This is default debugging option
in Darwin GCC for some time. This approach helps to reduce size of
object files. This approach is more useful with PCH.
That's quite nice.
Thank you.
Anything that can get the size of debugging information
down is a great thing. In fact I think it was recently made the default
for dwarf2. So how about making it the default for stabs too
and offer an -gno-used or something to turn it off?
That's fine with me. Actually it is default in Apple GCC.
Apple GCC uses -gfull to indicate original behavior of emitting all
symbol stabs.
If maintainers think this is good idea then I'll propose another patch.
thoughts?
-Devang
[ In Apple GCC,
-g means emit stabs using default scheme, which is -gused
-gused means emit stabs for used symbols only
-gfull means emit all stabs
]