From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 72941 invoked by alias); 20 Aug 2015 16:41:31 -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 72930 invoked by uid 89); 20 Aug 2015 16:41:31 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.5 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=no version=3.3.2 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 (AES256-GCM-SHA384 encrypted) ESMTPS; Thu, 20 Aug 2015 16:41:30 +0000 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (Postfix) with ESMTPS id ED7168E908; Thu, 20 Aug 2015 16:41:28 +0000 (UTC) Received: from localhost.localdomain (ovpn-113-201.phx2.redhat.com [10.3.113.201]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t7KGfSfE010388; Thu, 20 Aug 2015 12:41:28 -0400 Subject: Re: [PATCH] Fix middle-end/67133, part 1 To: Marek Polacek , Andreas Schwab References: <55CE002E.6000108@redhat.com> <20150814153224.GU3335@redhat.com> <55CE0A5A.4070802@redhat.com> <20150814195836.GB2093@redhat.com> <55CE5054.5080400@redhat.com> <20150814204649.GC2093@redhat.com> <55D21A8D.50004@redhat.com> <20150818194918.GB2729@redhat.com> <20150820103758.GE2729@redhat.com> Cc: Richard Biener , GCC Patches From: Jeff Law Message-ID: <55D60338.2080306@redhat.com> Date: Thu, 20 Aug 2015 16:42:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 MIME-Version: 1.0 In-Reply-To: <20150820103758.GE2729@redhat.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-IsSubscribed: yes X-SW-Source: 2015-08/txt/msg01228.txt.bz2 On 08/20/2015 04:37 AM, Marek Polacek wrote: > On Thu, Aug 20, 2015 at 11:02:17AM +0200, Andreas Schwab wrote: >> Marek Polacek writes: >> >>> PR middle-end/67133 >>> * gimple-ssa-isolate-paths.c >>> (insert_trap_and_remove_trailing_statements): Rename to ... >>> (insert_trap): ... this. Don't remove trailing statements; split >>> block instead. >>> (find_explicit_erroneous_behaviour): Don't remove all outgoing edges. >> >> This breaks go on aarch64: >> >> ../../../libgo/go/encoding/gob/decode.go: In function ‘gob.decIgnoreOpFor.pN20_encoding_gob.Decoder’: >> ../../../libgo/go/encoding/gob/decode.go:843:1: internal compiler error: in operator[], at vec.h:714 >> func (dec *Decoder) decIgnoreOpFor(wireId typeId) decOp { >> ^ >> 0xac5c3b vec::operator[](unsigned int) >> ../../gcc/vec.h:714 >> 0xac5c3b extract_true_false_edges_from_block(basic_block_def*, edge_def**, edge_def**) >> ../../gcc/tree-cfg.c:8456 >> 0xace9bf gimple_verify_flow_info >> ../../gcc/tree-cfg.c:5260 >> 0x6ea1ab verify_flow_info() >> ../../gcc/cfghooks.c:260 >> 0xadeca3 cleanup_tree_cfg_noloop >> ../../gcc/tree-cfgcleanup.c:739 >> 0xadeca3 cleanup_tree_cfg() >> ../../gcc/tree-cfgcleanup.c:788 >> 0x9d21c3 execute_function_todo >> ../../gcc/passes.c:1900 >> 0x9d2b07 execute_todo >> ../../gcc/passes.c:2005 > > Whilst I'm struggling with building cross libgo to reproduce this, is > there something like preprocessed source for go? So that ideally I'd > just run ./go1 foo.go? That'd help tremendously. The process for finding out what Go's doing is, umm, exceedingly difficult. Though at least for gcc-go, using "-v" will help. RTH might have some ideas. Based on the error, I suspect we've got a block ending with a GIMPLE_COND with no successors in the CFG. jeff