https://gcc.gnu.org/g:c49a090e71d916bf9b7bbe39b03c1a50130e6c5a
commit c49a090e71d916bf9b7bbe39b03c1a50130e6c5a Author: Michael Matz <[email protected]> Date: Fri Feb 23 23:04:19 2018 +0100 Add -ftry-patch=NUM so that different aspects of a patch can be switched off/on. Diff: --- gcc/common.opt | 4 ++++ gcc/opts.c | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/gcc/common.opt b/gcc/common.opt index 7188b062116a..ec35c48681d2 100644 --- a/gcc/common.opt +++ b/gcc/common.opt @@ -2799,6 +2799,10 @@ ftry-patch Common Report Var(flag_try_patch) Init(1) Optimization Try the patch. +ftry-patch= +Common RejectNegative Joined UInteger Optimization +Try the patch N. + ; -fverbose-asm causes extra commentary information to be produced in ; the generated assembly code (to make it more readable). This option ; is generally only of use to those who actually need to read the diff --git a/gcc/opts.c b/gcc/opts.c index 33efcc0d6e7d..ebed8b7f59b5 100644 --- a/gcc/opts.c +++ b/gcc/opts.c @@ -2037,6 +2037,10 @@ common_handle_option (struct gcc_options *opts, opts->x_flag_sanitize_coverage, value, true); break; + case OPT_ftry_patch_: + opts->x_flag_try_patch = value; + break; + case OPT_O: case OPT_Os: case OPT_Ofast:
