------- Comment #1 from jrgn dot keil at googlemail dot com  2010-04-04 21:15 
-------
Created an attachment (id=20306)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20306&action=view)
SUggested fix

This patch should fix the problem.

% /tmp/gcc4/bin/gcc -m64 -pg -o test test.c   
% ./test                                                           
% gprof -b test gmon.out                                           

granularity: each sample hit covers 4 byte(s) no time propagated

                                  called/total       parents 
index  %time    self descendents  called+self    name           index
                                  called/total       children

                0.00        0.00       1/1           main [2]
[1]      0.0    0.00        0.00       1         func [1]

-----------------------------------------------

                0.00        0.00       1/1           _start [16]
[2]      0.0    0.00        0.00       1         main [2]
                0.00        0.00       1/1           func [1]

-----------------------------------------------




granularity: each sample hit covers 4 byte(s) no time accumulated

   %  cumulative    self              self    total          
 time   seconds   seconds    calls  ms/call  ms/call name    
  0.0       0.00     0.00        1     0.00     0.00  func [1]
  0.0       0.00     0.00        1     0.00     0.00  main [2]


Index by function name

   [1] func                  [2] main               


Object modules

 1: test


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43643

Reply via email to