@@ -251,6 +251,7 @@ int dbg_entry = 0;
int dbg_dead = 0;
int fdump_linearize;
+int fmem_report = 0;
int preprocess_only;
@@ -695,11 +696,9 @@ static char **handle_switch_f(char *arg, char **next)
return handle_switch_fdump(arg+5, next);
/* handle switches w/ arguments above, boolean and only boolean below */
+ if (handle_simple_switch(arg, "mem-report", &fmem_report))
+ return next;
- if (!strncmp(arg, "no-", 3)) {
- arg += 3;
- }
- /* handle switch here.. */
return next;
}
@@ -137,6 +137,7 @@ extern int dbg_entry;
extern int dbg_dead;
extern int fdump_linearize;
+extern int fmem_report;
extern int arch_m64;
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com> --- lib.c | 7 +++---- lib.h | 1 + 2 files changed, 4 insertions(+), 4 deletions(-)