The enclosed patch refactors the logic that decides if a pubname
belongs in the output, taking into account type pruning in the
presence of debug types.

When the logic was separate, it didn't always agree, creating issues
with the size output to the object file. Older editions of Gold didn't
use the size field, so the bug was latent. Newer editions of gold will
use the size field, exposing the bug.

Google has been using a nearly identical patch for some time.

OK for trunk?

Sterling

gcc/ChangeLog
013-07-25  Sterling Augustine  <saugust...@google.com>

    * dwarf2out.c (size_of_pubnames): Move code to...
    (include_pubname_in_output): ...here.  New.
    (want_pubnames): Rearrange.
    (output_pubnames): Call include_pubname_in_output.  Move assertion.

Attachment: include-pubnames.patch
Description: Binary data

Reply via email to