This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Huge Increase in Unstripped Executable Size G++ 2.95 to 3.2
- From: Jason Molenda <jason-gcclist at molenda dot com>
- To: Richard Henderson <rth at redhat dot com>, snyder <snyder at fnal dot gov>, gcc at gcc dot gnu dot org
- Date: Sat, 1 Mar 2003 10:56:39 -0800
- Subject: Re: Huge Increase in Unstripped Executable Size G++ 2.95 to 3.2
- References: <20030228110236.30112033.bkoz@redhat.com> <yr8vfz4ul1s.fsf@yaphank-clued0.fnal.gov> <20030228230316.GA25419@redhat.com> <20030301065226.A80841@molenda.com>
On Sat, Mar 01, 2003 at 06:52:26AM -0800, Jason Molenda wrote:
> (about the -feliminate-unused-dwarf2-types patch)
>
> We have a patch to gcc in use at Apple to do the same with stabs,
> it's been the default for a while with our gcc.
Small correction to myself - the "-gused" patch at Apple does this
sort of elimination for more than just types, which is why this
situation:
> people writing little test programs with unused variables like
>
> foo () {
> int a;
> puts ("not using a");
> }
>
> If they break in foo and try to examine a, it won't have any debug
> info so they'll get a "variable not found" type error.
Occurs with our more ambituous unused-pruning, but after a quick
read of the -feliminate-unused-dwarf2-types patch, I don't think
it would eliminate the debug info for 'a'.
J