diff options
author | Nathan Sidwell <nathan@acm.org> | 2022-09-30 09:43:30 -0700 |
---|---|---|
committer | Nathan Sidwell <nathan@acm.org> | 2022-10-11 04:39:50 -0700 |
commit | 0fa35c7e2974a22b2107fa378895c3069fe07ff3 (patch) | |
tree | 36fd8ccab6d49574e1974f2ad178e5506999735a /gcc/value-range.h | |
parent | ee467644c53ee2f7d633a8e1f53603feafab4351 (diff) | |
download | gcc-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