From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15202 invoked by alias); 1 Jun 2011 20:26:41 -0000 Received: (qmail 15193 invoked by uid 22791); 1 Jun 2011 20:26:40 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (216.239.44.51) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 01 Jun 2011 20:26:27 +0000 Received: from kpbe14.cbf.corp.google.com (kpbe14.cbf.corp.google.com [172.25.105.78]) by smtp-out.google.com with ESMTP id p51KQQvD028512 for ; Wed, 1 Jun 2011 13:26:26 -0700 Received: from ywg8 (ywg8.prod.google.com [10.192.7.8]) by kpbe14.cbf.corp.google.com with ESMTP id p51KQD8q013913 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Wed, 1 Jun 2011 13:26:25 -0700 Received: by ywg8 with SMTP id 8so93337ywg.6 for ; Wed, 01 Jun 2011 13:26:25 -0700 (PDT) MIME-Version: 1.0 Received: by 10.150.176.19 with SMTP id y19mr1152460ybe.358.1306959984899; Wed, 01 Jun 2011 13:26:24 -0700 (PDT) Received: by 10.151.26.21 with HTTP; Wed, 1 Jun 2011 13:26:24 -0700 (PDT) Date: Wed, 01 Jun 2011 20:26:00 -0000 Message-ID: Subject: Dump before flag From: Xinliang David Li To: GCC Patches Cc: Richard Guenther Content-Type: text/plain; charset=ISO-8859-1 X-System-Of-Record: true X-IsSubscribed: yes 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 X-SW-Source: 2011-06/txt/msg00101.txt.bz2 Hi, this is a simple patch that support dump_before flag. E.g, -fdump-tree-pre-before This is useful for diffing the the IR before and after a pass. Gcc dumping needs more cleanups -- such as allowing IR only dump, allowing IR dumping for a particular function etc. The exposure of 'dumpfile' (instead of a dumping_level () function) makes those change a little messy, but can be done. Ok for trunk? Thanks, David