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.