From patchwork Tue Nov 27 15:27:57 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeff Law X-Patchwork-Id: 1003885 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-490994-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="HQX8V2yQ"; 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 43472w60xKz9s29 for ; Wed, 28 Nov 2018 02:28:08 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:to :from:subject:message-id:date:mime-version:content-type; q=dns; s=default; b=YIcCZvs/fVHQtyTIklDldw9TGf0mFv9i2fboXu8mwS2oQiEJ7A PK/Ro9b2oM4Cglf6XmyYAJAPDwHrZIN/PUndAQg00D6PBPYW9/UMv4GAMiN+rdoP OTTRz5VjAvu/sp2+jCYydEUNVrD6D+fZ6wWbP+gxTbfnlIArm+kLmcoWY= 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:to :from:subject:message-id:date:mime-version:content-type; s= default; bh=oTNt90zCmSTGCOPqdrl0X75aLWQ=; b=HQX8V2yQ/TloUzJxK1Co Ui1JqG4huB2i5k1KdmWUM57l+B0iJlU93bKAHWQ9rv1P7SzATIvbLeVDizBCzs6n OZJoSYdKUK0eB9CG2atPOTNNJ8tGPWSAiiLvRchsYQ+GEVUtrwq5ywCbM9PdpktF LfZamOtrmbMiklk89gQ4Kv8= Received: (qmail 42831 invoked by alias); 27 Nov 2018 15:28:01 -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 42775 invoked by uid 89); 27 Nov 2018 15:28:01 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, SPF_HELO_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 27 Nov 2018 15:28:00 +0000 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id E6D1B30C418A for ; Tue, 27 Nov 2018 15:27:58 +0000 (UTC) Received: from localhost.localdomain (ovpn-112-27.rdu2.redhat.com [10.10.112.27]) by smtp.corp.redhat.com (Postfix) with ESMTP id 6E3CA105B1E7 for ; Tue, 27 Nov 2018 15:27:58 +0000 (UTC) To: gcc-patches From: Jeff Law Subject: [committed] Fix mips calls to move_by_pieces Openpgp: preference=signencrypt Message-ID: <7b7eb704-b826-9bdb-7870-9a64908d7c11@redhat.com> Date: Tue, 27 Nov 2018 08:27:57 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.0 MIME-Version: 1.0 X-IsSubscribed: yes And the same for the mips port. I'll go through all kinds of build tests during the day, including a bootstrap on mipsisa32r2. Committed. Jeff diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4be85e3c366..a6e8729f370 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,8 @@ 2018-11-27 Jeff Law + * config/mips/mips.c (mips_block_move_straight): Use RETURN_BEGIN + in call to move_by_pieces. + * config/microblaze/microblaze.c (microblaze_block_move_straight): Use RETURN_BEGIN in call to move_by_pieces. (microblaze_expand_block_move): Likewise. diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c index 17a2a66956e..09b2ae72199 100644 --- a/gcc/config/mips/mips.c +++ b/gcc/config/mips/mips.c @@ -8064,7 +8064,7 @@ mips_block_move_straight (rtx dest, rtx src, HOST_WIDE_INT length) src = adjust_address (src, BLKmode, offset); dest = adjust_address (dest, BLKmode, offset); move_by_pieces (dest, src, length - offset, - MIN (MEM_ALIGN (src), MEM_ALIGN (dest)), 0); + MIN (MEM_ALIGN (src), MEM_ALIGN (dest)), RETURN_BEGIN); } }