aboutsummaryrefslogtreecommitdiff
path: root/gcc/value-range.h
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@acm.org>2022-09-30 09:43:30 -0700
committerNathan Sidwell <nathan@acm.org>2022-10-11 04:39:50 -0700
commit0fa35c7e2974a22b2107fa378895c3069fe07ff3 (patch)
tree36fd8ccab6d49574e1974f2ad178e5506999735a /gcc/value-range.h
parentee467644c53ee2f7d633a8e1f53603feafab4351 (diff)
downloadgcc-0fa35c7e2974a22b2107fa378895c3069fe07ff3.zip
gcc-0fa35c7e2974a22b2107fa378895c3069fe07ff3.tar.gz
gcc-0fa35c7e2974a22b2107fa378895c3069fe07ff3.tar.bz2
libiberty: Demangling 'M' prefixes
The grammar for a lambda context can include <source-name> 'M', and we were adding the component that generated to the substitution table twice. Just ignore the 'M' completely -- we'll already have done the checks we need when we saw its predecessor. A prefix cannot be the last component of a nested name, so we do not need to check for that case (although we could if we wanted to be more lenient). libiberty/ * cp-demangle.c (d_prefix): 'M' components are not (re-)added to the substitution table. * testsuite/demangle-expected: Add tests.
Diffstat (limited to 'gcc/value-range.h')
0 files changed, 0 insertions, 0 deletions