This is the mail archive of the gcc-patches@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] |
Thanks Cary for the comments. Patch updated, an also added a tool in contrib/ to dump the profile annotation coverage. Dehao > > > On Wed, Mar 12, 2014 at 9:48 AM, Cary Coutant <ccoutant@google.com> wrote: >> >> +void autofdo_source_profile::write_annotated_count () const >> +{ >> + switch_to_section (get_section ( >> + ".gnu.switches.text.annotation", >> + SECTION_DEBUG | SECTION_MERGE | SECTION_STRINGS | 1, NULL)); >> >> I think it would be worth a comment explaining the point of setting >> the SECTION_MERGE and SECTION_STRINGS flags, and why it works for this >> section. Also, the "1" is clearer if you write is as "(SECTION_ENTSIZE >> & 1)". >> >> -cary > >
Attachment:
diff.txt
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |