From patchwork Fri Jul 6 04:18:00 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeff Law X-Patchwork-Id: 940256 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-481088-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="P0Pt2jbH"; 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 41MM0N6Tprz9s4c for ; Fri, 6 Jul 2018 14:18:11 +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:to :from:subject:message-id:date:mime-version:content-type; q=dns; s=default; b=CsWBGVUlVF1v4P3xb7K9tR7TV4oWSu7581e7Ddc4ONbqKBB7WO WeRoHyBFTqD+v2u4kudab6Bv3Qz3WJBQhPntwdWECpgarHJitduzZX2rWO8nbnQ6 rw2RmBW5r3+2WSB76tiO33TeECBNX2BMjps2eKVfk/MRMG6KO792iEwCM= 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=tnAKDqgRnHMiQu82gBSEFw7oaK8=; b=P0Pt2jbHlOpxvMMvVHPg PWDkVxlkYuBx6xAPjMzRYhgIzrjMBd555zMr8HiqAQ0+zeVLVJJYP/Up9JnuSbMn RCPY7RK8LZ1oxLwJpSC7USl38pQTaVjoGiI/VxtwyF22XnR3zUju5nNGXNqlaTQZ A02YhK98IF0Km81U2EM5EMc= Received: (qmail 65744 invoked by alias); 6 Jul 2018 04:18:04 -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 64777 invoked by uid 89); 6 Jul 2018 04:18:03 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-26.4 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_NUMSUBJECT, SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=REGISTER, blows 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; Fri, 06 Jul 2018 04:18:02 +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 52BD1308A955 for ; Fri, 6 Jul 2018 04:18:01 +0000 (UTC) Received: from localhost.localdomain (ovpn-112-42.rdu2.redhat.com [10.10.112.42]) by smtp.corp.redhat.com (Postfix) with ESMTP id E6B571001938 for ; Fri, 6 Jul 2018 04:18:00 +0000 (UTC) To: gcc-patches From: Jeff Law Subject: [committed] Fix tree-ssa/asm-2.c on the v850 Openpgp: preference=signencrypt Message-ID: <5cc1f6a2-9066-07c7-902d-e44527d62000@redhat.com> Date: Thu, 5 Jul 2018 22:18:00 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 X-IsSubscribed: yes r0 on the v850 is a hardwired 0 value. For reasons unknown I exposed it in the register file. This runs afoul of tree-ssa/asm-2.c which has a local variable explicitly assigned to register 0. This naturally blows up. The fix is trivial, use a different register like other ports do. Installing on the trunk. Jeff diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 8496a38c291..4952b18983f 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2018-07-05 Jeff Law + + * gcc.dg/tree-ssa/asm-2.c (REGISTER): Override for v850 too. + 2018-07-05 Paul Thomas PR fortran/86408 diff --git a/gcc/testsuite/gcc.dg/tree-ssa/asm-2.c b/gcc/testsuite/gcc.dg/tree-ssa/asm-2.c index 4dc4a9d6c6a..00c3079181d 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/asm-2.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/asm-2.c @@ -1,7 +1,7 @@ /* { dg-do compile } */ /* { dg-options "-O2 -fdump-tree-optimized" } */ -#ifdef __hppa__ +#if defined(__hppa__) || defined(__v850__) #define REGISTER "1" #else #ifdef __moxie__