ipa-utils.c (ipa_dfs_info): New field scc_no.
authorMartin Jambor <mjambor@suse.cz>
Wed, 1 Jun 2011 13:07:26 +0000 (15:07 +0200)
committerMartin Jambor <jamborm@gcc.gnu.org>
Wed, 1 Jun 2011 13:07:26 +0000 (15:07 +0200)
2011-06-01  Martin Jambor  <mjambor@suse.cz>

* ipa-utils.c (ipa_dfs_info): New field scc_no.
* ipa-utils.c (searchc): Set scc_no.

From-SVN: r174524

gcc/ChangeLog
gcc/ipa-utils.c
gcc/ipa-utils.h

index add1fa2665495ae54b065ea6c0b1aa31f129c9cd..f563c5ffda066b4162c1998af9765ad5f443cd44 100644 (file)
@@ -1,3 +1,8 @@
+2011-06-01  Martin Jambor  <mjambor@suse.cz>
+
+       * ipa-utils.c (ipa_dfs_info): New field scc_no.
+       * ipa-utils.c (searchc): Set scc_no.
+
 2011-06-01  Martin Jambor  <mjambor@suse.cz>
 
        * ipa-utils.c (searchc_env): New field allow_overwritable.
index f60ce2fd0741b33a8c68d6ab42804cfeec953389..91fe839577d4b2392bc35c46d1c6ac410768ef46 100644 (file)
@@ -138,6 +138,7 @@ searchc (struct searchc_env* env, struct cgraph_node *v,
        x = env->stack[--(env->stack_size)];
        x_info = (struct ipa_dfs_info *) x->aux;
        x_info->on_stack = false;
+       x_info->scc_no = v_info->dfn_number;
 
        if (env->reduce)
          {
index 7b49e6a1c945bf4a0f784b200d7ffe756c5b24df..7e2190eaee5373d54784d8e8c83d5a4724f68c26 100644 (file)
@@ -26,6 +26,9 @@ along with GCC; see the file COPYING3.  If not see
 struct ipa_dfs_info {
   int dfn_number;
   int low_link;
+  /* This field will have the samy value for any two nodes in the same strongly
+     connected component.  */
+  int scc_no;
   bool new_node;
   bool on_stack;
   struct cgraph_node* next_cycle;