From: Julian Seward Date: Tue, 8 Nov 2005 14:10:24 +0000 (+0000) Subject: Get rid of old flags that memcheck no longer has. X-Git-Tag: svn/VALGRIND_3_1_0~193 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=57e70cee231b045113dd290c1f7151873915ca96;p=thirdparty%2Fvalgrind.git Get rid of old flags that memcheck no longer has. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5039 --- diff --git a/memcheck/docs/mc-manual.xml b/memcheck/docs/mc-manual.xml index 0a0a0780de..06b9d459f9 100644 --- a/memcheck/docs/mc-manual.xml +++ b/memcheck/docs/mc-manual.xml @@ -177,15 +177,6 @@ Memcheck can detect the following problems: - - --avoid-strlen-errors=no - --avoid-strlen-errors=yes [default] - Enable or disable a heuristic for dealing with highly-optimized - versions of strlen. These versions of strlen can cause spurious errors - to be reported by Memcheck, so it's usually a good idea to leave this - enabled. - - diff --git a/memcheck/mc_include.h b/memcheck/mc_include.h index 5bf8bece5e..16064ca075 100644 --- a/memcheck/mc_include.h +++ b/memcheck/mc_include.h @@ -44,9 +44,8 @@ /*--- Command line options ---*/ /*------------------------------------------------------------*/ -/* When instrumenting, omit some checks if tell-tale literals for - inlined strlen() are visible in the basic block. default: YES */ -extern Bool MC_(clo_avoid_strlen_errors); +/* There are no memcheck-specific ones, only mac-specific + ones (those shared by both memcheck and addrcheck). */ /*------------------------------------------------------------*/ diff --git a/memcheck/mc_main.c b/memcheck/mc_main.c index ba81839602..258060f78b 100644 --- a/memcheck/mc_main.c +++ b/memcheck/mc_main.c @@ -2272,33 +2272,22 @@ static Bool mc_expensive_sanity_check ( void ) /*--- Command line args ---*/ /*------------------------------------------------------------*/ -Bool MC_(clo_avoid_strlen_errors) = True; - static Bool mc_process_cmd_line_option(Char* arg) { - VG_BOOL_CLO(arg, "--avoid-strlen-errors", MC_(clo_avoid_strlen_errors)) - else - return MAC_(process_common_cmd_line_option)(arg); - - return True; + return MAC_(process_common_cmd_line_option)(arg); } static void mc_print_usage(void) { MAC_(print_common_usage)(); - VG_(printf)( -" --avoid-strlen-errors=no|yes suppress errs from inlined strlen [yes]\n" - ); } static void mc_print_debug_usage(void) { MAC_(print_common_debug_usage)(); - VG_(printf)( -" --cleanup=no|yes improve after instrumentation? [yes]\n" - ); } + /*------------------------------------------------------------*/ /*--- Client requests ---*/ /*------------------------------------------------------------*/