From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 41678 invoked by alias); 14 Nov 2016 13:20:20 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 41653 invoked by uid 89); 14 Nov 2016 13:20:19 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-4.7 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=incoming 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; Mon, 14 Nov 2016 13:20:18 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 22A08285A6 for ; Mon, 14 Nov 2016 13:20:17 +0000 (UTC) Received: from tucnak.zalov.cz (ovpn-204-19.brq.redhat.com [10.40.204.19]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id uAEDKF8U025964 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 14 Nov 2016 08:20:16 -0500 Received: from tucnak.zalov.cz (localhost [127.0.0.1]) by tucnak.zalov.cz (8.15.2/8.15.2) with ESMTP id uAEDKEiW016004; Mon, 14 Nov 2016 14:20:14 +0100 Received: (from jakub@localhost) by tucnak.zalov.cz (8.15.2/8.15.2/Submit) id uAEDKDqF016003; Mon, 14 Nov 2016 14:20:13 +0100 Date: Mon, 14 Nov 2016 13:20:00 -0000 From: Jakub Jelinek To: Bernd Schmidt Cc: Aldy Hernandez , gcc-patches , David Malcolm Subject: Re: [PR target/78213] Do not ICE on non-empty -fself-test Message-ID: <20161114132013.GW3541@tucnak.redhat.com> Reply-To: Jakub Jelinek References: <9158b0e8-f6b7-8a71-4d78-6f1b174a8405@redhat.com> <8e94bcf0-a529-476e-23c4-fea00445599b@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8e94bcf0-a529-476e-23c4-fea00445599b@redhat.com> User-Agent: Mutt/1.5.24 (2015-08-30) X-IsSubscribed: yes X-SW-Source: 2016-11/txt/msg01334.txt.bz2 On Mon, Nov 14, 2016 at 02:18:02PM +0100, Bernd Schmidt wrote: > On 11/11/2016 06:10 PM, Aldy Hernandez wrote: > >The problem in this PR is that -fself-test is being run on a non empty > >source file. This causes init_emit() to run, which sets: > > > > REG_POINTER (virtual_incoming_args_rtx) = 1; > > > >Setting REG_POINTER on the virtual incoming args, causes /f to be > >printed on some RTL dumps, causing the -fself-test machinery to fail at > >matching the expected value. > > How about always running init_emit and testing for the correct output? You mean only if -fself-test, right? Jakub