On ppc32/64 we don't have a reliable way to detect function entries
and exits at the moment.  So disable stack array bounds checking for
ppc32/64 platforms.  Also (unnecessarily) disables global array bounds
checking on those platforms.

Add a flag --enable-sg-checks=no|yes [yes] so that stack and global
checking can be optionally disabled on any platform.  This is useful
because stack and global checking is much more expensive than heap
checking, and so it may be desirable to disable it.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8686 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/exp-ptrcheck/pc_common.h b/exp-ptrcheck/pc_common.h
index ac4e4d4..77bab6e 100644
--- a/exp-ptrcheck/pc_common.h
+++ b/exp-ptrcheck/pc_common.h
@@ -58,7 +58,8 @@
 void pc_print_extra_suppression_info ( Error* err );
 
 extern Bool h_clo_partial_loads_ok;
-extern Bool h_clo_lossage_check;
+/* extern Bool h_clo_lossage_check; */
+extern Bool sg_clo_enable_sg_checks;
 
 Bool pc_process_cmd_line_options(Char* arg);
 void pc_print_usage(void);