public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug debug/50497] New: gcc 4.6.x '-g' option no longer emits the .debug_pubnames section
@ 2011-09-23 17:31 geir at cray dot com
2011-09-23 17:38 ` [Bug debug/50497] " geir at cray dot com
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: geir at cray dot com @ 2011-09-23 17:31 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50497
Bug #: 50497
Summary: gcc 4.6.x '-g' option no longer emits the
.debug_pubnames section
Classification: Unclassified
Product: gcc
Version: 4.6.1
Status: UNCONFIRMED
Severity: critical
Priority: P3
Component: debug
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: geir@cray.com
Our performance tool collection relies on the DWARF .debug_pubnames
section to quickly find global symbols. As of GCC 4.6.0 this section is no
longer emitted when -g is specified, imposing an unnecessary hardship upon the
performance tools. Signification problems it causes includes:
1. preventing users of the tool to instrument entry points in user-defined
source code (although -finstrument-functions can circumvent this it requires a
re-compilation of source not previously required)
2. imposing a severe processing overhead penalty if using other means to gather
subprogram details for all globally defined entry points
This bug requests that the .debug_pubnames section again be emitted when -g is
specified. Otherwise, an option should be provided that will allow this as I am
sure other tools have experienced this imposition of a seemingly short-sided
decision (and least I can not find any logical reason why this section was
removed)
Test case:
$ cat abc.c
void a () { }
void b () { }
void c () { }
$
** Here is GCC 4.5.3 working: **
$ gcc --version
gcc (GCC) 4.5.3 20110428 (Cray Inc.)
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$ dwarfdump abc.o
<snip>
.debug_pubnames
global a die-in-sect 45, cu-in-sect 11, die-in-cu 45,
cu-header-in
-sect 0
global b die-in-sect 71, cu-in-sect 11, die-in-cu 71,
cu-header-in
-sect 0
global c die-in-sect 97, cu-in-sect 11, die-in-cu 97,
cu-header-in
-sect 0
.debug_macinfo
<snip>
** Here is GCC 4.6.1 not working: **
$ gcc --version
gcc (GCC) 4.6.1 20110627 (Cray Inc.)
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$ gcc -c -g abc.c
$ dwarfdump abc.o
<snip>
.debug_pubnames
.debug_macinfo
<snip>
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug debug/50497] gcc 4.6.x '-g' option no longer emits the .debug_pubnames section
2011-09-23 17:31 [Bug debug/50497] New: gcc 4.6.x '-g' option no longer emits the .debug_pubnames section geir at cray dot com
@ 2011-09-23 17:38 ` geir at cray dot com
2011-09-23 17:57 ` pinskia at gcc dot gnu.org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: geir at cray dot com @ 2011-09-23 17:38 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50497
--- Comment #1 from Geir Johansen <geir at cray dot com> 2011-09-23 17:20:49 UTC ---
If there is some workaround that will enable previous behavior please add
that to this bug.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug debug/50497] gcc 4.6.x '-g' option no longer emits the .debug_pubnames section
2011-09-23 17:31 [Bug debug/50497] New: gcc 4.6.x '-g' option no longer emits the .debug_pubnames section geir at cray dot com
2011-09-23 17:38 ` [Bug debug/50497] " geir at cray dot com
@ 2011-09-23 17:57 ` pinskia at gcc dot gnu.org
2021-09-13 5:31 ` pinskia at gcc dot gnu.org
2021-09-13 5:45 ` pinskia at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2011-09-23 17:57 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50497
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|critical |normal
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> 2011-09-23 17:30:31 UTC ---
http://gcc.gnu.org/ml/gcc-patches/2010-06/msg02089.html
I think we should close this as won't fix as only 4.5.x implemented
debug_pubnames
and if I read the above there it was broken too.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug debug/50497] gcc 4.6.x '-g' option no longer emits the .debug_pubnames section
2011-09-23 17:31 [Bug debug/50497] New: gcc 4.6.x '-g' option no longer emits the .debug_pubnames section geir at cray dot com
2011-09-23 17:38 ` [Bug debug/50497] " geir at cray dot com
2011-09-23 17:57 ` pinskia at gcc dot gnu.org
@ 2021-09-13 5:31 ` pinskia at gcc dot gnu.org
2021-09-13 5:45 ` pinskia at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-09-13 5:31 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50497
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |WONTFIX
Status|UNCONFIRMED |RESOLVED
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
This is a won't fix after 10 years.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug debug/50497] gcc 4.6.x '-g' option no longer emits the .debug_pubnames section
2011-09-23 17:31 [Bug debug/50497] New: gcc 4.6.x '-g' option no longer emits the .debug_pubnames section geir at cray dot com
` (2 preceding siblings ...)
2021-09-13 5:31 ` pinskia at gcc dot gnu.org
@ 2021-09-13 5:45 ` pinskia at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-09-13 5:45 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50497
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
I should note that -gpubnames was added with r0-117471 for GCC 4.8.0.
And -ggnu-pubnames was added with r0-125994 for 4.9.0.
You can use those options if you want pubnames.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2021-09-13 5:45 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-23 17:31 [Bug debug/50497] New: gcc 4.6.x '-g' option no longer emits the .debug_pubnames section geir at cray dot com
2011-09-23 17:38 ` [Bug debug/50497] " geir at cray dot com
2011-09-23 17:57 ` pinskia at gcc dot gnu.org
2021-09-13 5:31 ` pinskia at gcc dot gnu.org
2021-09-13 5:45 ` pinskia 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).