From: Julian Seward Date: Thu, 5 Feb 2015 10:05:43 +0000 (+0000) Subject: Fix some inconsistent uses of the VG_XACT_CLO macro, by putting an X-Git-Tag: svn/VALGRIND_3_11_0~688 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cd601e28a4f7805f49c982b4fec9f2f38a80e141;p=thirdparty%2Fvalgrind.git Fix some inconsistent uses of the VG_XACT_CLO macro, by putting an empty then-body after the condition rather than merely ";", which is confusing and is inconsistent with the rest of the arg handling code. No functional change. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14904 --- diff --git a/coregrind/m_main.c b/coregrind/m_main.c index fe0aef786a..96ebe3e6bb 100644 --- a/coregrind/m_main.c +++ b/coregrind/m_main.c @@ -659,15 +659,14 @@ void main_process_cmd_line_options ( /*OUT*/Bool* logging_to_fd, VG_(clo_merge_recursive_frames), 0, VG_DEEPEST_BACKTRACE) {} - else if VG_XACT_CLO(arg, "--smc-check=none", VG_(clo_smc_check), - Vg_SmcNone); - else if VG_XACT_CLO(arg, "--smc-check=stack", VG_(clo_smc_check), - Vg_SmcStack); - else if VG_XACT_CLO(arg, "--smc-check=all", VG_(clo_smc_check), - Vg_SmcAll); + else if VG_XACT_CLO(arg, "--smc-check=none", + VG_(clo_smc_check), Vg_SmcNone) {} + else if VG_XACT_CLO(arg, "--smc-check=stack", + VG_(clo_smc_check), Vg_SmcStack) {} + else if VG_XACT_CLO(arg, "--smc-check=all", + VG_(clo_smc_check), Vg_SmcAll) {} else if VG_XACT_CLO(arg, "--smc-check=all-non-file", - VG_(clo_smc_check), - Vg_SmcAllNonFile); + VG_(clo_smc_check), Vg_SmcAllNonFile) {} else if VG_USETX_CLO (arg, "--kernel-variant", "bproc," @@ -687,22 +686,24 @@ void main_process_cmd_line_options ( /*OUT*/Bool* logging_to_fd, VG_(clo_vex_control).iropt_verbosity, 0, 10) {} else if VG_BINT_CLO(arg, "--vex-iropt-level", VG_(clo_vex_control).iropt_level, 0, 2) {} + else if VG_XACT_CLO(arg, "--vex-iropt-register-updates=sp-at-mem-access", VG_(clo_vex_control).iropt_register_updates, - VexRegUpdSpAtMemAccess); + VexRegUpdSpAtMemAccess) {} else if VG_XACT_CLO(arg, "--vex-iropt-register-updates=unwindregs-at-mem-access", VG_(clo_vex_control).iropt_register_updates, - VexRegUpdUnwindregsAtMemAccess); + VexRegUpdUnwindregsAtMemAccess) {} else if VG_XACT_CLO(arg, "--vex-iropt-register-updates=allregs-at-mem-access", VG_(clo_vex_control).iropt_register_updates, - VexRegUpdAllregsAtMemAccess); + VexRegUpdAllregsAtMemAccess) {} else if VG_XACT_CLO(arg, "--vex-iropt-register-updates=allregs-at-each-insn", VG_(clo_vex_control).iropt_register_updates, - VexRegUpdAllregsAtEachInsn); + VexRegUpdAllregsAtEachInsn) {} + else if VG_BINT_CLO(arg, "--vex-iropt-unroll-thresh", VG_(clo_vex_control).iropt_unroll_thresh, 0, 400) {} else if VG_BINT_CLO(arg, "--vex-guest-max-insns", @@ -745,7 +746,7 @@ void main_process_cmd_line_options ( /*OUT*/Bool* logging_to_fd, VG_(clo_xml_user_comment)) {} else if VG_BOOL_CLO(arg, "--default-suppressions", - VG_(clo_default_supp)) { } + VG_(clo_default_supp)) {} else if VG_STR_CLO(arg, "--suppressions", tmp_str) { VG_(addToXA)(VG_(clo_suppressions), &tmp_str);