public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/116208] New: "inlined from" diagnostic note has whitespace after function name
@ 2024-08-03 23:20 sjames at gcc dot gnu.org
2024-08-03 23:23 ` [Bug middle-end/116208] " sjames at gcc dot gnu.org
` (7 more replies)
0 siblings, 8 replies; 9+ messages in thread
From: sjames at gcc dot gnu.org @ 2024-08-03 23:20 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116208
Bug ID: 116208
Summary: "inlined from" diagnostic note has whitespace after
function name
Product: gcc
Version: 15.0
Status: UNCONFIRMED
Keywords: diagnostic
Severity: normal
Priority: P3
Component: middle-end
Assignee: unassigned at gcc dot gnu.org
Reporter: sjames at gcc dot gnu.org
Target Milestone: ---
The 'inlined from' name has whitespace at the end of it.
```
In member function ‘set’,
inlined from ‘__ct_base ’ at
/var/tmp/portage/sys-devel/gcc-15.0.9999/work/gcc-15.0.9999/gcc/range-op.cc:111:7:
/var/tmp/portage/sys-devel/gcc-15.0.9999/work/gcc-15.0.9999/gcc/range-op.h:404:7:
warning: ‘*this_2(D).m_range_tree[92]’ may be used uninitialized
[-Wmaybe-uninitialized]
404 | gcc_checking_assert (m_range_tree[code] == NULL);
| ^
```
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug middle-end/116208] "inlined from" diagnostic note has whitespace after function name
2024-08-03 23:20 [Bug middle-end/116208] New: "inlined from" diagnostic note has whitespace after function name sjames at gcc dot gnu.org
@ 2024-08-03 23:23 ` sjames at gcc dot gnu.org
2024-08-03 23:23 ` [Bug c++/116208] " pinskia at gcc dot gnu.org
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: sjames at gcc dot gnu.org @ 2024-08-03 23:23 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116208
--- Comment #1 from Sam James <sjames at gcc dot gnu.org> ---
Oh!
$ rg __ct_base
gcc/cp/decl.cc:4782: {"__ct_base ", &base_ctor_identifier, cik_ctor},
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/116208] "inlined from" diagnostic note has whitespace after function name
2024-08-03 23:20 [Bug middle-end/116208] New: "inlined from" diagnostic note has whitespace after function name sjames at gcc dot gnu.org
2024-08-03 23:23 ` [Bug middle-end/116208] " sjames at gcc dot gnu.org
@ 2024-08-03 23:23 ` pinskia at gcc dot gnu.org
2024-08-03 23:28 ` pinskia at gcc dot gnu.org
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-08-03 23:23 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116208
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|middle-end |c++
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
`__ct_base ` most like should be `range_op_table::range_op_table(..)` .
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/116208] "inlined from" diagnostic note has whitespace after function name
2024-08-03 23:20 [Bug middle-end/116208] New: "inlined from" diagnostic note has whitespace after function name sjames at gcc dot gnu.org
2024-08-03 23:23 ` [Bug middle-end/116208] " sjames at gcc dot gnu.org
2024-08-03 23:23 ` [Bug c++/116208] " pinskia at gcc dot gnu.org
@ 2024-08-03 23:28 ` pinskia at gcc dot gnu.org
2024-08-03 23:40 ` pinskia at gcc dot gnu.org
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-08-03 23:28 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116208
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Note the fix for the warning should be:
range_operator *m_range_tree[RANGE_OP_TABLE_SIZE]{}; in range-op.h.
That is value initialize m_range_tree which was not done before hand.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/116208] "inlined from" diagnostic note has whitespace after function name
2024-08-03 23:20 [Bug middle-end/116208] New: "inlined from" diagnostic note has whitespace after function name sjames at gcc dot gnu.org
` (2 preceding siblings ...)
2024-08-03 23:28 ` pinskia at gcc dot gnu.org
@ 2024-08-03 23:40 ` pinskia at gcc dot gnu.org
2024-08-03 23:40 ` sjames at gcc dot gnu.org
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-08-03 23:40 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116208
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Does this show up only with LTO?
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/116208] "inlined from" diagnostic note has whitespace after function name
2024-08-03 23:20 [Bug middle-end/116208] New: "inlined from" diagnostic note has whitespace after function name sjames at gcc dot gnu.org
` (3 preceding siblings ...)
2024-08-03 23:40 ` pinskia at gcc dot gnu.org
@ 2024-08-03 23:40 ` sjames at gcc dot gnu.org
2024-08-03 23:41 ` pinskia at gcc dot gnu.org
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: sjames at gcc dot gnu.org @ 2024-08-03 23:40 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116208
--- Comment #5 from Sam James <sjames at gcc dot gnu.org> ---
Pretty sure yes.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/116208] "inlined from" diagnostic note has whitespace after function name
2024-08-03 23:20 [Bug middle-end/116208] New: "inlined from" diagnostic note has whitespace after function name sjames at gcc dot gnu.org
` (4 preceding siblings ...)
2024-08-03 23:40 ` sjames at gcc dot gnu.org
@ 2024-08-03 23:41 ` pinskia at gcc dot gnu.org
2024-08-06 18:07 ` pinskia at gcc dot gnu.org
2024-08-27 15:57 ` [Bug c++/116208] `__ct_base ` is used instead of the ctor name in warning's `inlined from` when using LTO simartin at gcc dot gnu.org
7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-08-03 23:41 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116208
--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Note without LTO we get the correct function name.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/116208] "inlined from" diagnostic note has whitespace after function name
2024-08-03 23:20 [Bug middle-end/116208] New: "inlined from" diagnostic note has whitespace after function name sjames at gcc dot gnu.org
` (5 preceding siblings ...)
2024-08-03 23:41 ` pinskia at gcc dot gnu.org
@ 2024-08-06 18:07 ` pinskia at gcc dot gnu.org
2024-08-27 15:57 ` [Bug c++/116208] `__ct_base ` is used instead of the ctor name in warning's `inlined from` when using LTO simartin at gcc dot gnu.org
7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-08-06 18:07 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116208
--- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Note I have a fix for the ranger code; this is not a fix for the diagnostic
issue mentioned here.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/116208] `__ct_base ` is used instead of the ctor name in warning's `inlined from` when using LTO
2024-08-03 23:20 [Bug middle-end/116208] New: "inlined from" diagnostic note has whitespace after function name sjames at gcc dot gnu.org
` (6 preceding siblings ...)
2024-08-06 18:07 ` pinskia at gcc dot gnu.org
@ 2024-08-27 15:57 ` simartin at gcc dot gnu.org
7 siblings, 0 replies; 9+ messages in thread
From: simartin at gcc dot gnu.org @ 2024-08-27 15:57 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116208
Simon Martin <simartin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |simartin at gcc dot gnu.org
--- Comment #8 from Simon Martin <simartin at gcc dot gnu.org> ---
Thanks sjames@ for tagging me in
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105483.
My hunch is that we end up printing the internal name because of the
if (!DECL_LANG_SPECIFIC (t))
in error.cc's dump_function_name (in which case I think the bug can't really be
fixed...), but I don't know how to be sure.
How do you reproduce this? Are you configuring with
--with-build-config=bootstrap-lto?
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2024-08-27 15:57 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-08-03 23:20 [Bug middle-end/116208] New: "inlined from" diagnostic note has whitespace after function name sjames at gcc dot gnu.org
2024-08-03 23:23 ` [Bug middle-end/116208] " sjames at gcc dot gnu.org
2024-08-03 23:23 ` [Bug c++/116208] " pinskia at gcc dot gnu.org
2024-08-03 23:28 ` pinskia at gcc dot gnu.org
2024-08-03 23:40 ` pinskia at gcc dot gnu.org
2024-08-03 23:40 ` sjames at gcc dot gnu.org
2024-08-03 23:41 ` pinskia at gcc dot gnu.org
2024-08-06 18:07 ` pinskia at gcc dot gnu.org
2024-08-27 15:57 ` [Bug c++/116208] `__ct_base ` is used instead of the ctor name in warning's `inlined from` when using LTO simartin at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).