From patchwork Tue Apr 4 09:59:00 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Claudiu Zissulescu X-Patchwork-Id: 746724 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org 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 3vy4Lq0wgqz9s8F for ; Tue, 4 Apr 2017 20:04:02 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="J0dIyeA2"; dkim-atps=neutral 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:in-reply-to:references :mime-version:content-type; q=dns; s=default; b=fK0MHycHvsgtLQgm 7C7gKYSdO8MVw13FIYO7MKhed0YdiecWwrzdO4x++vUMuh63kcUxYyjSbRZhw6GZ RbGCWzA2XyTUFkO1SYmEqx3N7IGVbtPdtXpmhHLtrWjJC1Ylyn/1p0HEFf47HaN6 sKSCoqCuuBbitESSmmXPFOEoX/g= 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:in-reply-to:references :mime-version:content-type; s=default; bh=+JP8TMDGcCA9HoriVZ4vDt 5rrkg=; b=J0dIyeA2Lz54A/QZb0ZHofU3ITexbghmvvjCj1m0MWYYMJi1WeonA1 Pzt6KlCBRT9jrUE64VsgcqPWEi8pme3MKBM3NE9AlU4a4aL2y9YV8+H9xDm8hU/4 8vLQeL1wozlbMhyzAP+EV1XG457JDA669XagLKgmYbHvnWOexlxZY= Received: (qmail 15692 invoked by alias); 4 Apr 2017 10:01:43 -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 15628 invoked by uid 89); 4 Apr 2017 10:01:43 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-23.6 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_LAZY_DOMAIN_SECURITY, RCVD_IN_DNSWL_NONE, RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=Hx-spam-relays-external:sk:mailhos, H*RU:sk:mailhos, Hx-languages-length:2370 X-HELO: smtprelay.synopsys.com Received: from smtprelay.synopsys.com (HELO smtprelay.synopsys.com) (198.182.60.111) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 04 Apr 2017 10:01:41 +0000 Received: from mailhost.synopsys.com (mailhost2.synopsys.com [10.13.184.66]) by smtprelay.synopsys.com (Postfix) with ESMTP id 8A0B510C1000; Tue, 4 Apr 2017 03:01:40 -0700 (PDT) Received: from mailhost.synopsys.com (localhost [127.0.0.1]) by mailhost.synopsys.com (Postfix) with ESMTP id 78168B7E; Tue, 4 Apr 2017 03:01:40 -0700 (PDT) Received: from US01WXQAHTC1.internal.synopsys.com (us01wxqahtc1.internal.synopsys.com [10.12.238.230]) by mailhost.synopsys.com (Postfix) with ESMTP id 6E758B7D; Tue, 4 Apr 2017 03:01:40 -0700 (PDT) Received: from IN01WEHTCB.internal.synopsys.com (10.144.199.106) by US01WXQAHTC1.internal.synopsys.com (10.12.238.230) with Microsoft SMTP Server (TLS) id 14.3.266.1; Tue, 4 Apr 2017 03:01:40 -0700 Received: from IN01WEHTCA.internal.synopsys.com (10.144.199.103) by IN01WEHTCB.internal.synopsys.com (10.144.199.105) with Microsoft SMTP Server (TLS) id 14.3.266.1; Tue, 4 Apr 2017 15:31:39 +0530 Received: from nl20droid1.internal.synopsys.com (10.100.24.228) by IN01WEHTCA.internal.synopsys.com (10.144.199.243) with Microsoft SMTP Server (TLS) id 14.3.266.1; Tue, 4 Apr 2017 15:31:39 +0530 From: Claudiu Zissulescu To: CC: , , Subject: [PATCH 2/3] [ARC] DWARF emitting cleanup. Date: Tue, 4 Apr 2017 11:59:00 +0200 Message-ID: <1491299941-3908-3-git-send-email-claziss@synopsys.com> In-Reply-To: <1491299941-3908-1-git-send-email-claziss@synopsys.com> References: <1491299941-3908-1-git-send-email-claziss@synopsys.com> MIME-Version: 1.0 The use of CFA_FRAME_BASE_OFFSET and ARG_POINTER_CFA_OFFSET macros leads to wrong offset calculation for DW_OP_fbreg constructions. Remove them. gcc/ 2016-10-17 Claudiu Zissulescu * config/arc/arc-protos.h (arc_decl_pretend_args): Remove. * config/arc/arc.c (arc_decl_pretend_args): Likewise. * config/arc/arc.h (CFA_FRAME_BASE_OFFSET): Likewise. (ARG_POINTER_CFA_OFFSET): Likewise. --- gcc/config/arc/arc-protos.h | 1 - gcc/config/arc/arc.c | 11 ----------- gcc/config/arc/arc.h | 5 ----- 3 files changed, 17 deletions(-) diff --git a/gcc/config/arc/arc-protos.h b/gcc/config/arc/arc-protos.h index 55a7bf7..4ff8e9b 100644 --- a/gcc/config/arc/arc-protos.h +++ b/gcc/config/arc/arc-protos.h @@ -109,7 +109,6 @@ extern int arc_label_align (rtx_insn *label); extern bool arc_need_delay (rtx_insn *insn); extern bool arc_text_label (rtx_insn *insn); -extern int arc_decl_pretend_args (tree decl); extern bool arc_short_comparison_p (rtx, int); extern bool arc_epilogue_uses (int regno); extern bool arc_eh_uses (int regno); diff --git a/gcc/config/arc/arc.c b/gcc/config/arc/arc.c index 165f3d6..d8ac6a6 100644 --- a/gcc/config/arc/arc.c +++ b/gcc/config/arc/arc.c @@ -9470,17 +9470,6 @@ arc_text_label (rtx_insn *label) return false; } -/* Return the size of the pretend args for DECL. */ - -int -arc_decl_pretend_args (tree decl) -{ - /* struct function is in DECL_STRUCT_FUNCTION (decl), but no - pretend_args there... See PR38391. */ - gcc_assert (decl == current_function_decl); - return crtl->args.pretend_args_size; -} - /* Without this, gcc.dg/tree-prof/bb-reorg.c fails to assemble when compiling with -O2 -freorder-blocks-and-partition -fprofile-use -D_PROFILE_USE; delay branch scheduling then follows a crossing jump diff --git a/gcc/config/arc/arc.h b/gcc/config/arc/arc.h index 24c2346..0237e66 100644 --- a/gcc/config/arc/arc.h +++ b/gcc/config/arc/arc.h @@ -1584,11 +1584,6 @@ extern enum arc_function_type arc_compute_function_type (struct function *); #define INIT_EXPANDERS arc_init_expanders () -#define CFA_FRAME_BASE_OFFSET(FUNDECL) (-arc_decl_pretend_args ((FUNDECL))) - -#define ARG_POINTER_CFA_OFFSET(FNDECL) \ - (FIRST_PARM_OFFSET (FNDECL) + arc_decl_pretend_args ((FNDECL))) - enum { ARC_LRA_PRIORITY_NONE, ARC_LRA_PRIORITY_NONCOMPACT, ARC_LRA_PRIORITY_COMPACT