This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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
]


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]