From patchwork Mon May 23 08:33:55 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierre Vittet X-Patchwork-Id: 96838 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 4CF90B6FA5 for ; Mon, 23 May 2011 18:34:26 +1000 (EST) Received: (qmail 22962 invoked by alias); 23 May 2011 08:34:23 -0000 Received: (qmail 22711 invoked by uid 22791); 23 May 2011 08:34:22 -0000 X-SWARE-Spam-Status: No, hits=-1.2 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_NONE, RCVD_IN_RP_RNBL X-Spam-Check-By: sourceware.org Received: from 63.mail-out.ovh.net (HELO 63.mail-out.ovh.net) (91.121.185.56) by sourceware.org (qpsmtpd/0.43rc1) with SMTP; Mon, 23 May 2011 08:34:02 +0000 Received: (qmail 16665 invoked by uid 503); 23 May 2011 09:28:36 -0000 Received: from b6.ovh.net (HELO mail630.ha.ovh.net) (213.186.33.56) by 63.mail-out.ovh.net with SMTP; 23 May 2011 09:28:36 -0000 Received: from b0.ovh.net (HELO queueout) (213.186.33.50) by b0.ovh.net with SMTP; 23 May 2011 10:34:00 +0200 Received: from unknown (HELO zenwalk.local) (193.52.208.98) by ns0.ovh.net with SMTP; 23 May 2011 10:33:55 +0200 Date: Mon, 23 May 2011 10:33:55 +0200 From: Piervit To: gcc-patches@gcc.gnu.org Subject: external declaration of dominance debug functions Message-ID: <20110523103355.71528d09@zenwalk.local> Mime-Version: 1.0 X-Ovh-Tracer-Id: 2013953459752403102 X-Ovh-Remote: 193.52.208.98 () X-Ovh-Local: 213.186.33.20 (ns0.ovh.net) X-IsSubscribed: yes 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 Hello, Here is a two lines patch, allowing to use debug_dominance_info and debug_dominance_tree functions outside of gcc/dominance.c. For the moment, those functions are not declared in any gcc/*.h files (as far as I know after trying a grep). I have added them as external functions into gcc/basic-block.h. I feel this is useful to be able to call those functions from others files, for exemple from plugins. ChangeLog: 2011-05-23 Pierre Vittet * basic-block.h (debug_dominance_info, debug_dominance_tree): Add declaration. Index: gcc/basic-block.h =================================================================== --- gcc/basic-block.h (revision 174056) +++ gcc/basic-block.h (working copy) @@ -882,6 +882,9 @@ extern basic_block get_bb_copy (basic_block); void set_loop_copy (struct loop *, struct loop *); struct loop *get_loop_copy (struct loop *); +extern void debug_dominance_info (enum cdi_direction dir); +extern void debug_dominance_tree (enum cdi_direction dir, basic_block root); + #include "cfghooks.h" /* Return true when one of the predecessor edges of BB is marked with EDGE_EH. */