From 9c9e26f5c0080a49ea83aafcbac0d9e619f4ad32 Mon Sep 17 00:00:00 2001
From: Paolo Bonzini <bonzini@gnu.org>
Date: Mon, 30 Mar 2009 08:23:00 +0000
Subject: [PATCH] cfglayout.c (pass_into_cfg_layout_mode, [...]):
 Provide/destroy PROP_cfglayout respectively.

2009-03-09  Paolo Bonzini  <bonzini@gnu.org>

        * cfglayout.c (pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode):
        Provide/destroy PROP_cfglayout respectively.
        * gcse.c (pass_jump_bypass, pass_gcse): Require it.
        * tree-pass.h (PROP_cfglayout): New.

From-SVN: r145282
---
 gcc/ChangeLog   | 7 +++++++
 gcc/cfglayout.c | 4 ++--
 gcc/gcse.c      | 4 ++--
 gcc/tree-pass.h | 1 +
 4 files changed, 12 insertions(+), 4 deletions(-)

diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index e4b3d9e05796..acb3e0e669f5 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,10 @@
+2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
+
+        * cfglayout.c (pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode):
+        Provide/destroy PROP_cfglayout respectively.
+        * gcse.c (pass_jump_bypass, pass_gcse): Require it.
+        * tree-pass.h (PROP_cfglayout): New.
+
 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
 
 	* fold-const.c (const_binop, fold_convert_const_real_from_fixed,
diff --git a/gcc/cfglayout.c b/gcc/cfglayout.c
index 27eb029d0766..3af15ec56015 100644
--- a/gcc/cfglayout.c
+++ b/gcc/cfglayout.c
@@ -365,7 +365,7 @@ struct rtl_opt_pass pass_into_cfg_layout_mode =
   0,                                    /* static_pass_number */
   0,                                    /* tv_id */
   0,                                    /* properties_required */
-  0,                                    /* properties_provided */
+  PROP_cfglayout,                       /* properties_provided */
   0,                                    /* properties_destroyed */
   0,                                    /* todo_flags_start */
   TODO_dump_func,                       /* todo_flags_finish */
@@ -385,7 +385,7 @@ struct rtl_opt_pass pass_outof_cfg_layout_mode =
   0,                                    /* tv_id */
   0,                                    /* properties_required */
   0,                                    /* properties_provided */
-  0,                                    /* properties_destroyed */
+  PROP_cfglayout,                       /* properties_destroyed */
   0,                                    /* todo_flags_start */
   TODO_dump_func,                       /* todo_flags_finish */
  }
diff --git a/gcc/gcse.c b/gcc/gcse.c
index ee2d31e0a42d..cbb8916603e5 100644
--- a/gcc/gcse.c
+++ b/gcc/gcse.c
@@ -6621,7 +6621,7 @@ struct rtl_opt_pass pass_jump_bypass =
   NULL,                                 /* next */
   0,                                    /* static_pass_number */
   TV_BYPASS,                            /* tv_id */
-  0,                                    /* properties_required */
+  PROP_cfglayout,                       /* properties_required */
   0,                                    /* properties_provided */
   0,                                    /* properties_destroyed */
   0,                                    /* todo_flags_start */
@@ -6692,7 +6692,7 @@ struct rtl_opt_pass pass_gcse =
   NULL,                                 /* next */
   0,                                    /* static_pass_number */
   TV_GCSE,                              /* tv_id */
-  0,                                    /* properties_required */
+  PROP_cfglayout,                       /* properties_required */
   0,                                    /* properties_provided */
   0,                                    /* properties_destroyed */
   0,                                    /* todo_flags_start */
diff --git a/gcc/tree-pass.h b/gcc/tree-pass.h
index 77896725ae3f..96239c494d86 100644
--- a/gcc/tree-pass.h
+++ b/gcc/tree-pass.h
@@ -210,6 +210,7 @@ struct dump_file_info
 #define PROP_rtl		(1 << 7)
 #define PROP_alias		(1 << 8)
 #define PROP_gimple_lomp	(1 << 9)	/* lowered OpenMP directives */
+#define PROP_cfglayout	 	(1 << 10)	/* cfglayout mode on RTL */
 
 #define PROP_trees \
   (PROP_gimple_any | PROP_gimple_lcf | PROP_gimple_leh | PROP_gimple_lomp)
-- 
GitLab