public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* external declaration of dominance debug functions
@ 2011-05-23  9:49 Piervit
  2011-05-23  9:56 ` Basile Starynkevitch
  2011-05-23 10:22 ` Richard Guenther
  0 siblings, 2 replies; 9+ messages in thread
From: Piervit @ 2011-05-23  9:49 UTC (permalink / raw)
  To: gcc-patches

[-- Attachment #1: Type: text/plain, Size: 556 bytes --]

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  <piervit@pvittet.com>

	* basic-block.h (debug_dominance_info, debug_dominance_tree):
	  Add declaration.

[-- Attachment #2: add_dom_debug_to_header-174056.diff --]
[-- Type: text/x-patch, Size: 584 bytes --]

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.  */

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2011-05-24  5:33 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-23  9:49 external declaration of dominance debug functions Piervit
2011-05-23  9:56 ` Basile Starynkevitch
2011-05-23 10:22 ` Richard Guenther
2011-05-23 10:53   ` Piervit
2011-05-23 20:55     ` Basile Starynkevitch
2011-05-23 22:52       ` Richard Guenther
2011-05-23 23:06         ` Nathan Froyd
2011-05-23 23:06           ` Richard Guenther
2011-05-24 10:42         ` Basile Starynkevitch

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).