]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
opts: fix opts_set->x_flag_sanitize
authorJason Merrill <jason@redhat.com>
Tue, 14 Jun 2022 21:56:08 +0000 (17:56 -0400)
committerJason Merrill <jason@redhat.com>
Thu, 16 Jun 2022 19:48:48 +0000 (15:48 -0400)
While working on PR104642 I noticed this wasn't getting set.

gcc/ChangeLog:

* opts.cc (common_handle_option) [OPT_fsanitize_]: Set
opts_set->x_flag_sanitize.

gcc/opts.cc

index bf06a55456ac5499f3066823a9cb3f84374346bc..55859f549ba440216ada1e6cfd65da2cec2fb3fd 100644 (file)
@@ -2613,6 +2613,7 @@ common_handle_option (struct gcc_options *opts,
       break;
 
     case OPT_fsanitize_:
+      opts_set->x_flag_sanitize = true;
       opts->x_flag_sanitize
        = parse_sanitizer_options (arg, loc, code,
                                   opts->x_flag_sanitize, value, true);