Mercurial > hg > graal-compiler
diff src/share/vm/opto/compile.cpp @ 9060:cc32ccaaf47f
8003310: Enable -Wunused-function when compiling with gcc
Summary: Add the -Wunused-function flag and remove a number of unused functions.
Reviewed-by: dholmes, coleenp, kvn
author | mikael |
---|---|
date | Thu, 04 Apr 2013 10:01:26 -0700 |
parents | b7c2c5b2572c |
children | 8373c19be854 |
line wrap: on
line diff
--- a/src/share/vm/opto/compile.cpp Wed Apr 03 16:43:09 2013 -0700 +++ b/src/share/vm/opto/compile.cpp Thu Apr 04 10:01:26 2013 -0700 @@ -2326,12 +2326,14 @@ int get_inner_loop_count() const { return _inner_loop_count; } }; +#ifdef ASSERT static bool oop_offset_is_sane(const TypeInstPtr* tp) { ciInstanceKlass *k = tp->klass()->as_instance_klass(); // Make sure the offset goes inside the instance layout. return k->contains_field_offset(tp->offset()); // Note that OffsetBot and OffsetTop are very negative. } +#endif // Eliminate trivially redundant StoreCMs and accumulate their // precedence edges.