From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 108303 invoked by alias); 20 Aug 2015 17:28:55 -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 108288 invoked by uid 89); 20 Aug 2015 17:28:54 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.6 required=5.0 tests=AWL,BAYES_40,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD,SPF_HELO_PASS 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; Thu, 20 Aug 2015 17:28:53 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (Postfix) with ESMTPS id D4201FA9F3; Thu, 20 Aug 2015 17:28:51 +0000 (UTC) Received: from localhost.localdomain (ovpn-113-201.phx2.redhat.com [10.3.113.201]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t7KHSor0006866; Thu, 20 Aug 2015 13:28:51 -0400 Subject: Re: [PATCH] Fix UBSan builtin types To: Yury Gribov , Marek Polacek References: <55D6037F.7030704@samsung.com> Cc: GCC Patches , Jakub Jelinek , Vyacheslav Tyrtov From: Jeff Law Message-ID: <55D60E52.3000406@redhat.com> Date: Thu, 20 Aug 2015 17:35:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 MIME-Version: 1.0 In-Reply-To: <55D6037F.7030704@samsung.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2015-08/txt/msg01237.txt.bz2 On 08/20/2015 10:42 AM, Yury Gribov wrote: > Hi all, > > GCC builtins BUILT_IN_UBSAN_HANDLE_NONNULL_ARG and > BUILT_IN_UBSAN_HANDLE_NONNULL_ARG_ABORT were using > BT_FN_VOID_PTR_PTRMODE whereas they are really BT_FN_VOID_PTR: > void __ubsan::__ubsan_handle_nonnull_return(NonNullReturnData *Data) > > The patch fixes it. I only tested ubsan.exp (I doubt that bootstrap + > full testsuite will add anything to this). > > Ok for trunk? > > Best regards, > Yury Gribov > > fix-ubsan-builtin-types-1.patch > > > commit d4747c9c7f78789ec7119fce07cd4526c4168ee0 > Author: Yury Gribov > Date: Thu Aug 20 19:10:30 2015 +0300 > > 2015-08-20 Yury Gribov > > gcc/ > * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG, > BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types. OK. jeff