aboutsummaryrefslogtreecommitdiff
path: root/gcc/ipa-reference.c
diff options
context:
space:
mode:
authorAndrew Pinski <andrew_pinski@playstation.sony.com>2008-03-11 21:08:00 +0000
committerAndrew Pinski <pinskia@gcc.gnu.org>2008-03-11 14:08:00 -0700
commit76a7d3ca5162b468a9d44ecbc3efcd2ecfd15f9a (patch)
tree184f4b5d37ef3817fea745c5921af82a0b54a38e /gcc/ipa-reference.c
parent40cca4f97caa0a29b71ec335f1d29daf484f73de (diff)
downloadgcc-76a7d3ca5162b468a9d44ecbc3efcd2ecfd15f9a.zip
gcc-76a7d3ca5162b468a9d44ecbc3efcd2ecfd15f9a.tar.gz
gcc-76a7d3ca5162b468a9d44ecbc3efcd2ecfd15f9a.tar.bz2
re PR tree-optimization/35403 (ipa-reference.c does not change a default initialized static variable to be readonly)
2008-03-11 Andrew Pinski <andrew_pinski@playstation.sony.com> * ipa-reference.c (static_execute): Remove module_statics_const and associated setting code. 2008-03-11 Andrew Pinski <andrew_pinski@playstation.sony.com> PR tree-opt/35403 * gcc.dg/tree-ssa/ipa-reference-1.c: New testcase. From-SVN: r133119
Diffstat (limited to 'gcc/ipa-reference.c')
-rw-r--r--gcc/ipa-reference.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/gcc/ipa-reference.c b/gcc/ipa-reference.c
index 1a962c5..87d8c2fa 100644
--- a/gcc/ipa-reference.c
+++ b/gcc/ipa-reference.c
@@ -949,7 +949,6 @@ static_execute (void)
unsigned int index;
bitmap_iterator bi;
bitmap module_statics_readonly = BITMAP_ALLOC (&ipa_obstack);
- bitmap module_statics_const = BITMAP_ALLOC (&ipa_obstack);
bitmap bm_temp = BITMAP_ALLOC (&ipa_obstack);
EXECUTE_IF_SET_IN_BITMAP (module_statics_escape, 0, index, bi)
@@ -999,14 +998,6 @@ static_execute (void)
fprintf (dump_file, "read-only var %s\n",
get_static_name (index));
}
- if (DECL_INITIAL (var)
- && is_gimple_min_invariant (DECL_INITIAL (var)))
- {
- bitmap_set_bit (module_statics_const, index);
- if (dump_file)
- fprintf (dump_file, "read-only constant %s\n",
- get_static_name (index));
- }
}
BITMAP_FREE(module_statics_escape);
@@ -1036,7 +1027,6 @@ static_execute (void)
}
BITMAP_FREE(module_statics_readonly);
- BITMAP_FREE(module_statics_const);
BITMAP_FREE(bm_temp);
}