This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH v2] Implement no_sanitize function attribute
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Martin Liška <mliska at suse dot cz>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 31 May 2017 10:35:43 +0200
- Subject: Re: [PATCH v2] Implement no_sanitize function attribute
- Authentication-results: sourceware.org; auth=none
- Authentication-results: ext-mx10.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com
- Authentication-results: ext-mx10.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=jakub at redhat dot com
- Dkim-filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 6C3EA61D07
- Dmarc-filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 6C3EA61D07
- References: <72103b1d-0119-f05d-043d-ca2edf242bf3@suse.cz> <beb96c01-d217-b126-baaa-bcf5682889f4@suse.cz>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Wed, May 31, 2017 at 10:04:53AM +0200, Martin Liška wrote:
> diff --git a/gcc/common.opt b/gcc/common.opt
> index 13305558d2d..5e9942d5100 100644
> --- a/gcc/common.opt
> +++ b/gcc/common.opt
> @@ -222,9 +222,13 @@ bool flag_opts_finished
> Variable
> unsigned int flag_sanitize
>
> +###
> +Common RejectNegative Joined UInteger Var(flag_no_sanitize_fn) PerFunction
> +No sanitize flags for a function
This looks weird, you are redefining the -### option which is normally
a driver option.
I would have thought you just want a Variable, like the one right below
this. Aren't all "Variable"s per-function?
Jakub