From patchwork Fri Oct 28 05:00:24 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Prathamesh Kulkarni X-Patchwork-Id: 79839 Delivered-To: patch@linaro.org Received: by 10.140.97.247 with SMTP id m110csp991459qge; Thu, 27 Oct 2016 22:00:54 -0700 (PDT) X-Received: by 10.99.110.201 with SMTP id j192mr17710320pgc.133.1477630854558; Thu, 27 Oct 2016 22:00:54 -0700 (PDT) Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id d76si11557113pfl.192.2016.10.27.22.00.54 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 27 Oct 2016 22:00:54 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-return-439792-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; spf=pass (google.com: domain of gcc-patches-return-439792-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=gcc-patches-return-439792-patch=linaro.org@gcc.gnu.org; dmarc=fail (p=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 :mime-version:from:date:message-id:subject:to:content-type; q= dns; s=default; b=BVSHW9vGl/BRo5Ve1pvar4nQIoKJsHCwBTB9Io9+bWshj0 vIrnCjEANjN4g7h/S8cQW43n7CJfGYhL8fKW3tcEPRwoAt4RBgLI4EGJxpjlcwAb DwqjErFVt3KKY18rxIKVueoJjux5cvHKNlPre6e65p+gCFhFhW+7MBNk9nDJM= 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 :mime-version:from:date:message-id:subject:to:content-type; s= default; bh=c6s2uDTuZNhSadA09kIo2McMfdo=; b=aG5myuNQq3tDERYO+3Vr 1FQ/ZM2ogVa0du6Vy78+ovauAINT3eQXRWY5OpyarZRYFKGGJocr5vZBhm1zgbkX Ah7GlcCB5fqZFeEyBjvk7V88EY4VsgzLRGxB+AIc0YcXJDYJcG39dGvj2IAXDn8G XoscSGpCqiu3pL6vjFFhRSQ= Received: (qmail 72396 invoked by alias); 28 Oct 2016 05:00:42 -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 72334 invoked by uid 89); 28 Oct 2016 05:00:37 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.3 required=5.0 tests=AWL, BAYES_00, KAM_STOCKGEN, RCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_SPAM, SPF_PASS autolearn=no version=3.3.2 spammy=H*r:10.107.164, 2016-10-28, 20161028 X-HELO: mail-oi0-f50.google.com Received: from mail-oi0-f50.google.com (HELO mail-oi0-f50.google.com) (209.85.218.50) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 28 Oct 2016 05:00:27 +0000 Received: by mail-oi0-f50.google.com with SMTP id y2so99913588oie.0 for ; Thu, 27 Oct 2016 22:00:26 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=z832QGQPO6PTp5kz1SuFNUwFoF49BzW77rewlu6AW6E=; b=SH3fb3LdCVqDjbuHcMXsiOggybsDNfuhtRw9shAlVAuDHmduqbvkiu+niN2KdZ7p21 TbrnMriIZKSNPpveUNwTsUTrjqVDMF7F3wrGYxqtnJ1lL0MCZ9x1Brv83NkYOSvUVdB5 i3JV6uOFFNq3DXRyqLa+g6cTcSfItkYV6lvx07EymGBrcyhbmPt80Wv/I1BRm4vnmKeu qRfluIQ//zP8rJVN9WmX4wudL6gTvctF7ex463zP4ZZfBlm/3BhelsKPCtYD81yjMBAr T8yw6Qakf07j0zaCgkwAuncYyicsWPEPC5+bCHwtu9Y236q/R5vS6NRLAtDI8q4zAQaZ S0RA== X-Gm-Message-State: ABUngvep7K4dKgJAD30QA38t1n+uU8NQf3Cqqy0Sb6sZUgeqMkT/Fx0ewBNZv5K+x2byzY9umoDUZWBWlLSeBhyv X-Received: by 10.36.27.68 with SMTP id 65mr1260354its.21.1477630825092; Thu, 27 Oct 2016 22:00:25 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.164.158 with HTTP; Thu, 27 Oct 2016 22:00:24 -0700 (PDT) From: Prathamesh Kulkarni Date: Fri, 28 Oct 2016 10:30:24 +0530 Message-ID: Subject: [arm.c] Use VAR_P To: gcc Patches , Kyrill Tkachov X-IsSubscribed: yes Hi, This patch uses replaces TREE_CODE(x) == VAR_DECL by VAR_P(x) in arm.c. Bootstrap+tested on arm-linux-gnueabihf. OK to commit ? Thanks, Prathamesh 2016-10-28 Prathamesh Kulkarni * config/arm/arm.c (arm_const_not_ok_for_debug_p): Use VAR_P. diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c index 3c4c704..a39e64f 100644 --- a/gcc/config/arm/arm.c +++ b/gcc/config/arm/arm.c @@ -30150,9 +30150,9 @@ arm_const_not_ok_for_debug_p (rtx p) && GET_CODE (XEXP (p, 0)) == SYMBOL_REF && (decl_op0 = SYMBOL_REF_DECL (XEXP (p, 0)))) { - if ((TREE_CODE (decl_op1) == VAR_DECL + if ((VAR_P (decl_op1) || TREE_CODE (decl_op1) == CONST_DECL) - && (TREE_CODE (decl_op0) == VAR_DECL + && (VAR_P (decl_op0) || TREE_CODE (decl_op0) == CONST_DECL)) return (get_variable_section (decl_op1, false) != get_variable_section (decl_op0, false));