This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH, CHKP, PR target/65044] Restrict pointer bounds checker with Sanitizer
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Ilya Enkovich <enkovich dot gnu at gmail dot com>
- Cc: gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 9 Mar 2015 15:51:39 +0100
- Subject: Re: [PATCH, CHKP, PR target/65044] Restrict pointer bounds checker with Sanitizer
- Authentication-results: sourceware.org; auth=none
- References: <20150216152059 dot GA51560 at msticlxl57 dot ims dot intel dot com> <20150216153154 dot GF1746 at tucnak dot redhat dot com> <20150216155645 dot GB51560 at msticlxl57 dot ims dot intel dot com> <20150216160100 dot GH1746 at tucnak dot redhat dot com> <20150216171531 dot GC51560 at msticlxl57 dot ims dot intel dot com> <CAMbmDYbzEsVznPJJ+oq=ewBOWRkeLswr36wBGhXKxwKb9rxpKg at mail dot gmail dot com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Mon, Mar 02, 2015 at 01:25:43PM +0300, Ilya Enkovich wrote:
> > --- a/gcc/toplev.c
> > +++ b/gcc/toplev.c
> > @@ -1376,6 +1376,11 @@ process_options (void)
> > {
> > if (targetm.chkp_bound_mode () == VOIDmode)
> > error ("-fcheck-pointer-bounds is not supported for this target");
> > +
> > + if (flag_sanitize & SANITIZE_ADDRESS)
> > + error ("-fcheck-pointer-bounds is not supported with Address Sanitizer");
> > +
> > + flag_check_pointer_bounds = 0;
> > }
Doesn't this disable -fcheck-pointer-bounds always?
I'd expect you want to clear flag_check_pointer_bounds only if you issued
one of the two errors...
Jakub