https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117388
Bug ID: 117388
Summary: Mangled name in 'In function' note before warning with
LTO
Product: gcc
Version: 15.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: lto
Assignee: unassigned at gcc dot gnu.org
Reporter: sjames at gcc dot gnu.org
Target Milestone: ---
When bootstrapping with LTO (./configure --with-build-config="bootstrap-lto"),
I see this:
```
/var/tmp/portage/sys-devel/gcc-15.0.9999/work/gcc-15.0.9999/gcc/spellcheck.cc:
In function ‘_Z17get_edit_distancePKciS0_i.part.0’:
/var/tmp/portage/sys-devel/gcc-15.0.9999/work/gcc-15.0.9999/gcc/spellcheck.cc:71:61:
warning: argument 1 value ‘18446744073709551615’ exceeds maximum object size
9223372036854775807 [-Wa
lloc-size-larger-than=]
71 | edit_distance_t *v_two_ago = new edit_distance_t[len_s + 1];
| ^
/var/tmp/portage/sys-devel/gcc-15.0.9999/work/gcc-15.0.9999/libstdc++-v3/libsupc++/new:140:26:
note: in a call to allocation function ‘operator new []’ declared here
140 | _GLIBCXX_NODISCARD void* operator new[](std::size_t)
| ^
```
We should use the demangled name, not '_Z17get_edit_distancePKciS0_i.part.0'.