From patchwork Wed Feb 13 09:36:06 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Biener X-Patchwork-Id: 220100 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 95CFE2C008E for ; Wed, 13 Feb 2013 20:36:17 +1100 (EST) Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gcc.gnu.org; s=default; x=1361352978; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Date: From:To:Subject:Message-ID:User-Agent:MIME-Version:Content-Type: Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:Sender:Delivered-To; bh=as40z2DgPnd9ovUMCDIt F6xrTGU=; b=ie12v79yrOFCHpkgTZyNVh/6B6SKWeSd2uPn/xtp+qv1ESUMXIk5 M4XG3Eg6R0RWwTtl5MJwtLvw9iITl5ysXAKIChKvvGwecgA+cOOKJyezC0lhToxw GNcIZp5TvYWG9GziGX7tseLQZjnduA4t4HVgsn5LhbyDPGuRUZr70Pg= Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=gcc.gnu.org; h=Received:Received:X-SWARE-Spam-Status:X-Spam-Check-By:Received:Received:Date:From:To:Subject:Message-ID:User-Agent:MIME-Version:Content-Type:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=R3ks43X4w7iVJbBcuhzo8hx6C0u8JSnWs2G+ojoMaVUlJ+gqW+SgBJ87tpD6Wb NXIiCLnxnAWImYu89NhevMdttBixiXWBZTAN3kwr9w/XqiRV1wbrYtBI5ZBloG6s EOlfc2WElXxu7mERZaw8dMRlXEE+7XACHQJfpZtO1FWEU=; Received: (qmail 26380 invoked by alias); 13 Feb 2013 09:36:14 -0000 Received: (qmail 26311 invoked by uid 22791); 13 Feb 2013 09:36:13 -0000 X-SWARE-Spam-Status: No, hits=-5.5 required=5.0 tests=AWL, BAYES_00, KHOP_RCVD_UNTRUST, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from cantor2.suse.de (HELO mx2.suse.de) (195.135.220.15) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 13 Feb 2013 09:36:08 +0000 Received: from relay1.suse.de (unknown [195.135.220.254]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx2.suse.de (Postfix) with ESMTP id EE833A51FF for ; Wed, 13 Feb 2013 10:36:06 +0100 (CET) Date: Wed, 13 Feb 2013 10:36:06 +0100 (CET) From: Richard Biener To: gcc-patches@gcc.gnu.org Subject: [PATCH] Fix mn10300 compile Message-ID: User-Agent: Alpine 2.00 (LNX 1167 2008-08-23) MIME-Version: 1.0 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 The following fixes compilation of mn10300 which broke when the interface to flow_loops_find changed (as reported in a comment in PR56294). I took the liberty to use the proper interface for initializing the loop tree. Built a mn10300 cc1, committed as obvious. Richard. 2013-02-13 Richard Biener * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Fix loop discovery code. Index: gcc/config/mn10300/mn10300.c =================================================================== --- gcc/config/mn10300/mn10300.c (revision 195997) +++ gcc/config/mn10300/mn10300.c (working copy) @@ -3235,9 +3235,7 @@ mn10300_scan_for_setlb_lcc (void) compute_bb_for_insn (); /* Find the loops. */ - if (flow_loops_find (& loops) < 1) - DUMP ("No loops found", NULL_RTX); - current_loops = & loops; + loop_optimizer_init (AVOID_CFG_MODIFICATIONS); /* FIXME: For now we only investigate innermost loops. In practice however if an inner loop is not suitable for use with the SETLB/Lcc insns, it may @@ -3287,15 +3285,7 @@ mn10300_scan_for_setlb_lcc (void) reason); } -#if 0 /* FIXME: We should free the storage we allocated, but - for some unknown reason this leads to seg-faults. */ - FOR_EACH_LOOP (liter, loop, 0) - free_simple_loop_desc (loop); - - flow_loops_free (current_loops); -#endif - - current_loops = NULL; + loop_optimizer_finalize (); df_finish_pass (false);