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 Friday, February 28, 2003, at 06:05 PM, Richard Henderson wrote:


On Fri, Feb 28, 2003 at 05:41:24PM -0800, Mark Mitchell wrote:
Instead, why not apply the same logic to the TYPE nodes themselves, and
set DECL_IGNORED?

Do we even have this information available? I don't think we do. The VAR_DECL nodes from automatic variables should be gone by this time.

We could perhaps have started out with some sort of mark
on TYPE nodes, which starts unset, and is set only when
some DECL that makes it to debug info makes use of it.
This, however, would be a rather large change, I think.

Here at Apple, we have another optimization for debugging symbols with STABS.
We call it -gused. The idea is to keep tree nodes with TREE_USED set in a symbol
queue and in the end emit debugging info for these symbols only.


I do not know how it will work with DWARF. It is used by default
in compiler and gives better compile time speed and smaller .o files.
(It makes linker's life little bit difficult because now BINCL/EINCL
 may not match strictly).

I'll post patch.

-Devang


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