From patchwork Mon Oct 23 09:38:40 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Sandiford X-Patchwork-Id: 116655 Delivered-To: patch@linaro.org Received: by 10.80.245.45 with SMTP id t42csp2654694edm; Mon, 23 Oct 2017 02:39:04 -0700 (PDT) X-Received: by 10.84.131.109 with SMTP id 100mr10300328pld.140.1508751544633; Mon, 23 Oct 2017 02:39:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1508751544; cv=none; d=google.com; s=arc-20160816; b=xIM8RigZpvKqqc+catogzxNFtHHirSuOQaQ5VQedoMGJ/48BjlD/wwnXuRsDcb3qoM 0vTysjbD704sqnHzGPb/GUHELugkyude5T7ZGm3zI2gwmW7bRyd3ryvcbkJJHQ8LFT0h Etun+dGDfp35zrE8SC1Jba87Syn8HjfGjKeQwkR5vmoD4e0OWeGSkt9pZSv9niHiwX5x n68J6wnkOQpag2fcdccXXN/NM1mayy+0Msz6OwsWLPDCYXlYh3uIBeMqkFU+h7xWgQai +x0HYhr1YLG08QSY+6bmj07qMpyrFSeBqHBx7iNqqZAjYAJBJ4aYmokQ1EoXyxj1cT71 urkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:user-agent:message-id:date:subject:mail-followup-to:to :from:delivered-to:sender:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:mailing-list:dkim-signature :domainkey-signature:arc-authentication-results; bh=XbySgFoy6wwXWJ5jjeqB9EYQM33DRqQzUvdVRhZy1RU=; b=Dpwz4326eCqs8JGPO+0np3APalaZT7trBDkYsDlXbkPnsv3xsBGeZoCg8Y69Yxx51O Hn32MMq2sNz+z9yYcVHuSMxwgI7vyxsykKnrvm8DwUDubL9jveeSJsV9Z/JEQtUSqPZ9 EKIiN0h7ThU0Cu5YVJk0LVmtf1ouGTz+SVlo6KQqzSZ3cTQK+xVBk+5CTT/1grxE2o0W QLeSRz5fFnoT0nqHF17mWBN5FGIQ8x5YOH1u6TSRMl0cmJb6c34G+FP1WTHkncsdCCY3 6W8c/3Pbc9I5kCpzf4mGyqSG8g3KwKjwwB7kbVpZBT9l6TtCy7G0WrA2NB4sqt0FHfYG Jaeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=YR6gud4z; spf=pass (google.com: domain of gcc-patches-return-464707-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=gcc-patches-return-464707-patch=linaro.org@gcc.gnu.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 w10si3764637plp.477.2017.10.23.02.39.04 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 23 Oct 2017 02:39:04 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-return-464707-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=YR6gud4z; spf=pass (google.com: domain of gcc-patches-return-464707-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=gcc-patches-return-464707-patch=linaro.org@gcc.gnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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:subject:date:message-id:mime-version:content-type; q=dns; s= default; b=DN6rOFI8rDKBgX6HJkC7yGXPZqlZm0njZgfl9/ZpsohTVj35wcK5z 7DO4Re+fcQ7NztV23wOQum+EdhB5ZBsSMxlGY5DZubVsA/MIX67a2T6jddwdSMAk +h/ESIbYAa2gTMa+nW25xtsemovEhDfjDYpAt/H1mN69dgGB9Gm+Q0= 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:subject:date:message-id:mime-version:content-type; s= default; bh=H7j7wQRAUh5x2Q9oR3EECe57pcU=; b=YR6gud4zWJD+hmx2oTfM zO1iL3Q8/gYOvDKTe6rvyr9V9Ljor0oXHET2iFFvYfK2sKl46axlS1RFGeHGtyXA kUV33npQREzpXnvbpCOsqqrw0/fF4wG8GruuZpqCo/J43Hlm5kz90TLXgcUQVEgy zvibzI6Ko62PdNAp1wwLQXM= Received: (qmail 106703 invoked by alias); 23 Oct 2017 09:38:45 -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 106504 invoked by uid 89); 23 Oct 2017 09:38:45 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-11.1 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_SPAM, SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mail-wr0-f178.google.com Received: from mail-wr0-f178.google.com (HELO mail-wr0-f178.google.com) (209.85.128.178) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 23 Oct 2017 09:38:43 +0000 Received: by mail-wr0-f178.google.com with SMTP id r79so16645752wrb.13 for ; Mon, 23 Oct 2017 02:38:43 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:mail-followup-to:subject:date:message-id :user-agent:mime-version; bh=XbySgFoy6wwXWJ5jjeqB9EYQM33DRqQzUvdVRhZy1RU=; b=mRQLnf1oYdp/Kq0diBn9rCASOTR3XMTR/LWYJOufiW3a9UWhg3IvVkEjRrS1TLKSkv aktQ+uRsXjCAmqljDHCWmpLl/EA/LMl+IfvayKvSVGKOY/DzZe2opT4fqXiUqooSNOOi Ij0SHeQxn9ktKm+dRq3nm8x+VXEs/4krAyxPDQNzaeSlFPHzByqe9gEJoG8W59pgr0cj Bhl1HVN8q6X6VU5yTcOSoTAy7mt5kgeUFSx6Ikh7yQhiDSXfXqa4B2/YoDwiLpCLRMfX FHpMxprmQ8US3bceufuk4TKfJvZzJeX0jtkmVmAAN9B/8UwJmyeQPQVhB3eD61qcKcyn ifEA== X-Gm-Message-State: AMCzsaWvDVqmprtDSfBvIq68czDolq2JeK7XoW+5UwGNUO2YDxyiu1gV Cho4WIyxoNQmwshRDHz3PCjctLksLt4= X-Google-Smtp-Source: ABhQp+QzZnkq3CYK3BzhDdbMLjXIzTWIlC7pBEUL7bo8hD+OH6y1tPxR5TPlpmS/YnbjoY47yg4gfA== X-Received: by 10.223.182.80 with SMTP id i16mr12003160wre.110.1508751521620; Mon, 23 Oct 2017 02:38:41 -0700 (PDT) Received: from localhost ([2.26.27.199]) by smtp.gmail.com with ESMTPSA id w5sm4368965wrg.65.2017.10.23.02.38.40 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 23 Oct 2017 02:38:40 -0700 (PDT) From: Richard Sandiford To: gcc-patches@gcc.gnu.org Mail-Followup-To: gcc-patches@gcc.gnu.org, richard.sandiford@linaro.org Subject: [committed] Use SCALAR_INT_TYPE_MODE in loc_list_from_tree_1 Date: Mon, 23 Oct 2017 10:38:40 +0100 Message-ID: <87fuaayzj3.fsf@linaro.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) MIME-Version: 1.0 This follows on from similar changes a couple of months ago and is needed when general modes have variable size. Tested on aarch64-linux-gnu, x86_64-linux-gnu and powerpc64le-linux-gnu. Applied as obvious. Richard 2017-10-23 Richard Sandiford Alan Hayward David Sherwood gcc/ * dwarf2out.c (loc_list_from_tree_1): Use SCALAR_INT_TYPE_MODE Index: gcc/dwarf2out.c =================================================================== --- gcc/dwarf2out.c 2017-10-19 21:19:47.742454435 +0100 +++ gcc/dwarf2out.c 2017-10-23 10:36:59.967280171 +0100 @@ -17482,7 +17482,7 @@ loc_list_from_tree_1 (tree loc, int want && (INTEGRAL_TYPE_P (TREE_TYPE (loc)) || POINTER_TYPE_P (TREE_TYPE (loc))) && DECL_CONTEXT (loc) == current_function_decl - && (GET_MODE_SIZE (TYPE_MODE (TREE_TYPE (loc))) + && (GET_MODE_SIZE (SCALAR_INT_TYPE_MODE (TREE_TYPE (loc))) <= DWARF2_ADDR_SIZE)) { dw_die_ref ref = lookup_decl_die (loc);