From patchwork Tue Jul 17 12:30:28 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Claudiu Zissulescu X-Patchwork-Id: 945009 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-481722-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="UpdjC9UP"; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="PMpQyLw5"; 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 41VKPn1H5vz9s0n for ; Tue, 17 Jul 2018 22:30:51 +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; q=dns; s=default; b=hD33FbBWCshH CBI9Gl6yZ5pG1nQUWz8U2/EmxE63qNsK6P9Nr960gncUxHieJhPNGFAgMMbcVtBm hGuM4KYW62JvV+KC+7SxgpAtZtceYQyexQIrYymBd+cAMk/4WC65OyY88y530qUd 725TEEaKLNxoNBgenTE1YSSnEvGt5v8= 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; s=default; bh=8DHL7HWr0iC80qj3Ur XmZ9sSGVE=; b=UpdjC9UPGWnErPhYdogr0Rtn19OLLilWbA33JtFL4y3XtycUvG z2dJc3S9fJ2gL//VYlyJk+lnAnnCkEJ4jysGzGFSdlwcr0N3iBHZYA4tQQZ2Snmf L1SF7bLC88zqs+J4HfQfYciBpKNF38KYwKIMxUMfGNIoId0B5Du3dPBFk= Received: (qmail 108611 invoked by alias); 17 Jul 2018 12:30:44 -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 108586 invoked by uid 89); 17 Jul 2018 12:30:42 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, 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=HX-Received:sk:c22-v6m, Committed, align_labels X-HELO: mail-wm0-f47.google.com Received: from mail-wm0-f47.google.com (HELO mail-wm0-f47.google.com) (74.125.82.47) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 17 Jul 2018 12:30:41 +0000 Received: by mail-wm0-f47.google.com with SMTP id h20-v6so1325313wmb.4 for ; Tue, 17 Jul 2018 05:30:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=8YasfmBRenfnkxoc1ghnC07yS6vpq96ENNm/3fj6wYk=; b=PMpQyLw5FBmwyITRF91LLF/U8CzZEVH82TlFBjKQAmRdLyWi/cLs61hqFMw/DVNOAS DYv0Vecqb6GIvZk2UZi26PAoQk1VcZ4ArsD2cbUKYEP51Bm6qydNuDYzyJsS2oBkIOI3 ZfcWk8G/tpmDk50m4J/LklxNdjT47/tMdZvFvA8nkZwZIgTDM899qQLJIpHcLRxhVSUP /vtOHJCx9grMmGhwHixtqA8QeKKV8jcZTcCJTF51ISoDHSEOmi8A4thdRWCit7G/IeIi VgpgYPp/VsZFch5YKB54/RcTlhlAM4hDih0vN6TetsDhh/Jw4sOWcazgbqprEeng5on7 lZbg== Received: from localhost.localdomain ([188.241.79.25]) by smtp.gmail.com with ESMTPSA id q11-v6sm2100965wrp.58.2018.07.17.05.30.38 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 17 Jul 2018 05:30:38 -0700 (PDT) From: Claudiu Zissulescu To: gcc-patches@gcc.gnu.org Cc: fbedard@synopsys.com, andrew.burgess@embecosm.com, claziss Subject: [PATCH][COMMITTED][ARC] Don't use deprecated align_labels_log variable. Date: Tue, 17 Jul 2018 15:30:28 +0300 Message-Id: <20180717123028.4474-1-claziss@gmail.com> X-IsSubscribed: yes From: claziss Use new align_lables struct instead of the deprecated align_labels_log variable. Committed as obvious. 2018-07-17 Claudiu Zissulescu * config/arc/arc.c (arc_label_align): Use align_labels instead of deprecated align_labels_log. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@262820 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 5 +++++ gcc/config/arc/arc.c | 9 +++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b87c00a2d49..27f8a722fa5 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2018-07-17 Claudiu Zissulescu + + * config/arc/arc.c (arc_label_align): Use align_labels instead of + deprecated align_labels_log. + 2018-07-17 Richard Biener PR lto/86456 diff --git a/gcc/config/arc/arc.c b/gcc/config/arc/arc.c index 8bb7d74c2c9..4cbf7ab2b33 100644 --- a/gcc/config/arc/arc.c +++ b/gcc/config/arc/arc.c @@ -9762,18 +9762,19 @@ arc_scheduling_not_expected (void) return cfun->machine->arc_reorg_started; } +/* Code has a minimum p2 alignment of 1, which we must restore after + an ADDR_DIFF_VEC. */ + int arc_label_align (rtx_insn *label) { - /* Code has a minimum p2 alignment of 1, which we must restore after an - ADDR_DIFF_VEC. */ - if (align_labels_log < 1) + if (align_labels.levels[0].log < 1) { rtx_insn *next = next_nonnote_nondebug_insn (label); if (INSN_P (next) && recog_memoized (next) >= 0) return 1; } - return align_labels_log; + return align_labels.levels[0].log; } /* Return true if LABEL is in executable code. */