* can't use the ssa tree browser.
@ 2003-03-25 11:37 Matthieu Moy
2003-03-26 2:26 ` Diego Novillo
0 siblings, 1 reply; 2+ messages in thread
From: Matthieu Moy @ 2003-03-25 11:37 UTC (permalink / raw)
To: gcc-help
hi,
I've cvs-ed the tree-ssa-20020619-branch of gcc, configured it
(../configure --prefix=$HOME/gcc-ssa/gcc/target \
--enable-languages=c,c++)
Compilation was OK. I removed the -02 flag, and keept the -g in the
makefile.
I can launch gdb cc1plus, put breakpoints, step through the code, ...
Now, I want to use the tree-browser described here :
http://gcc.gnu.org/projects/tree-ssa/tree-browser.html.
When I type the suggested command, I get
(gdb) p browse_tree (current_function_decl)
No symbol "browse_tree" in current context.
(gdb)
the file tree-browser.o exists. Do I have to load it explicitely ?
(I've tried
(gdb) load tree-browser.o
You can't do that when your target is `child'
(gdb)
)
Any idea about what I'm doint wrong ?
Thanks,
--
Matthieu
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: can't use the ssa tree browser.
2003-03-25 11:37 can't use the ssa tree browser Matthieu Moy
@ 2003-03-26 2:26 ` Diego Novillo
0 siblings, 0 replies; 2+ messages in thread
From: Diego Novillo @ 2003-03-26 2:26 UTC (permalink / raw)
To: gcc-help
In article <vpq1y0v946e.fsf@imag.fr>, Matthieu Moy wrote:
> Any idea about what I'm doint wrong ?
>
Since no function in tree-browser.o is ever called from GCC itself,
tree-browser.o is never linked in. Try this patch. It moves
tree-browser.o out of libbackend.a.
We probably need a better long term solution. I don't want to have
tree-browser.o compiled-in by default. We should probably add a configure
switch. Suggestions welcome.
Diego.
Index: Makefile.in
===================================================================
RCS file: /cvs/gcc/gcc/gcc/Makefile.in,v
retrieving revision 1.903.2.80
diff -d -u -p -r1.903.2.80 Makefile.in
--- Makefile.in 23 Mar 2003 05:29:26 -0000 1.903.2.80
+++ Makefile.in 25 Mar 2003 20:28:05 -0000
@@ -776,7 +776,8 @@ C_AND_OBJC_OBJS = attribs.o c-errors.o c
c-convert.o c-aux-info.o c-common.o c-opts.o c-format.o c-semantics.o \
c-incpath.o cppdefault.o \
c-objc-common.o c-dump.o c-pch.o libcpp.a $(C_TARGET_OBJS) \
- c-simplify.o c-call-graph.o tree-mudflap.o c-mudflap.o c-pretty-print.o
+ c-simplify.o c-call-graph.o tree-mudflap.o c-mudflap.o c-pretty-print.o \
+ tree-browser.o
# Language-specific object files for C.
C_OBJS = c-parse.o c-lang.o $(C_AND_OBJC_OBJS)
@@ -785,7 +786,7 @@ C_OBJS = c-parse.o c-lang.o $(C_AND_OBJC
OBJS = tree-cfg.o tree-dfa.o tree-ssa.o tree-optimize.o tree-simple.o \
tree-alias-type.o gimplify.o tree-nomudflap.o tree-pretty-print.o \
- tree-alias-common.o tree-ssa-ccp.o tree-browser.o @ANDER@ tree-ssa-dce.o \
+ tree-alias-common.o tree-ssa-ccp.o @ANDER@ tree-ssa-dce.o \
tree-ssa-pre.o tree-ssa-copyprop.o \
alias.o bb-reorder.o bitmap.o builtins.o caller-save.o calls.o \
cfg.o cfganal.o cfgbuild.o cfgcleanup.o cfglayout.o cfgloop.o \
Index: cp/Make-lang.in
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cp/Make-lang.in,v
retrieving revision 1.115.2.24
diff -d -u -p -r1.115.2.24 Make-lang.in
--- cp/Make-lang.in 2 Mar 2003 19:59:04 -0000 1.115.2.24
+++ cp/Make-lang.in 25 Mar 2003 20:28:05 -0000
@@ -80,7 +80,7 @@ g++-cross$(exeext): g++$(exeext)
# Shared with C front end:
CXX_C_OBJS = attribs.o c-common.o c-format.o c-pragma.o c-semantics.o c-lex.o \
c-dump.o $(CXX_TARGET_OBJS) c-pretty-print.o c-opts.o c-pch.o \
- c-incpath.o cppdefault.o c-simplify.o tree-inline.o
+ c-incpath.o cppdefault.o c-simplify.o tree-inline.o tree-browser.o
# Language-specific object files.
CXX_OBJS = cp/call.o cp/decl.o cp/expr.o cp/pt.o cp/typeck2.o \
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-03-25 20:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-25 11:37 can't use the ssa tree browser Matthieu Moy
2003-03-26 2:26 ` Diego Novillo
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).