public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Ilya Enkovich <enkovich.gnu@gmail.com>
To: Jakub Jelinek <jakub@redhat.com>
Cc: gcc-patches <gcc-patches@gcc.gnu.org>
Subject: Re: [CHKP, PATCH] Fix instrumented indirect calls with propagated pointers
Date: Wed, 25 Mar 2015 08:56:00 -0000	[thread overview]
Message-ID: <CAMbmDYbx7yWn044oc6uTwjYEnYxd_XxrFr=HiV7M9B1BjihzYw@mail.gmail.com> (raw)
In-Reply-To: <20150325081620.GK1746@tucnak.redhat.com>

2015-03-25 11:16 GMT+03:00 Jakub Jelinek <jakub@redhat.com>:
> On Wed, Mar 25, 2015 at 11:05:17AM +0300, Ilya Enkovich wrote:
>> > The question is what you want to do in the LTO case for the different cases,
>> > in particular a TU compiled with -fcheck-pointer-bounds and LTO link without
>> > that, or TU compiled without -fcheck-pointer-bounds and LTO link with it.
>> > It could be handled as LTO incompatible option, where lto1 would error out
>> > if you try to mix -fcheck-pointer-bounds with -fno-check-pointer-bounds
>> > code, or e.g. similar to var-tracking, you could consider adjusting the IL
>> > upon LTO reading if if some TU has been built with -fcheck-pointer-bounds
>> > and the LTO link is -fno-check-pointer-bounds.  Dunno what will happen
>> > with -fno-check-pointer-bounds TUs LTO linked with -fcheck-pointer-bounds.
>> > Or another possibility is to or in -fcheck-pointer-bounds from all TUs.
>>
>> Mixing instrumented and not instrumented TUs is allowed. All
>> instrumentation passes happen before LTO link. The only code
>> generation problem if instrumented code is linked with no
>> -fcheck-pointer-bounds is disabled chkp_finish_file call which
>> generates static constructors. I think I just should set
>> flag_check_pointer_bounds if see any instrumented symbol on LTO read.
>> It would cause chkp_finish_file call when required and would be
>> available as guard for chkp related codes.
>
> Thus perhaps oring the flag_check_pointer_bounds option from all the TUs is
> the desirable behavior for LTO?
> I think Richard or Honza would know where would be the best spot to do that.
>
>         Jakub

Is such oring used for some other flags to have an example?

Thanks,
Ilya

  reply	other threads:[~2015-03-25  8:56 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-12 11:13 Ilya Enkovich
2015-03-19  8:30 ` Ilya Enkovich
2015-03-24  8:33   ` Jakub Jelinek
2015-03-24  9:22     ` Ilya Enkovich
2015-03-24 14:06       ` Jakub Jelinek
2015-03-24 14:40         ` Richard Biener
2015-03-25  8:50           ` Ilya Enkovich
2015-03-25  9:39             ` Richard Biener
2015-03-25  9:50               ` Jakub Jelinek
2015-03-25 10:06                 ` Ilya Enkovich
2015-03-25 10:11                   ` Jakub Jelinek
2015-03-25 10:20                     ` Richard Biener
2015-03-25 10:15                 ` Richard Biener
2015-03-25 10:24                   ` Ilya Enkovich
2015-03-25  8:05         ` Ilya Enkovich
2015-03-25  8:16           ` Jakub Jelinek
2015-03-25  8:56             ` Ilya Enkovich [this message]
2015-04-02 16:28         ` Ilya Enkovich
2015-04-10  1:28           ` Jan Hubicka
2015-04-14 14:35             ` Ilya Enkovich
2015-05-05  8:06               ` Ilya Enkovich
2015-05-19  9:40                 ` Ilya Enkovich
2015-05-26 13:11                   ` Ilya Enkovich
2015-05-29  6:49                     ` Jan Hubicka

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='CAMbmDYbx7yWn044oc6uTwjYEnYxd_XxrFr=HiV7M9B1BjihzYw@mail.gmail.com' \
    --to=enkovich.gnu@gmail.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=jakub@redhat.com \
    /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).