public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug gcov-profile/31624] New: gprof names are mangled under 64 bit compilation
@ 2007-04-18 15:33 vkywong at ca dot ibm dot com
2007-04-18 19:04 ` [Bug gcov-profile/31624] " pinskia at gcc dot gnu dot org
0 siblings, 1 reply; 2+ messages in thread
From: vkywong at ca dot ibm dot com @ 2007-04-18 15:33 UTC (permalink / raw)
To: gcc-bugs
Problem description
===================
Function names are mangled in gprof output. Such name mangling in gprof
output only occurs when compiling with g++ under 64 bit modes
Compiler output
===============
The name HelloWorld is mangled.
Flat profile:
Each sample counts as 0.01 seconds.
no time accumulated
% cumulative self self total
time seconds seconds calls Ts/call Ts/call name
0.00 0.00 0.00 7 0.00 0.00 ._Z10HelloWorldv
0.00 0.00 0.00 1 0.00 0.00 .__gmon_start__
^L Call graph
granularity: each sample hit covers 4 byte(s) no time propagated
index % time self children called name
0.00 0.00 7/7 .main [9]
[1] 0.0 0.00 0.00 7 ._Z10HelloWorldv [1]
-----------------------------------------------
1 .__gmon_start__ [2]
0.00 0.00 1/1 .atexit [8]
[2] 0.0 0.00 0.00 1+1 .__gmon_start__ [2]
1 .__gmon_start__ [2]
-----------------------------------------------
^L
Index by function name
[1] ._Z10HelloWorldv [2] .__gmon_start__Expected output
===============
Flat profile:
Each sample counts as 0.01 seconds.
no time accumulated
% cumulative self self total
time seconds seconds calls Ts/call Ts/call name
0.00 0.00 0.00 7 0.00 0.00 HelloWorld()
0.00 0.00 0.00 1 0.00 0.00 global constructors keyed
to _Z10HelloWorldv
0.00 0.00 0.00 1 0.00 0.00
__static_initialization_and_destruction_0(int, int)
^L
Call graph
granularity: each sample hit covers 4 byte(s) no time propagated
index % time self children called name
0.00 0.00 7/7 main [10]
[11] 0.0 0.00 0.00 7 HelloWorld() [11]
-----------------------------------------------
0.00 0.00 1/1 __do_global_ctors_aux [14]
[12] 0.0 0.00 0.00 1 global constructors keyed to
_Z10HelloWorldv [12]
0.00 0.00 1/1
__static_initialization_and_destruction_0(int, int) [13]
-----------------------------------------------
0.00 0.00 1/1 global constructors keyed to
_Z10HelloWorldv [12]
[13] 0.0 0.00 0.00 1
__static_initialization_and_destruction_0(int, int) [13]
-----------------------------------------------
^L
Index by function name
[12] global constructors keyed to _Z10HelloWorldv [11] HelloWorld() [13]
__static_initialization_and_destruction_0(int, int)
Steps to reproduce the problem
==============================
#
/usr/bin/g++ -m64 -pg -o hello hello.C >STEP1.out 2>&1
#
./hello >hello.out 2>STEP2.out
#
/usr/bin/gprof -b hello gmon.out >gprof.out 2>STEP6.out
/* Listing of hello.C */
#include <stream.h>
void HelloWorld()
{
cout << "Hello, World\n";
}
int main()
{
for(int i=0; i<7; i++)
HelloWorld();
return(0);
}
--
Summary: gprof names are mangled under 64 bit compilation
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: gcov-profile
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: vkywong at ca dot ibm dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31624
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug gcov-profile/31624] gprof names are mangled under 64 bit compilation
2007-04-18 15:33 [Bug gcov-profile/31624] New: gprof names are mangled under 64 bit compilation vkywong at ca dot ibm dot com
@ 2007-04-18 19:04 ` pinskia at gcc dot gnu dot org
0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-04-18 19:04 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2007-04-18 20:04 -------
gprof is not part of GCC, it is part of binutils.
The problem is that gprof is not stripping out the dot part of the symbol.
Report this to the binutils folks.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31624
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-04-18 19:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-18 15:33 [Bug gcov-profile/31624] New: gprof names are mangled under 64 bit compilation vkywong at ca dot ibm dot com
2007-04-18 19:04 ` [Bug gcov-profile/31624] " pinskia at gcc dot gnu dot 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).