public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Callgraph of GCC 4.0.0
@ 2004-11-23 15:56 nico
  2004-11-23 15:58 ` Joe Buck
  0 siblings, 1 reply; 5+ messages in thread
From: nico @ 2004-11-23 15:56 UTC (permalink / raw)
  To: gcc

Hi,

is there a simple way to get the whole callgraph of the GCC 4.0.0?
I tried to get it with gprof, but I think I make something wrong, 
because I only got a very little callgraph with only a few functions.
Is there an install- or configure-option or something like that for my 
request?

Thanks a lot
Nico

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Callgraph of GCC 4.0.0
  2004-11-23 15:56 Callgraph of GCC 4.0.0 nico
@ 2004-11-23 15:58 ` Joe Buck
  2004-11-25 15:33   ` nico
  0 siblings, 1 reply; 5+ messages in thread
From: Joe Buck @ 2004-11-23 15:58 UTC (permalink / raw)
  To: nico; +Cc: gcc

On Tue, Nov 23, 2004 at 04:49:29PM +0100, nico wrote:
> is there a simple way to get the whole callgraph of the GCC 4.0.0?
> I tried to get it with gprof, but I think I make something wrong, 
> because I only got a very little callgraph with only a few functions.
> Is there an install- or configure-option or something like that for my 
> request?

I'll bet this is because you generated the callgraph of the tiny gcc
executable, and not the callgraph of the real compiler (cc1 or cc1plus).

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Callgraph of GCC 4.0.0
  2004-11-25 15:33   ` nico
@ 2004-11-25 15:33     ` Diego Novillo
  2004-11-25 15:47       ` nico
  0 siblings, 1 reply; 5+ messages in thread
From: Diego Novillo @ 2004-11-25 15:33 UTC (permalink / raw)
  To: nico; +Cc: Joe Buck, gcc

On Thu, 2004-11-25 at 15:11 +0100, nico wrote:

> I tried it with the cc1, but I can't find any function from the "middle 
> end" (tree-ssa ...) in the call graph. there are only functions like 
> these:
> 
You are not giving many details.  What commands did you try exactly?
Did you check that all the .o files in cc1/cc1plus were compiled with -
pg?  How are you running cc1?


Diego.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Callgraph of GCC 4.0.0
  2004-11-23 15:58 ` Joe Buck
@ 2004-11-25 15:33   ` nico
  2004-11-25 15:33     ` Diego Novillo
  0 siblings, 1 reply; 5+ messages in thread
From: nico @ 2004-11-25 15:33 UTC (permalink / raw)
  To: Joe Buck; +Cc: gcc


On Nov 23, 2004, at 4:56 PM, Joe Buck wrote:

> On Tue, Nov 23, 2004 at 04:49:29PM +0100, nico wrote:

> I'll bet this is because you generated the callgraph of the tiny gcc
> executable, and not the callgraph of the real compiler (cc1 or 
> cc1plus).

Hi,

I tried it with the cc1, but I can't find any function from the "middle 
end" (tree-ssa ...) in the call graph. there are only functions like 
these:

   [47] _build_compound_lit  [35] _get_parm_info       [30] _pop_scope
   [41] _builtin_function    [44] _global_bindings_p   [53] _push_scope
   [34] _c_lex_with_flags    [48] _grokdeclarator      [51] 
_shadow_tag_warned
   [33] _c_parse_init        [49] _grokfield           [46] _start_decl
   [38] _declare_label       [50] _implicitly_declare  [54] 
_undeclared_variabl
   [43] _define_label        [45] _lex_string          [37] _yyerror
   [52] _duplicate_decls     [39] _make_label          [36] _yylex
   [42] _finish_decl         [31] _merge_decls         [32] _yyparse
   [29] _finish_struct       [40] _parser_xref_tag

:-(
I'm missing a lot of functions ...

nico

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Callgraph of GCC 4.0.0
  2004-11-25 15:33     ` Diego Novillo
@ 2004-11-25 15:47       ` nico
  0 siblings, 0 replies; 5+ messages in thread
From: nico @ 2004-11-25 15:47 UTC (permalink / raw)
  To: Diego Novillo; +Cc: gcc


On Nov 25, 2004, at 3:20 PM, Diego Novillo wrote:

> You are not giving many details.

sorry.

> What commands did you try exactly?
> Did you check that all the .o files in cc1/cc1plus were compiled with -
> pg?

make -n gives me something like this:
--------------------------
gcc -c   -g -pg -O2  -DIN_GCC   -W -Wall -Wwrite-strings 
-Wstrict-prototypes -Wmissing-prototypes  -fno-common   -DHAVE_CONFIG_H 
    -I. -I. -I../../gcc -I../../gcc/. -I../../gcc/../include -I./../intl 
-I../../gcc/../libcpp/include  ../../gcc/tree-ssa.c -o tree-ssa.o
--------------------------

i think its ok.

>   How are you running cc1?

usr/local/gcc-4.0.0-test/bin/gcc ./main.c

oops  ... and there was the mistake! sorry.

Thank you
ciao
nico

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-11-25 15:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-23 15:56 Callgraph of GCC 4.0.0 nico
2004-11-23 15:58 ` Joe Buck
2004-11-25 15:33   ` nico
2004-11-25 15:33     ` Diego Novillo
2004-11-25 15:47       ` nico

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).