From patchwork Thu May 23 03:54:30 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Pinski X-Patchwork-Id: 1103808 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-501500-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=marvell.com Authentication-Results: ozlabs.org; dkim=temperror (0-bit key) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="AlHLfKAr"; dkim=pass (2048-bit key; unprotected) header.d=marvell.com header.i=@marvell.com header.b="NrTlC8Ok"; dkim-atps=neutral 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 458bHD36tCz9s5c for ; Thu, 23 May 2019 13:54:43 +1000 (AEST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:mime-version:content-type; q=dns; s=default; b=sH9tck10h2ILY/oLw5MztlBds0iQk6ZmcKjc9o4uleO/K2+/6x VnD9Vp34qy5lX7LROePT1QtSHE28doAFIAZy2VMWAtFgHWrdpeTfP6WBM5jwXtW7 piNAom15/oYheeeUK9c9q4FGUJh5xNMeFgwYQgQr8rAanPtBCriVgSx4s= 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:from :to:cc:subject:date:message-id:mime-version:content-type; s= default; bh=5lrF214vTCxqEOg6R2D4rHv54jI=; b=AlHLfKArf24RjBfZxT/3 yUB2cZhmA7bCsMf5vgd4OS1jtTnTBZG+J2JJj04oVEG1YmHCZRYsboBF7FDjii04 amLJHP5+3lIzJbTj9qRCMzZuUyRajjlJF26GdPm2iUW9kDgmLinCc4VYeZaNX07Q K4VKYvCqCE0MgNiRhcjrGjo= Received: (qmail 90424 invoked by alias); 23 May 2019 03:54:36 -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 90416 invoked by uid 89); 23 May 2019 03:54:36 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.1 spammy=HX-Languages-Length:901 X-HELO: mx0b-0016f401.pphosted.com Received: from mx0b-0016f401.pphosted.com (HELO mx0b-0016f401.pphosted.com) (67.231.156.173) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 23 May 2019 03:54:34 +0000 Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x4N3mE0X001383 for ; Wed, 22 May 2019 20:54:33 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=pfpt0818; bh=EV14nF4tegNPqo6yPuwz1j+JzctilTYWyDML3yfe7YU=; b=NrTlC8OkVf1AksRSlArdNNRFu8BvNVlgRhC4kkFe6pyvQow1PpFyXDMeyQ+YXPI7s4Rw p9IcK8qQJBgbiiBTJg5npCii+PegZOj1KbwGEIBR8GQnadPkR6s6SXGL4legc1wRtyk0 e1RurNS5CfGxvHLLtLfZ6GUfoPtXBjU+dYQwG+OsVHwc1FzAMQca7ER0eVqkmGSBXnDV nLJjQvLM143CtvLZQJ1vy4PYbQTvbZL3QuLHp7Yln8gcKJMDUMEmIiXLZj4n8pZV5DPd hpbMITBMwAE1tmWA728Ua1LFIcoCTdaZcP50DtaoGTRz1Pi8pm7Ou7NjfTIvSFmTjYWk Iw== Received: from sc-exch03.marvell.com ([199.233.58.183]) by mx0b-0016f401.pphosted.com with ESMTP id 2smnwjyuwu-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Wed, 22 May 2019 20:54:33 -0700 Received: from SC-EXCH03.marvell.com (10.93.176.83) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Wed, 22 May 2019 20:54:31 -0700 Received: from maili.marvell.com (10.93.176.43) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server id 15.0.1367.3 via Frontend Transport; Wed, 22 May 2019 20:54:31 -0700 Received: from apinski-lnx.caveonetworks.com. (unknown [10.111.142.135]) by maili.marvell.com (Postfix) with ESMTP id 8E63B3F703F; Wed, 22 May 2019 20:54:31 -0700 (PDT) From: Andrew Pinski To: CC: Andrew Pinski Subject: [PATCH] AARCH64: ILP32: Fix aarch64_asan_shadow_offset Date: Wed, 22 May 2019 20:54:30 -0700 Message-ID: <1558583670-29511-1-git-send-email-apinski@marvell.com> MIME-Version: 1.0 aarch64_asan_shadow_offset is using the wrong offset for ILP32. Change it to be a decent one. OK? Bootstrapped and tested on aarch64-linux-gnu with no regressions, Thanks, Andrew Pinski ChangeLog: * config/aarch64/aarch64.c (aarch64_asan_shadow_offset): Fix ILP32 value. --- gcc/config/aarch64/aarch64.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gcc/config/aarch64/aarch64.c b/gcc/config/aarch64/aarch64.c index 3d872438..e5fefe93 100644 --- a/gcc/config/aarch64/aarch64.c +++ b/gcc/config/aarch64/aarch64.c @@ -17258,7 +17258,10 @@ aarch64_expand_subvti (rtx op0, rtx low_dest, rtx low_in1, static unsigned HOST_WIDE_INT aarch64_asan_shadow_offset (void) { - return (HOST_WIDE_INT_1 << 36); + if (TARGET_ILP32) + return (HOST_WIDE_INT_1 << 29); + else + return (HOST_WIDE_INT_1 << 36); } static rtx