public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [pushed] opts: fix opts_set->x_flag_sanitize
@ 2022-06-16 19:50 Jason Merrill
  0 siblings, 0 replies; only message in thread
From: Jason Merrill @ 2022-06-16 19:50 UTC (permalink / raw)
  To: gcc-patches

While working on PR104642 I noticed this wasn't getting set.

Tested x86_64-pc-linux-gnu, applying to trunk as obvious.

gcc/ChangeLog:

	* opts.cc (common_handle_option) [OPT_fsanitize_]: Set
	opts_set->x_flag_sanitize.
---
 gcc/opts.cc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gcc/opts.cc b/gcc/opts.cc
index bf06a55456a..55859f549ba 100644
--- a/gcc/opts.cc
+++ b/gcc/opts.cc
@@ -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);

base-commit: d89e64d4cbf5a4c3b8de120257da68944f31e759
-- 
2.27.0


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-06-16 19:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-16 19:50 [pushed] opts: fix opts_set->x_flag_sanitize Jason Merrill

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).