From patchwork Wed Nov 16 10:06:00 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Sandiford X-Patchwork-Id: 695501 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 3tJfzX37whz9rxv for ; Wed, 16 Nov 2016 21:06:15 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="c36TK/DM"; 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:subject:date:message-id:mime-version:content-type; q=dns; s= default; b=yWRgNzir+YdqgmLQC42mMgDpiwVMthy7nhb9Ag+WxgwTokSwSKlgS DdgaL5tcgIHU9bCffiu/LQrcqJ9y4TRopr8x4QvxPRRzQD/BoyRBJmhBIspueoqb NCJO/PllO7UtQ+8GiUT2cP3f3AM4Ve4ZmoQZLmdRmwjXTBTgN+cUow= 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=r7Awx4zk2kSbtYJRmG3kiMluu2w=; b=c36TK/DMq7TYnyuggVAo vs9/hx0SVINaPalSgXe9iyT9UcmDB947tK50g3xO5RsIxDxWCqawivbOliVJAtrt OfSg+VgoRTh5iZIbEYrlPJxtg8tu3fJZzdu+DDK3CFz+8A1jTYAFxAyMdxk16VXI 9Ddh0OUlqm3UpSdRjp1Oo18= Received: (qmail 124972 invoked by alias); 16 Nov 2016 10:06:07 -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 123542 invoked by uid 89); 16 Nov 2016 10:06:06 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-4.8 required=5.0 tests=BAYES_00, RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=Hx-languages-length:699 X-HELO: foss.arm.com Received: from foss.arm.com (HELO foss.arm.com) (217.140.101.70) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 16 Nov 2016 10:06:04 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id C920B13D5; Wed, 16 Nov 2016 02:06:02 -0800 (PST) Received: from localhost (e105548-lin.manchester.arm.com [10.45.32.67]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 741993F318 for ; Wed, 16 Nov 2016 02:06:02 -0800 (PST) From: Richard Sandiford To: gcc-patches@gcc.gnu.org Mail-Followup-To: gcc-patches@gcc.gnu.org, richard.sandiford@arm.com Subject: [ARC] Fix missing brackets in arc.c Date: Wed, 16 Nov 2016 10:06:00 +0000 Message-ID: <87eg2bzqlz.fsf@e105548-lin.cambridge.arm.com> User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 The old code still built thanks to the brackets in the definition of XVECEXP. Tested on arc-elf and committed as obvious. Thanks, Richard gcc/ * config/arc/arc.c (arc_loop_hazard): Add missing brackets. diff --git a/gcc/config/arc/arc.c b/gcc/config/arc/arc.c index 3bce7ef..98c7298 100644 --- a/gcc/config/arc/arc.c +++ b/gcc/config/arc/arc.c @@ -7812,7 +7812,7 @@ arc_loop_hazard (rtx_insn *pred, rtx_insn *succ) jump = pred; else if (GET_CODE (PATTERN (pred)) == SEQUENCE && JUMP_P (XVECEXP (PATTERN (pred), 0, 0))) - jump = as_a XVECEXP (PATTERN (pred), 0, 0); + jump = as_a (XVECEXP (PATTERN (pred), 0, 0)); else return false;