From patchwork Fri Jun 15 11:19:39 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Claudiu Zissulescu Ianculescu X-Patchwork-Id: 929885 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-479795-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (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="M0k1f2b9"; 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 416dLt2HRLz9s2L for ; Fri, 15 Jun 2018 21:20:05 +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=R/Plbt19tfTp cjMoOZQbL8a7qgJV4c3pY0+ukllg0a2oPdeLPEr161hVeYKgmdIVUTrW91BvnX5a I1ZvccBiegGlOS+r1dHH+HlsXYBMwbqE0+AK98V+Zy0hFIfiG6QoCccx6fZZMdPO OiriPi5B/WbJyH3c67SJoNDAQTTeNGw= 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=K8/IG4IeVP6yAp5zcm sgRMg5o28=; b=M0k1f2b9P0dkGywcXGk06YRGG6FHVaixjTYMzi2H9BAYgFpWUR rikl6h0oELR8pwVJgs3gUmWkX+i7D86sxouBC9s4MOJSM8xSCqE7HoOxofJ2px5k 8Yrg3WG8SK+qGmPONEC1LjY7ubOc63Ap0EMvUpJvbCh6QR3r+47WwskMU= Received: (qmail 84519 invoked by alias); 15 Jun 2018 11:19:58 -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 84506 invoked by uid 89); 15 Jun 2018 11:19:57 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No 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=H*Ad:D*synopsys.com X-HELO: mail-wm0-f43.google.com Received: from mail-wm0-f43.google.com (HELO mail-wm0-f43.google.com) (74.125.82.43) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 15 Jun 2018 11:19:56 +0000 Received: by mail-wm0-f43.google.com with SMTP id p11-v6so3212214wmc.4 for ; Fri, 15 Jun 2018 04:19:55 -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:cc:subject:date:message-id; bh=bIRa5vyGpzWs4OioYmkOrNya2PjTaM+zL/WD3iZtmFU=; b=hY5mnTTpVav1DolpcqxJljkN24NHioW06e7pfhvnIdRp6fSCVFCYg+iUgBjSV6gDmB zJ02WnpuzimJawgymXsXJUCQnRPVZDI7DNoCHv3cuWdVj0TTu5I5s/42f/Wrw0wFd1Lj RCP5iOVBQxW5BB9eYKQzvNKKb+0f5pdBrmaJ3qdl0wPXNb8jPecANlYnUhsmXxdZTfKe aA+Dqp5FcOOc3+U4Hn+zkyBlXQJ3vgTVO/XZ7XFz4R+mCndI1U36yJOubDI+cV+vOLo8 rosWfVC89GXkfqfXJzEBMgAIx94quKfs3+kOzHBcUqcXA3Pr3wusyzHD15BX6FGake9o tGOQ== X-Gm-Message-State: APt69E092DU/kY9/k/0Q+RyZyzmFJYxs7aMLkitLidjprVcYS1fTVpli UJrZwvNBW+wJUQfXJQrpGZ/QsA== X-Google-Smtp-Source: ADUXVKKopb5sL4dCdbFwye5rL4yFO5thbwLTm30Xrp8TeUAWHA+sIi909o5iZJ1Vyt0B2gXj57V86Q== X-Received: by 2002:a1c:4743:: with SMTP id u64-v6mr928689wma.49.1529061594037; Fri, 15 Jun 2018 04:19:54 -0700 (PDT) Received: from localhost.localdomain ([188.241.79.25]) by smtp.gmail.com with ESMTPSA id 203-v6sm2001824wmp.23.2018.06.15.04.19.52 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 15 Jun 2018 04:19:53 -0700 (PDT) From: Claudiu Zissulescu To: gcc-patches@gcc.gnu.org Cc: fbedard@synopsys.com, andrew.burgess@embecosm.com Subject: [PATCH][COMMITTED][ARC] Fix warning in arc_return_address_register. Date: Fri, 15 Jun 2018 14:19:39 +0300 Message-Id: <20180615111939.32343-1-claziss@gmail.com> X-IsSubscribed: yes The if condition in arc_return_address_register which selects the arc return address is not correct as the brackets are incorect placed. The issue is signalized in bugzilla 85968. The patch is committed as obvious. gcc/ 2018-06-15 Claudiu Zissulescu * config/arc/arc.c (arc_return_address_register): Fix if-condition. --- gcc/ChangeLog | 6 ++++++ gcc/config/arc/arc.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8f95eb582f7..bf057e44926 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2018-06-15 Claudiu Zissulescu + + PR target/85968 + * config/arc/arc.c (arc_return_address_register): Fix + if-condition. + 2018-06-15 Richard Biener PR middle-end/86076 diff --git a/gcc/config/arc/arc.c b/gcc/config/arc/arc.c index 477500cd0b2..4d4d248abf5 100644 --- a/gcc/config/arc/arc.c +++ b/gcc/config/arc/arc.c @@ -9818,7 +9818,7 @@ arc_return_address_register (unsigned int fn_type) if (ARC_INTERRUPT_P (fn_type)) { - if (((fn_type & ARC_FUNCTION_ILINK1) | ARC_FUNCTION_FIRQ) != 0) + if ((fn_type & (ARC_FUNCTION_ILINK1 | ARC_FUNCTION_FIRQ)) != 0) regno = ILINK1_REGNUM; else if ((fn_type & ARC_FUNCTION_ILINK2) != 0) regno = ILINK2_REGNUM;