From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 47549 invoked by alias); 13 Oct 2016 10:58:32 -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 47536 invoked by uid 89); 13 Oct 2016 10:58:30 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,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; Thu, 13 Oct 2016 10:58:29 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (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 8127B61E73; Thu, 13 Oct 2016 10:58:28 +0000 (UTC) Received: from localhost.localdomain (vpn1-7-104.ams2.redhat.com [10.36.7.104]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u9DAwQQc026568; Thu, 13 Oct 2016 06:58:27 -0400 Subject: Re: [PATCH v4] PR48344: Fix unrecognizable insn error with -fstack-limit-register=r2 To: Andreas Schwab , Kelvin Nilsen References: <56BCA4E4.6030100@linux.vnet.ibm.com> <87shsh88c6.fsf@linux-m68k.org> Cc: gcc-patches@gcc.gnu.org, law@redhat.com From: Bernd Schmidt Message-ID: <53c5ba51-2216-be0f-a574-772d217e7dd0@redhat.com> Date: Thu, 13 Oct 2016 10:58:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <87shsh88c6.fsf@linux-m68k.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2016-10/txt/msg01010.txt.bz2 On 09/30/2016 10:02 PM, Andreas Schwab wrote: > On Feb 11 2016, Kelvin Nilsen wrote: > >> * opts-global.c (handle_common_deferred_options): Introduce and >> initialize two global variables to remember command-line options >> specifying a stack-limiting register. >> * opts.h: Add extern declarations of the two new global variables. >> * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx >> variable based on the values of the two new global variables. > > That breaks gcc.target/m68k/stack-limit-1.c: > > /daten/aranym/gcc/test/gcc/testsuite/gcc.target/m68k/stack-limit-1.c: In function 'dummy': > /daten/aranym/gcc/test/gcc/testsuite/gcc.target/m68k/stack-limit-1.c:6:1: error: unrecognizable insn: > (insn 10 9 11 (trap_if (ltu (cc0) > (const_int 0 [0])) > (const_int 1 [0x1])) /daten/aranym/gcc/test/gcc/testsuite/gcc.target/m68k/stack-limit-1.c:6 -1 > (nil)) > /daten/aranym/gcc/test/gcc/testsuite/gcc.target/m68k/stack-limit-1.c:6:1: internal compiler error: in extract_insn, at recog.c:2287 > Please file a PR if this isn't fixed yet. Bernd