This is the mail archive of the gcc@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: Huge Increase in Unstripped Executable Size G++ 2.95 to 3.2


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


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