This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Patch: Enable tree-browser with --enable-checking
Zack Weinberg wrote:
Bryce McKinlay <mckinlay@redhat.com> writes:
Does anyone object to enabling browse_tree() in all builds?
How big is it?
On i686 it is appox. 20k stripped, or about 0.5% of the total size of cc1.
Then I think there's no harm in enabling it always.
Sounds good to me. Here is the patch. OK to commit?
Bryce
2004-05-28 Bryce McKinlay <mckinlay@redhat.com>
* Makefile.in: Enable tree-browser for all builds.
(OBJS-common): Add tree-browser.o.
(BACKEND): Remove @TREEBROWSER@.
* configure.ac: Remove TREEBROWSER definition.
Index: configure.ac
===================================================================
RCS file: /cvs/gcc/gcc/gcc/configure.ac,v
retrieving revision 2.39
diff -u -r2.39 configure.ac
--- configure.ac 27 May 2004 19:47:36 -0000 2.39
+++ configure.ac 28 May 2004 19:15:19 -0000
@@ -425,12 +425,9 @@
AC_DEFINE(ENABLE_TREE_CHECKING, 1,
[Define if you want all operations on trees (the basic data
structure of the front ends) to be checked for dynamic type safety
- at runtime. This is moderately expensive. The tree browser debugging
- routines will also be enabled by this option.
+ at runtime. This is moderately expensive.
])
- TREEBROWSER=tree-browser.o
fi
-AC_SUBST(TREEBROWSER)
if test x$ac_rtl_checking != x ; then
AC_DEFINE(ENABLE_RTL_CHECKING, 1,
[Define if you want all operations on RTL (the basic data structure
Index: Makefile.in
===================================================================
RCS file: /cvs/gcc/gcc/gcc/Makefile.in,v
retrieving revision 1.1287
diff -u -r1.1287 Makefile.in
--- Makefile.in 25 May 2004 20:16:52 -0000 1.1287
+++ Makefile.in 28 May 2004 19:15:20 -0000
@@ -874,7 +874,7 @@
OBJS-common = \
tree-cfg.o tree-dfa.o tree-eh.o tree-ssa.o tree-optimize.o tree-gimple.o \
tree-alias-type.o gimplify.o tree-pretty-print.o tree-into-ssa.o \
- tree-outof-ssa.o tree-alias-common.o tree-ssa-ccp.o \
+ tree-outof-ssa.o tree-alias-common.o tree-ssa-ccp.o tree-browser.o \
@ANDER@ tree-ssa-dce.o tree-ssa-copy.o tree-nrv.o tree-ssa-copyrename.o \
tree-ssa-pre.o tree-ssa-live.o tree-ssa-operands.o tree-ssa-alias.o \
tree-ssa-phiopt.o tree-ssa-forwprop.o tree-nested.o tree-ssa-dse.o \
@@ -913,7 +913,7 @@
OBJS-onestep = libbackend.o $(OBJS-archive)
-BACKEND = main.o @TREEBROWSER@ libbackend.a $(CPPLIB)
+BACKEND = main.o libbackend.a $(CPPLIB)
# Files to be copied away after each stage in building.
STAGESTUFF = *$(objext) insn-flags.h insn-config.h insn-codes.h \