From: Jeff Law <law@redhat.com>
To: Ilya Enkovich <enkovich.gnu@gmail.com>
Cc: gcc-patches@gcc.gnu.org
Subject: Re: [PATCH, Pointer Bounds Checker 9/x] Cgraph extension
Date: Wed, 03 Sep 2014 19:32:00 -0000 [thread overview]
Message-ID: <54076CBC.8070804@redhat.com> (raw)
In-Reply-To: <20140724095907.GA15208@msticlxl57.ims.intel.com>
On 07/24/14 03:59, Ilya Enkovich wrote:
> --
> 2014-07-24 Ilya Enkovich <ilya.enkovich@intel.com>
>
> * cgraph.h (cgraph_thunk_info): Add add_pointer_bounds_args
> field.
> (cgraph_node): Add instrumented_version, orig_decl and
> instrumentation_clone fields.
> (symtab_alias_target): Allow IPA_REF_CHKP reference.
> * cgraph.c (cgraph_remove_node): Fix instrumented_version
> of the referenced node if any.
> (dump_cgraph_node): Dump instrumentation_clone and
> instrumented_version fields.
> (verify_cgraph_node): Check correctness of IPA_REF_CHKP
> references and instrumentation thunks.
> * cgraphbuild.c (rebuild_cgraph_edges): Rebuild IPA_REF_CHKP
> reference.
> (cgraph_rebuild_references): Likewise.
> * cgraphunit.c (assemble_thunks_and_aliases): Skip thunks
> calling instrumneted function version.
> * ipa-ref.h (ipa_ref_use): Add IPA_REF_CHKP.
> (ipa_ref): increase size of use field.
> * ipa-ref.c (ipa_ref_use_name): Add element for IPA_REF_CHKP.
> * lto-cgraph.c (lto_output_node): Output instrumentation_clone,
> thunk.add_pointer_bounds_args and orig_decl field.
> (lto_output_ref): Adjust to new ipa_ref::use field size.
> (input_overwrite_node): Read instrumentation_clone field.
> (input_node): Read thunk.add_pointer_bounds_args and orig_decl
> fields.
> (input_ref): Adjust to new ipa_ref::use field size.
> (input_cgraph_1): Compute instrumented_version fields and restore
> IDENTIFIER_TRANSPARENT_ALIAS chains.
> * lto-streamer.h (LTO_minor_version): Change minor version from
> 0 to 1.
> * ipa.c (symtab_remove_unreachable_nodes): Consider instrumented
> clone as address taken if the original one is address taken.
> (cgraph_externally_visible_p): Mark instrumented 'main' as
> externally visible.
> (function_and_variable_visibility): Filter instrumentation
> thunks.
Thanks for adding the additional checking.
> @@ -513,6 +517,11 @@ cgraph_rebuild_references (void)
> ipa_record_stmt_references (node, gsi_stmt (gsi));
> }
> record_eh_tables (node, cfun);
> +
> +
> + if (node->instrumented_version
> + && !node->instrumentation_clone)
> + ipa_record_reference (node, node->instrumented_version, IPA_REF_CHKP, NULL);
> }
Trivial nit here -- just one vertical space here.
With that nit fixed, this is OK.
jeff
next prev parent reply other threads:[~2014-09-03 19:32 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-16 14:16 Ilya Enkovich
2014-05-06 12:14 ` Ilya Enkovich
2014-06-27 8:12 ` Ilya Enkovich
2014-07-23 13:47 ` Jeff Law
2014-07-24 9:59 ` Ilya Enkovich
2014-07-24 12:05 ` Jan Hubicka
2014-07-24 13:19 ` Ilya Enkovich
2014-07-24 13:52 ` Jan Hubicka
2014-07-25 11:20 ` Ilya Enkovich
2014-09-03 19:32 ` Jeff Law [this message]
2014-09-15 7:51 ` Ilya Enkovich
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=54076CBC.8070804@redhat.com \
--to=law@redhat.com \
--cc=enkovich.gnu@gmail.com \
--cc=gcc-patches@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).