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]

Re: [PATCH, CHKP, PR target/65044] Restrict pointer bounds checker with Sanitizer


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]