Patch: Code Bloat g++

Joe Buck jbuck@synopsys.COM
Sat Feb 19 16:33:00 GMT 2000


Martin v. Loewis writes:
> I took a slightly different approach; the patch below avoids emitting
> LBRAC/RBRAC pairs if the block has no locals (or only locals which
> don't get debug info, such as __FUNCTION__).

This sounds like the right way to solve it.  I greatly appreciate your
work on this.

> It also reduces the size of the assembler file by using the function
> begin label (if present), instead of the external symbol; this pays
> off primarily in C++, where the external symbol is mangled.

Cool.  That can save a couple of kbytes per affected symbol in
template-heavy code (it makes less difference if -fsquangle is used).



More information about the Gcc mailing list