This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Add pointer_no_capture function attribute
- From: DJ Delorie <dj at redhat dot com>
- To: rguenther at suse dot de
- Cc: gcc-patches at gcc dot gnu dot org, dberlin at dberlin dot org
- Date: Wed, 8 Mar 2006 11:23:02 -0500
- Subject: Re: [PATCH] Add pointer_no_capture function attribute
- References: <Pine.LNX.4.63.0603081653350.5325@t148.fhfr.qr>
> ! if (fundecl && DECL_BUILT_IN (fundecl)
> ! && DECL_BUILT_IN_CLASS (fundecl) == BUILT_IN_NORMAL)
> ! warning (0, "too many arguments to function %qE", function);
Do we have an OPT_* for this?
> + else if (TYPE_P (*node) && TREE_CODE (*node) != FUNCTION_TYPE)
> + {
> + warning (0, "%qE attribute ignored", name);
We do have OPT_Wattributes for this one.