|
From: <sv...@va...> - 2005-11-08 14:10:34
|
Author: sewardj
Date: 2005-11-08 14:10:24 +0000 (Tue, 08 Nov 2005)
New Revision: 5039
Log:
Get rid of old flags that memcheck no longer has.
Modified:
trunk/memcheck/docs/mc-manual.xml
trunk/memcheck/mc_include.h
trunk/memcheck/mc_main.c
Modified: trunk/memcheck/docs/mc-manual.xml
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/memcheck/docs/mc-manual.xml 2005-11-08 13:20:24 UTC (rev 5038)
+++ trunk/memcheck/docs/mc-manual.xml 2005-11-08 14:10:24 UTC (rev 5039)
@@ -177,15 +177,6 @@
</para>
</listitem>
=20
- <listitem id=3D"strlen">
- <para><computeroutput>--avoid-strlen-errors=3Dno</computeroutput></p=
ara>
- <para><computeroutput>--avoid-strlen-errors=3Dyes</computeroutput> [=
default]</para>
- <para>Enable or disable a heuristic for dealing with highly-optimize=
d=20
- versions of strlen. These versions of strlen can cause spurious err=
ors=20
- to be reported by Memcheck, so it's usually a good idea to leave thi=
s
- enabled.</para>
- </listitem>
-
</itemizedlist>
</sect1>
=20
Modified: trunk/memcheck/mc_include.h
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/memcheck/mc_include.h 2005-11-08 13:20:24 UTC (rev 5038)
+++ trunk/memcheck/mc_include.h 2005-11-08 14:10:24 UTC (rev 5039)
@@ -44,9 +44,8 @@
/*--- Command line options ---*/
/*------------------------------------------------------------*/
=20
-/* 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). */
=20
=20
/*------------------------------------------------------------*/
Modified: trunk/memcheck/mc_main.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/memcheck/mc_main.c 2005-11-08 13:20:24 UTC (rev 5038)
+++ trunk/memcheck/mc_main.c 2005-11-08 14:10:24 UTC (rev 5039)
@@ -2272,33 +2272,22 @@
/*--- Command line args ---*/
/*------------------------------------------------------------*/
=20
-Bool MC_(clo_avoid_strlen_errors) =3D True;
-
static Bool mc_process_cmd_line_option(Char* arg)
{
- VG_BOOL_CLO(arg, "--avoid-strlen-errors", MC_(clo_avoid_strlen_e=
rrors))
- else
- return MAC_(process_common_cmd_line_option)(arg);
-
- return True;
+ return MAC_(process_common_cmd_line_option)(arg);
}
=20
static void mc_print_usage(void)
{ =20
MAC_(print_common_usage)();
- VG_(printf)(
-" --avoid-strlen-errors=3Dno|yes suppress errs from inlined strle=
n [yes]\n"
- );
}
=20
static void mc_print_debug_usage(void)
{ =20
MAC_(print_common_debug_usage)();
- VG_(printf)(
-" --cleanup=3Dno|yes improve after instrumentation? [yes]\n"
- );
}
=20
+
/*------------------------------------------------------------*/
/*--- Client requests ---*/
/*------------------------------------------------------------*/
|