From patchwork Thu May 31 09:35:00 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Richard Earnshaw \(lists\)" X-Patchwork-Id: 137341 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp6369238lji; Thu, 31 May 2018 02:35:20 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKzKS8amRnVKJAwsu9ZV0Tuq66QAzhgKVFZ/yM3CYkhuKRQjWFt8O8I88EUCmJ6SOdahGZM X-Received: by 2002:a62:4653:: with SMTP id t80-v6mr1259366pfa.58.1527759320477; Thu, 31 May 2018 02:35:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527759320; cv=none; d=google.com; s=arc-20160816; b=DNJBlpp2Oukt7Y719zae5yNJe1bL6waPrnDu5I/UR0p/5AKGBmFY9G+MzQ6dROq+1a zIwy9oaiub86HxIl2dMzRLfWbvqZumDLeXpi+xpabbo1c8PZ0A2elM3OIGFTugZyaCaC lni5JVohwhXEoB97Y7fUnOd1sMyefrG8Zgha5Uk0oAby3/w6PsFnTIlOgV8eIesybi8o VDWbyFAZ/iu6gtuC31XpSvhR/ClXqHquvE4sQIKCj0EGwa/JZdOHgVD3dShgxzjhrhss Vhpozh/6MGJ4UrI5eZT3dPbienV4HNgsNxOwm7oaFhy3WqPHwkhJIQHMhV5Te0n2PJaZ XMqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:user-agent:date:message-id:openpgp:subject:from:to :delivered-to:sender:list-help:list-post:list-archive:list-subscribe :list-unsubscribe:list-id:precedence:mailing-list:dkim-signature :domainkey-signature:arc-authentication-results; bh=77vWfbGhE/Bi5Fz3uoQP5yuRtlNtV7obtlu0vKUYr6g=; b=nYvOiMgrj/BR45xS8yi4NmFIX7lpzmlf5mSSu0ZUbgk30Ij6NzydUxk+roE2dE91zV LIblAoMinwAer3nnZx/sJVTYTMTgncTq1H/i5Cofzm4liae8H5XWnOYP+uiNWwF1KiNG EhU0Qb6W8gCeQ42lxNwvFn44mC8Nc8flNI6c0sTkBnroZ2n9fDHT24fcSjcXszc0IJOp V9FYY/XR3NZi6Msj6jfQVgoyZFE2sUqXW34TA7CNSYmkHiAZGxPs0hrVLz7vvoy9gbE3 CWNlJ+U/T2sZikWRAGAHS+YNrMNlB22wfKPLiMcs83zbpO6gubk8QMShli7PmjgMiVTf Es/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=NWYLfCO2; spf=pass (google.com: domain of binutils-return-101903-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=binutils-return-101903-patch=linaro.org@sourceware.org Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id g7-v6si28445763pgq.372.2018.05.31.02.35.19 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 31 May 2018 02:35:20 -0700 (PDT) Received-SPF: pass (google.com: domain of binutils-return-101903-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Authentication-Results: mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=NWYLfCO2; spf=pass (google.com: domain of binutils-return-101903-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=binutils-return-101903-patch=linaro.org@sourceware.org DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:to:from:subject:message-id:date:mime-version :content-type; q=dns; s=default; b=StnuVx1myCin9P+J6PXXwfEwlYKV3 SXKb1+Qj/1GD3wqIo4BE48sYda2f0NMp93RZoEQPgieEnBC1JYYclUZhkqgK367A QdiyWgJBX5z8fgERUadDMvvFlYojxIJ0aG7qrZ9fT8Aiz3KvWsy+ZKoqyEASx3DL ZnJ8QrX9QZ57JI= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:to:from:subject:message-id:date:mime-version :content-type; s=default; bh=7c9g8RJMQVxtXL3aUcM58SRlXYw=; b=NWY LfCO243LUHKPAGtvwtQSyyp/M/IaKJX5iG2xumewH8y0up3bKm44b+RmQPOMbh9X K6uD9kAm/YDUL8kTn2R+jl/It+YIheEp7QaOAEJXQe3g+hMcEHeCN2B38aD254+E WfbO+u7lrkJC8ww4hB59yWlNM3QGCijF4BDE+yV8= Received: (qmail 81948 invoked by alias); 31 May 2018 09:35:06 -0000 Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org Delivered-To: mailing list binutils@sourceware.org Received: (qmail 81927 invoked by uid 89); 31 May 2018 09:35:06 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_SHORT, SPF_PASS autolearn=ham version=3.3.2 spammy=2018-03, 201803 X-Spam-User: qpsmtpd, 2 recipients X-HELO: foss.arm.com Received: from usa-sjc-mx-foss1.foss.arm.com (HELO foss.arm.com) (217.140.101.70) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 31 May 2018 09:35:04 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 88AF51596; Thu, 31 May 2018 02:35:02 -0700 (PDT) Received: from e120077-lin.cambridge.arm.com (e120077-lin.cambridge.arm.com [10.2.206.221]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id E36793F24A; Thu, 31 May 2018 02:35:01 -0700 (PDT) To: binutils@sourceware.org, gdb-patches@sourceware.org From: "Richard Earnshaw (lists)" Subject: Sync include & libiberty with gcc Openpgp: preference=signencrypt Message-ID: <3e2558b3-0eac-00f4-3287-30e54657a563@arm.com> Date: Thu, 31 May 2018 10:35:00 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 I've just pushed 3 patches to bring libiberty and necessary include files into line with the recent pushes to gcc's copies of these files. For the record these are memory leak in argv.c: https://gcc.gnu.org/ml/gcc-patches/2017-12/msg01609.html alignment for ubsan in md5.c: https://gcc.gnu.org/ml/gcc-patches/2018-03/msg00019.html new function in splay-tree.c: https://gcc.gnu.org/ml/gcc-patches/2018-05/msg01547.html >From f7eadf51a8cd6e94ba33cd0b5b2a5063145859d6 Mon Sep 17 00:00:00 2001 From: marxin Date: Thu, 10 May 2018 10:15:42 +0000 Subject: [PATCH] Improve boostrap-ubsan config (PR bootstrap/64914). 2018-05-10 Martin Liska PR bootstrap/64914 * md5.c: Use strict alignment with UBSAN_BOOTSTRAP. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@260112 138bc75d-0d04-0410-961f-82ee72b054a4 --- libiberty/ChangeLog | 5 +++++ libiberty/md5.c | 2 +- 4 files changed, 14 insertions(+), 4 deletions(-) diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog index a116d37..b249226 100644 --- a/libiberty/ChangeLog +++ b/libiberty/ChangeLog @@ -1,3 +1,8 @@ +2018-05-10 Martin Liska + + PR bootstrap/64914 + * md5.c: Use strict alignment with UBSAN_BOOTSTRAP. + 2018-04-30 Daniel van Gerpen * argv.c (expandargv): Fix memory leak for copied argv. diff --git a/libiberty/md5.c b/libiberty/md5.c index f106d22..4dd5186a 100644 --- a/libiberty/md5.c +++ b/libiberty/md5.c @@ -231,7 +231,7 @@ md5_process_bytes (const void *buffer, size_t len, struct md5_ctx *ctx) /* Process available complete blocks. */ if (len > 64) { -#if !_STRING_ARCH_unaligned +#if !_STRING_ARCH_unaligned || defined UBSAN_BOOTSTRAP /* To check alignment gcc has an appropriate operator. Other compilers don't. */ # if __GNUC__ >= 2 -- 2.7.4