Reduce Dwarf Debug Size
Ian Lance Taylor
iant@google.com
Tue Apr 17 07:27:00 GMT 2007
"Lawrence Crowl" <crowl@google.com> writes:
> The basic idea is to not emit struct debugging information in the
> current compilation unit when that information will be generated
> by another compilation unit. The primary criteria is whether the
> base name of the file containing the struct definition matches the
> base name of the main file being compiled. For example, if struct
> foo is defined in bar.h, then when used in bar.c, the compiler will
> generate the struct debugging information. On the other hand, when
> used in ping.c, the compiler will not generate the information.
> In simple terms, the option matches the filename of the header
> defining the struct to the filename of the compilation unit.
I have committed this patch.
Ian
More information about the Gcc-patches
mailing list