public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug sanitizer/101103] New: -fsanitise=undef gives better help than -fsanitize=undef @ 2021-06-16 17:54 segher at gcc dot gnu.org 2021-06-16 18:16 ` [Bug driver/101103] " pinskia at gcc dot gnu.org ` (3 more replies) 0 siblings, 4 replies; 5+ messages in thread From: segher at gcc dot gnu.org @ 2021-06-16 17:54 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101103 Bug ID: 101103 Summary: -fsanitise=undef gives better help than -fsanitize=undef Product: gcc Version: 9.3.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: sanitizer Assignee: unassigned at gcc dot gnu.org Reporter: segher at gcc dot gnu.org CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org, jakub at gcc dot gnu.org, kcc at gcc dot gnu.org, marxin at gcc dot gnu.org Target Milestone: --- -fsanitise=undef gives gcc: error: unrecognized command line option '-fsanitise=undef'; did you mean '- fsanitize=undefined'? while -fsanitize=undef gives just gcc: error: unrecognized argument to '-fsanitize=' option: 'undef' ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug driver/101103] -fsanitise=undef gives better help than -fsanitize=undef 2021-06-16 17:54 [Bug sanitizer/101103] New: -fsanitise=undef gives better help than -fsanitize=undef segher at gcc dot gnu.org @ 2021-06-16 18:16 ` pinskia at gcc dot gnu.org 2021-06-16 18:18 ` jakub at gcc dot gnu.org ` (2 subsequent siblings) 3 siblings, 0 replies; 5+ messages in thread From: pinskia at gcc dot gnu.org @ 2021-06-16 18:16 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101103 Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |diagnostic Last reconfirmed| |2021-06-16 Ever confirmed|0 |1 Component|sanitizer |driver Status|UNCONFIRMED |NEW --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- This is true for almost all options that take an enum really. ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug driver/101103] -fsanitise=undef gives better help than -fsanitize=undef 2021-06-16 17:54 [Bug sanitizer/101103] New: -fsanitise=undef gives better help than -fsanitize=undef segher at gcc dot gnu.org 2021-06-16 18:16 ` [Bug driver/101103] " pinskia at gcc dot gnu.org @ 2021-06-16 18:18 ` jakub at gcc dot gnu.org 2021-06-17 7:45 ` marxin at gcc dot gnu.org 2021-08-13 9:40 ` marxin at gcc dot gnu.org 3 siblings, 0 replies; 5+ messages in thread From: jakub at gcc dot gnu.org @ 2021-06-16 18:18 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101103 --- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> --- -fsanitize*= doesn't take an enum but comma separated list of enums though. ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug driver/101103] -fsanitise=undef gives better help than -fsanitize=undef 2021-06-16 17:54 [Bug sanitizer/101103] New: -fsanitise=undef gives better help than -fsanitize=undef segher at gcc dot gnu.org 2021-06-16 18:16 ` [Bug driver/101103] " pinskia at gcc dot gnu.org 2021-06-16 18:18 ` jakub at gcc dot gnu.org @ 2021-06-17 7:45 ` marxin at gcc dot gnu.org 2021-08-13 9:40 ` marxin at gcc dot gnu.org 3 siblings, 0 replies; 5+ messages in thread From: marxin at gcc dot gnu.org @ 2021-06-17 7:45 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101103 Martin Liška <marxin at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|unassigned at gcc dot gnu.org |marxin at gcc dot gnu.org Status|NEW |ASSIGNED --- Comment #3 from Martin Liška <marxin at gcc dot gnu.org> --- I can take a look. ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug driver/101103] -fsanitise=undef gives better help than -fsanitize=undef 2021-06-16 17:54 [Bug sanitizer/101103] New: -fsanitise=undef gives better help than -fsanitize=undef segher at gcc dot gnu.org ` (2 preceding siblings ...) 2021-06-17 7:45 ` marxin at gcc dot gnu.org @ 2021-08-13 9:40 ` marxin at gcc dot gnu.org 3 siblings, 0 replies; 5+ messages in thread From: marxin at gcc dot gnu.org @ 2021-08-13 9:40 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101103 Martin Liška <marxin at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|marxin at gcc dot gnu.org |unassigned at gcc dot gnu.org Status|ASSIGNED |NEW --- Comment #4 from Martin Liška <marxin at gcc dot gnu.org> --- Ok, so the reason is following: - in case of -fsanitise=undef, we don't have an option match as so we search in all possible options and their values, that's why have a match - in case of -fsanitize=undef, we first match -fsanitize and then get_closest_sanitizer_option is called; the function only compares option values and we don't have a match for 'undefined' as 'undef' does not reach distance threshold. It's a limitation, but having low priority to me. ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2021-08-13 9:40 UTC | newest] Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2021-06-16 17:54 [Bug sanitizer/101103] New: -fsanitise=undef gives better help than -fsanitize=undef segher at gcc dot gnu.org 2021-06-16 18:16 ` [Bug driver/101103] " pinskia at gcc dot gnu.org 2021-06-16 18:18 ` jakub at gcc dot gnu.org 2021-06-17 7:45 ` marxin at gcc dot gnu.org 2021-08-13 9:40 ` marxin at gcc dot gnu.org
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).