This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Teach vrp that THIS pointer and references are non-zero
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Jan Hubicka <hubicka at ucw dot cz>
- Cc: gcc-patches at gcc dot gnu dot org, rguenther at suse dot de, jason at redhat dot com
- Date: Mon, 13 Apr 2015 12:22:42 +0200
- Subject: Re: Teach vrp that THIS pointer and references are non-zero
- Authentication-results: sourceware.org; auth=none
- References: <20150413101249 dot GB61490 at kam dot mff dot cuni dot cz>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Mon, Apr 13, 2015 at 12:12:49PM +0200, Jan Hubicka wrote:
> @@ -1216,6 +1227,10 @@ gimple_stmt_nonzero_warnv_p (gimple stmt
> && DECL_IS_OPERATOR_NEW (fndecl)
> && !TREE_NOTHROW (fndecl))
> return true;
> + /* Referneces are alwyas non-NULL. */
Two typos.
I'll defer the patch review to richi/jason; as far as ubsan is concerned,
the flag_delete_null_pointer_checks guards should hopefully make sure we are
ok.
Jakub