From patchwork Wed May 29 20:11:27 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Teresa Johnson X-Patchwork-Id: 247392 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]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "localhost", Issuer "www.qmailtoaster.com" (not verified)) by ozlabs.org (Postfix) with ESMTPS id 2630E2C02A7 for ; Thu, 30 May 2013 06:11:39 +1000 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :mime-version:date:message-id:subject:from:to:content-type; q= dns; s=default; b=yf8kW2VnL0AmTT2vP2CPjAf9vekS04MuLKnPnaJ4Yk+8yI dPyC9+cDUIedeYw8eda1ly5XxZAokO5lMDwcZ/lnGOjO8D5BPddeGA8REgN7tmnu qrVmWmCdb95DTHCP0XKI9Rypd3ftlGKn9iZiyCwwFPfkVYg/IHwAEre3sBGvk= 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 :mime-version:date:message-id:subject:from:to:content-type; s= default; bh=tq86fdqN2vFJd5Npnw0pseF992s=; b=pOb+sjiXBu+dgF86uquR QvyBqyim1ameuEBu/olv64o29fl9iuL5jweLyJyUJOcF0BpcDUcTwLjXjaXsgRwm lJd7FKwJ/GE6xER6Wba8JUO+MTlPw0AUpdjSYikl4UpLKUFajCAlQ0r1UjoFuf+W nc88APfuLz1YsQyOQnUSp4s= Received: (qmail 24058 invoked by alias); 29 May 2013 20:11:33 -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 24023 invoked by uid 89); 29 May 2013 20:11:29 -0000 X-Spam-SWARE-Status: No, score=-3.8 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_LOW, RCVD_IN_HOSTKARMA_YE, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.1 Received: from mail-qa0-f51.google.com (HELO mail-qa0-f51.google.com) (209.85.216.51) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Wed, 29 May 2013 20:11:29 +0000 Received: by mail-qa0-f51.google.com with SMTP id i13so596084qae.3 for ; Wed, 29 May 2013 13:11:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type :x-gm-message-state; bh=+u7E1FY+QZio3YBxyERP9wmYaSRtHKQfOLVSPVzXE9M=; b=ggntcLDJ+2TlpVrRaCHJ0mw0fMR4TVTBulFul1HJjkCqTXILd11AY31Tvs5ZV1Ko3J AkfUb5ezmzWYHfx2ULeolGon2TyPcKYoRLlUckvCwjAb1XFEL8E4NRs7KgHu3En+rEfs CXj+Ae+BCPW49Obx5T34k6BRN0mi0/vjau6+jHV0E4DtIym8hUnlKwfexmAldaJv/Zqu AkaumILqGDM/EmHh9BJjubPiwizxrsw9Uo8nVovh0o9hJsJbk55FAVRy6ufs5QJuUmrO W/ggwiJzhMTHbhxaIXtb4g1/yeg8UysiJRm4JVQUqom9CVLVem4fzAmGztn6yM4e+mZ2 8SKw== MIME-Version: 1.0 X-Received: by 10.224.59.142 with SMTP id l14mr4724620qah.22.1369858287438; Wed, 29 May 2013 13:11:27 -0700 (PDT) Received: by 10.49.72.169 with HTTP; Wed, 29 May 2013 13:11:27 -0700 (PDT) Date: Wed, 29 May 2013 13:11:27 -0700 Message-ID: Subject: [PATCH] Fix -fdump-passes From: Teresa Johnson To: "gcc-patches@gcc.gnu.org" X-Gm-Message-State: ALoCoQl8vfvao/+U4EpT3mv2blz8i/5F1J27vpDM9R5LKVNNwpDtlSS8BwZUxJmaUyuBVMxknGIHO22E6jQXmr7A4oR4JJjleqUAxWVjq1TilGxNPLTbxOJ2O37FE4CUvrIWmBQ5iDjcgT7JH0InnuvcWnOG9y0nKXKqeKRPzbMPB0ZcZ+aw+J+/9xQC0J/Wf3h5kGvx8dVi This patch re-enables -fdump-passes. It had stopped working because dump_passes was changed to use the FOR_EACH_DEFINED_FUNCTION iterator, however, functions are not marked as defined until after dump_passes is called, in cgraph_analyze_functions. Fixed by iterating over all functions. Bootstrapped and tested on x86-64-unknown-linux-gnu. Ok for trunk? Thanks, Teresa 2013-05-29 Teresa Johnson * passes.c (dump_passes): Use FOR_EACH_FUNCTION since functions are not yet marked as defined. --- Teresa Johnson | Software Engineer | tejohnson@google.com | 408-460-2413 Index: passes.c =================================================================== --- passes.c (revision 199199) +++ passes.c (working copy) @@ -718,7 +718,7 @@ dump_passes (void) create_pass_tab(); - FOR_EACH_DEFINED_FUNCTION (n) + FOR_EACH_FUNCTION (n) if (DECL_STRUCT_FUNCTION (n->symbol.decl)) { node = n;