From patchwork Sat Jun 4 11:04:59 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oleg Endo X-Patchwork-Id: 630155 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 3rMJ5t0jpLz9t7r for ; Sat, 4 Jun 2016 21:05:20 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=dMF0tGfB; 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 :message-id:subject:from:to:cc:date:content-type:mime-version; q=dns; s=default; b=GyvD3a4yxoCdhaooZoc804w9vUSd5mfcEg5X2jZinE5 NaqIC5ArrR08XDnvCVwx55u+loUqZ3Y9LJxVb3clgWY5Mk535upVVS4pgX8bhn8J wYR4IoSYi4u9angDynLc15kr6WRnHRiLLq03tTwAzNzCFSrikw5Y9IytLRVaSeF4 = 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 :message-id:subject:from:to:cc:date:content-type:mime-version; s=default; bh=4rKtSP7/RgYExHiIbPdRo17yB3Y=; b=dMF0tGfB91S6lnD+C L1nARJbGAdCJCDde5TrkNArOGI8rfewuBSoKNU9YJECdUQRF7nOMz/wuBkO1dklj qFA1t3SRph9cAj/NcwAsC66a+DH6RqhFSN6/A8qrQWOUwa1VqwvP+ohdOv9Sj0uf n47vo/jWVwPVCynbEyzxrsqTBw= Received: (qmail 76405 invoked by alias); 4 Jun 2016 11:05:12 -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 76394 invoked by uid 89); 4 Jun 2016 11:05:11 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.7 required=5.0 tests=AWL, BAYES_00, KAM_LAZY_DOMAIN_SECURITY, MIME_BASE64_BLANKS, RCVD_IN_DNSWL_NONE, RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=sk:store_m, sk:STORE_M, move_by_pieces, store_by_pieces X-HELO: mailout11.t-online.de Received: from mailout11.t-online.de (HELO mailout11.t-online.de) (194.25.134.85) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Sat, 04 Jun 2016 11:05:10 +0000 Received: from fwd07.aul.t-online.de (fwd07.aul.t-online.de [172.20.27.150]) by mailout11.t-online.de (Postfix) with SMTP id 04E6F4252C0E; Sat, 4 Jun 2016 13:05:05 +0200 (CEST) Received: from [192.168.0.16] (bjn650ZYrhWJifkacMq7SSFaoRPeSKYEkLj8RbnVjlAKEUyLipaqsdY0ydC0hzQZHf@[115.165.93.200]) by fwd07.t-online.de with (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384 encrypted) esmtp id 1b99O2-2Pxhei0; Sat, 4 Jun 2016 13:05:02 +0200 Message-ID: <1465038299.15496.112.camel@t-online.de> Subject: [SH][committed] Fix build after changes for PR 52171 From: Oleg Endo To: gcc-patches Cc: Bernd Schmidt Date: Sat, 04 Jun 2016 20:04:59 +0900 Mime-Version: 1.0 X-IsSubscribed: yes Hi, The recent changes for PR 52171 didn't update the users of the renamed function 'move_by_pieces_ninsns'. The attached patch fixes this. Tested with "make all". Committed as r237090. Cheers, Oleg gcc/ChangeLog: PR tree-optimization/52171 * config/sh/sh.c (sh_use_by_pieces_infrastructure_p): Use by_pieces_ninsns instead of move_by_pieces_ninsns. Index: gcc/config/sh/sh.c =================================================================== --- gcc/config/sh/sh.c (revision 237089) +++ gcc/config/sh/sh.c (working copy) @@ -12506,11 +12506,11 @@ switch (op) { case MOVE_BY_PIECES: - return move_by_pieces_ninsns (size, align, MOVE_MAX_PIECES + 1) + return by_pieces_ninsns (size, align, MOVE_MAX_PIECES + 1, op) < (!speed_p ? 2 : (align >= 32) ? 16 : 2); case STORE_BY_PIECES: case SET_BY_PIECES: - return move_by_pieces_ninsns (size, align, STORE_MAX_PIECES + 1) + return by_pieces_ninsns (size, align, STORE_MAX_PIECES + 1, op) < (!speed_p ? 2 : (align >= 32) ? 16 : 2); default: return default_use_by_pieces_infrastructure_p (size, align,