Simplify option handling for -fsanitize-coverage
authorMartin Liska <mliska@suse.cz>
Thu, 20 May 2021 08:57:49 +0000 (10:57 +0200)
committerMartin Liska <mliska@suse.cz>
Thu, 3 Jun 2021 10:47:23 +0000 (12:47 +0200)
commitc1681f22b4b44096f7bd8a2cf42f54762305c3ae
tree1e5368fa2eee765c91756115bb3616649bb8cfa0
parentad085ef5fb4142df2027f81ea03992fdafc6e2f6
Simplify option handling for -fsanitize-coverage

gcc/ChangeLog:

* common.opt: Use proper Enum values.
* opts.c (COVERAGE_SANITIZER_OPT): Remove.
(parse_sanitizer_options): Handle only sanitizer_opts.
(common_handle_option): Just assign value.

gcc/testsuite/ChangeLog:

* gcc.dg/spellcheck-options-23.c: New test.
gcc/common.opt
gcc/opts.c
gcc/testsuite/gcc.dg/spellcheck-options-23.c [new file with mode: 0644]