From patchwork Sat Apr 9 09:31:20 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Dominique_d=27Humi=C3=A8res?= X-Patchwork-Id: 608357 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3qhrgg5vJJz9t4P for ; Sat, 9 Apr 2016 19:31:42 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=tZhN+ukV; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; q=dns; s= default; b=mTnxKh+xHtJgBGESxX0qQB0POcNIMgjpGc1F0572wkWpfILOeqmNW PI+Oa7rOQDnk2Vjgx+xjLz2ADzdFr70ujKKvOQRxJnjO7RGYNrur8PvLoFWbFm4z GP03bWTOo4yC3xg15kK0CWxIcimPeKGgznSNrTORaPKA4NzzJ8p/d8= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; s=default; bh=32KqDrrsTi3/8tFMGhZYsQbSytg=; b=tZhN+ukVb0Kcj1LFJiBYc3guPY5o rIiBkA2XcpnVzRaom1sXqMfuV2qnRvA5ACBRKFSfFY5ht6wj1IBK+plX/6jVFfGP EDpA0/aD8AKmYUu85hcV0vLorntF/3HZga9kXDqgLVd4k2cXX4suN3leZKppM2jr oCzecg/OCaIZYEo= Received: (qmail 112326 invoked by alias); 9 Apr 2016 09:31:35 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 112314 invoked by uid 89); 9 Apr 2016 09:31:35 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.7 required=5.0 tests=AWL, BAYES_00, KAM_ASCII_DIVIDERS, KAM_LAZY_DOMAIN_SECURITY, RP_MATCHES_RCVD autolearn=no version=3.3.2 spammy=HX-Greylist:Sat, Hx-languages-length:1567, 2016-04-09, ten X-HELO: nef2.ens.fr Received: from nef2.ens.fr (HELO nef2.ens.fr) (129.199.96.40) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 09 Apr 2016 09:31:24 +0000 Received: from mailhost.lps.ens.fr (tournesol.lps.ens.fr [129.199.120.1]) by nef2.ens.fr (8.13.6/1.01.28121999) with ESMTP id u399VK3Q039330 ; Sat, 9 Apr 2016 11:31:21 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mailhost.lps.ens.fr (Postfix) with ESMTP id F079A169; Sat, 9 Apr 2016 11:31:20 +0200 (CEST) Received: from mailhost.lps.ens.fr ([127.0.0.1]) by localhost (tournesol.lps.ens.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0S88iPmbg3cR; Sat, 9 Apr 2016 11:31:20 +0200 (CEST) Received: from [192.168.1.10] (log78-1-82-242-47-10.fbx.proxad.net [82.242.47.10]) by mailhost.lps.ens.fr (Postfix) with ESMTPSA id B45FE162; Sat, 9 Apr 2016 11:31:20 +0200 (CEST) Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: [committed] Fix [Bug sanitizer/70573] FAIL: c-c++-common/asan/halt_on_error-1.c From: =?utf-8?Q?Dominique_d=27Humi=C3=A8res?= In-Reply-To: <5707AE2E.9040104@samsung.com> Date: Sat, 9 Apr 2016 11:31:20 +0200 Cc: Maxim Ostapenko , Jakub Jelinek , gcc-patches Message-Id: <797F65C9-0528-44FE-8DD4-DE3F8082BF0E@lps.ens.fr> References: <5707AE2E.9040104@samsung.com> To: Yury Gribov I have committed the following patch for PR70573 (preapproved by Jakub Jelinek in bugzilla) Dominique Index: gcc/testsuite/ChangeLog =================================================================== --- gcc/testsuite/ChangeLog (revision 234847) +++ gcc/testsuite/ChangeLog (working copy) @@ -1,3 +1,10 @@ +2016-04-09 Dominique d'Humieres + + PR sanitizer/70573 + * c-c++-common/asan/halt_on_error-1.c: Replace memset + with __builtin_memset + * c-c++-common/asan/halt_on_error-2.c: Likewise. + 2016-04-08 Cesar Philippidis PR lto/70289 Index: gcc/testsuite/c-c++-common/asan/halt_on_error-1.c =================================================================== --- gcc/testsuite/c-c++-common/asan/halt_on_error-1.c (revision 234847) +++ gcc/testsuite/c-c++-common/asan/halt_on_error-1.c (working copy) @@ -9,7 +9,7 @@ int main() { char x[10]; - memset(x, 0, ten + 1); + __builtin_memset(x, 0, ten + 1); asm volatile ("" : : : "memory"); volatile int res = x[ten]; x[ten] = res + 3; Index: gcc/testsuite/c-c++-common/asan/halt_on_error-2.c =================================================================== --- gcc/testsuite/c-c++-common/asan/halt_on_error-2.c (revision 234847) +++ gcc/testsuite/c-c++-common/asan/halt_on_error-2.c (working copy) @@ -10,7 +10,7 @@ int main() { char x[10]; - memset(x, 0, ten + 1); + __builtin_memset(x, 0, ten + 1); asm volatile ("" : : : "memory"); volatile int res = x[ten]; x[ten] = res + 3;