From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6510 invoked by alias); 9 May 2014 15:53:11 -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 6498 invoked by uid 89); 9 May 2014 15:53:10 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.3 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-qa0-f45.google.com Received: from mail-qa0-f45.google.com (HELO mail-qa0-f45.google.com) (209.85.216.45) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Fri, 09 May 2014 15:53:09 +0000 Received: by mail-qa0-f45.google.com with SMTP id hw13so4175206qab.4 for ; Fri, 09 May 2014 08:53:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to:cc :content-type; bh=CEyj6Rm8os/ruJ/kKJ7iYrsc/Nkl04QxesRp/l5msOU=; b=AFG+c3tk+50Ga3AAnXoDSMkwR9fLqsh9YrntU/T2CieclFt5gUlxxacFZrw9Zhs5vI ShESnEaW1FQPYMizuyuGmc9Io8RzAjxDUKD6ZhBQNTD0aOdJPxQ81lxyCS9wiVZy1jzN mOzABRxnS5b5GSkmVfwNRFopAxHHfVyY3E5ZrfoMOnsAg09hl+13fHTqe9IxFZHa22PB ehpWtqZVBkZ0MKSaInagzsMNOf4cjQRlqTV8vzwuKf6HxfapCEgVrbFZqKcio6aUhgOa xNqyNVJfDKMGFB0V/xjiA24gZezhPMXW7sXzTri5vc+8vCtD7elchpCYhoVXzIe0Wq5s mOCQ== X-Gm-Message-State: ALoCoQk5EvLyo9uUc5sH49oZ3/uE9vidouFSgnG3qjC0ueFdV80zGaeJnBMkggAKsN6y73BZ88Lh MIME-Version: 1.0 X-Received: by 10.224.114.145 with SMTP id e17mr15422071qaq.53.1399650786996; Fri, 09 May 2014 08:53:06 -0700 (PDT) Received: by 10.229.167.129 with HTTP; Fri, 9 May 2014 08:53:06 -0700 (PDT) Date: Fri, 09 May 2014 15:53:00 -0000 Message-ID: Subject: [PATCH] Fix cgraph dumping bug From: Teresa Johnson To: "gcc-patches@gcc.gnu.org" , Jan Hubicka Cc: David Li Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2014-05/txt/msg00604.txt.bz2 Fixed a place where the wrong dump file was being used, leading to an inconsistency and seg fault when dump_file was non-NULL but cgraph_dump_file was NULL. Bootstrapped and tested on x86-64-unknown-linux-gnu. Ok for trunk? Thanks, Teresa 2014-05-09 Teresa Johnson * cgraphunit.c (analyze_functions): Use correct dump file. Index: cgraphunit.c =================================================================== --- cgraphunit.c (revision 210157) +++ cgraphunit.c (working copy) @@ -984,7 +984,7 @@ analyze_functions (void) first_analyzed_var = varpool_first_variable (); first_analyzed = cgraph_first_function (); - if (changed && dump_file) + if (changed && cgraph_dump_file) fprintf (cgraph_dump_file, "\n"); /* Lower representation, build callgraph edges and references for all trivially -- Teresa Johnson | Software Engineer | tejohnson@google.com | 408-460-2413