From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 98221 invoked by alias); 13 Apr 2015 10:22:51 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 98202 invoked by uid 89); 13 Apr 2015 10:22:50 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.5 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,SPF_HELO_PASS,T_RP_MATCHES_RCVD autolearn=no version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Mon, 13 Apr 2015 10:22:49 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (Postfix) with ESMTPS id 860CB8E3CB; Mon, 13 Apr 2015 10:22:48 +0000 (UTC) Received: from tucnak.zalov.cz (ovpn-116-24.ams2.redhat.com [10.36.116.24]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t3DAMkNj021136 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 13 Apr 2015 06:22:48 -0400 Received: from tucnak.zalov.cz (localhost [127.0.0.1]) by tucnak.zalov.cz (8.14.9/8.14.9) with ESMTP id t3DAMis8008546; Mon, 13 Apr 2015 12:22:44 +0200 Received: (from jakub@localhost) by tucnak.zalov.cz (8.14.9/8.14.9/Submit) id t3DAMgfw008545; Mon, 13 Apr 2015 12:22:42 +0200 Date: Mon, 13 Apr 2015 10:22:00 -0000 From: Jakub Jelinek To: Jan Hubicka Cc: gcc-patches@gcc.gnu.org, rguenther@suse.de, jason@redhat.com Subject: Re: Teach vrp that THIS pointer and references are non-zero Message-ID: <20150413102242.GK1735@tucnak.redhat.com> Reply-To: Jakub Jelinek References: <20150413101249.GB61490@kam.mff.cuni.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150413101249.GB61490@kam.mff.cuni.cz> User-Agent: Mutt/1.5.23 (2014-03-12) X-IsSubscribed: yes X-SW-Source: 2015-04/txt/msg00562.txt.bz2 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