From patchwork Mon Oct 1 21:34:22 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Lyon X-Patchwork-Id: 147937 Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp4396986lji; Mon, 1 Oct 2018 14:34:47 -0700 (PDT) X-Google-Smtp-Source: ACcGV60VRebxlwIpDOnLYALUI+cY+cI/z1sKmTZlaTuAKQBs24+cz/k+wHfYdADhXtb2z64OEE4i X-Received: by 2002:a17:902:bf0a:: with SMTP id bi10-v6mr11108378plb.163.1538429686985; Mon, 01 Oct 2018 14:34:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538429686; cv=none; d=google.com; s=arc-20160816; b=FvRk3Hrl9+STSxXN8SL33AiE5jIv9/4XyFCmqLw97HmlUux40WgkdF1vH6mWLhDSaF VJP41E8h6dSjVaSuESbLjLSeJbGrauK+0Go4S66uypLIJmn6Mydn0uNfykYACgiSqwcR mQ75Y+ehykA1zSFP00HIGNE2bVE8dRlPvHuS8Et8aHZhZouwCpIYXTxWtp10unaUXo+s AS9RvEyuXPE4pke5cfCiIqENOgLi6Xx+9F+D75fcIeai3p6XtVqYRhWBc3fHcCP5JGx8 JjUwtKDUVmvQkcsPHtzcmoo+uYFkv5qL6qKxDwPFDsNvqC6Zu6yaZcY8STiC8hdti00Q X4iA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:subject:message-id:date:from:mime-version:dkim-signature :delivered-to:sender:list-help:list-post:list-archive:list-subscribe :list-unsubscribe:list-id:precedence:mailing-list:dkim-signature :domainkey-signature; bh=29zUNxuQ74OxMf+rIIIuFDQ0MZ/SsfdCBgMChsLk8Nc=; b=w3Z6L7b2Pj6ncejfcVDXckY0kxTw/yXhS4A34ozvewiY+hf5kBt4XWtr+pIjtTrnkY JgVj2VAySudqS0ts+VQSQi9RlWVHHC8x3Dlkygz4d1wSS9EbQJnj8B81VSBlRMYoiYL7 gNSvs9swjK+oFn7Hl/0CuChF/aQWpRlFdCmae3q3TjcvdOh3r2tsrF7wXxBchBmnkjNf BT1h4dSFnMIh/x9YvYj2qHsRPJuP2FvJca/Y6IHfcj/u4nDSg8/gWiDeDXrS5fr3+AFI 6nGmmfhV+npek2yx+TuQvP0bl6sRV9HZBnfMDvgRbroH6etkB/tHsEYlZReitgTzTueQ UqPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=eWT595VF; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=YpDs6DJy; spf=pass (google.com: domain of newlib-return-16506-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom="newlib-return-16506-patch=linaro.org@sourceware.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id u26-v6si12011653pge.590.2018.10.01.14.34.46 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 01 Oct 2018 14:34:46 -0700 (PDT) Received-SPF: pass (google.com: domain of newlib-return-16506-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=eWT595VF; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=YpDs6DJy; spf=pass (google.com: domain of newlib-return-16506-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom="newlib-return-16506-patch=linaro.org@sourceware.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.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:mime-version:from:date:message-id:subject:to :content-type; q=dns; s=default; b=aBzHCmXmzSf6VeYaOehq8Dh27XnB1 iHq0SYPDobSMszh1WNeFVuImyZCU+LYU2plSxFjOlfJxiMxRZ8r+Qd6OsRWmzVkT XchfdmqAU+X1fqRqRU/lkoaCR+h+FfWwSn9j4+DihjvuOkK8HkFZAxwJXDoMpCfg Dd+sPH4nHj1Hw0= 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:mime-version:from:date:message-id:subject:to :content-type; s=default; bh=3lXb+vC9ASmFWapnVfr0T2OIkM0=; b=eWT 595VF8/9SARTbaFU1Q26dDMLr7rbjPCIOB+dWTtpvTEM3XbFCmgO5CNZ3OrMZjlh Cm1WDWsgfEIyfcUL2dbBtOGs3OjES+y/4r88LUDEZQjnfvRMbCN5bc/uwxMSy9gW WOFW/mc4l15zkkRST1zdUBG9Z4YoyWkUZmY5qwmU= Received: (qmail 40170 invoked by alias); 1 Oct 2018 21:34:38 -0000 Mailing-List: contact newlib-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: newlib-owner@sourceware.org Delivered-To: mailing list newlib@sourceware.org Received: (qmail 40155 invoked by uid 89); 1 Oct 2018 21:34:37 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-26.6 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.2 spammy=honour, Hx-languages-length:1031 X-HELO: mail-vk1-f178.google.com Received: from mail-vk1-f178.google.com (HELO mail-vk1-f178.google.com) (209.85.221.178) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 01 Oct 2018 21:34:35 +0000 Received: by mail-vk1-f178.google.com with SMTP id h200-v6so3369073vke.5 for ; Mon, 01 Oct 2018 14:34:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:from:date:message-id:subject:to; bh=6cpZij8Y15aMjyJgIurvdZn6ucBKwakqWS8wTZStNk0=; b=YpDs6DJysze8Rv4R9n2mMN0qvb65jqhIIdXRJ7Aq5Z+9/1TpywQ2ch/rb7DfKwybZD PoybMV0VnXNApQWNu7o5LdsDjEtH/N6Kz5sWF3zjf7GPRApljG4fznN8HLaxu+DQgS9e dVNr7tuN3sXbWo3NDdU6EQqR4BJE4EMFpTe1c= MIME-Version: 1.0 From: Christophe Lyon Date: Mon, 1 Oct 2018 23:34:22 +0200 Message-ID: Subject: [Aarch64] Fix warning in _sbrk To: newlib@sourceware.org X-IsSubscribed: yes Hi, While building newlib for Aarch64, I noticed a warning in _sbrk. This small patch fixes it the same way it is done in the Arm version. OK? Christophe commit 828bf40d0d822425cbfb0cd69dbb4e48cca66592 Author: Christophe Lyon Date: Mon Oct 1 19:08:40 2018 +0000 [Aarch64] Fix warning in _sbrk 2018-10-01 Christophe Lyon * libgloss/aarch64/syscalls.c (_sbrk): Cast "__heap_limit" to "char *". diff --git a/libgloss/aarch64/syscalls.c b/libgloss/aarch64/syscalls.c index 8198d3e..e6dd4bd 100644 --- a/libgloss/aarch64/syscalls.c +++ b/libgloss/aarch64/syscalls.c @@ -642,7 +642,7 @@ _sbrk (int incr) if ((heap_end + incr > stack_ptr) /* Honour heap limit if it's valid. */ - || ((__heap_limit != 0xcafedead) && (heap_end + incr > __heap_limit))) + || ((__heap_limit != 0xcafedead) && (heap_end + incr > (char *)__heap_limit))) { /* Some of the libstdc++-v3 tests rely upon detecting out of memory errors, so do not abort here. */