gcc/libiberty/testsuite
Mark Wielaard d3b2ead595 libiberty rust-demangle, ignore .suffix
Rust symbols can have a .suffix because of compiler transformations.
These can be ignored in the demangled name. Which is what this patch
implements. By stopping at the first dot for v0 symbols and searching
backwards to the ending 'E' for legacy symbols.

An alternative implementation could be to follow what C++ does and
represent these as [clone .suffix] tagged onto the demangled name.
But this seems somewhat confusing since it results in a demangled
name that cannot be mangled again. And it would mean trying to
decode compiler internal naming.

https://bugs.kde.org/show_bug.cgi?id=445916
https://github.com/rust-lang/rust/issues/60705

libiberty/Changelog

	* rust-demangle.c (rust_demangle_callback): Ignore everything
	after '.' char in sym for v0. For legacy symbols search
	backwards to find the last 'E' before any '.'.
	* testsuite/rust-demangle-expected: Add new .suffix testcases.
2022-02-17 18:06:24 +01:00
..
Makefile.in Update copyright years. 2022-01-03 10:42:10 +01:00
d-demangle-expected [PATCH] d-demangle: properly skip anonymous symbols 2021-10-17 18:38:10 -04:00
demangle-expected libiberty: support digits in cpp mangled clone names 2021-12-30 11:36:52 -05:00
demangler-fuzzer.c Update copyright years. 2022-01-03 10:42:10 +01:00
rust-demangle-expected libiberty rust-demangle, ignore .suffix 2022-02-17 18:06:24 +01:00
test-demangle.c Update copyright years. 2022-01-03 10:42:10 +01:00
test-expandargv.c Update copyright years. 2022-01-03 10:42:10 +01:00
test-pexecute.c Update copyright years. 2022-01-03 10:42:10 +01:00
test-strtol.c Update copyright years. 2022-01-03 10:42:10 +01:00