This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Failure to build libjava on 512MB machine
- From: Gerald Pfeifer <gerald at pfeifer dot com>
- To: Paolo Bonzini <paolo dot bonzini at lu dot unisi dot ch>
- Cc: Jan Hubicka <jh at suse dot cz>, gcc at gcc dot gnu dot org
- Date: Sat, 3 Feb 2007 10:49:32 +0100 (CET)
- Subject: Re: Failure to build libjava on 512MB machine
- References: <Pine.LNX.4.64.0701281729020.10489@acrux.dbai.tuwien.ac.at> <17855.12346.790265.312141@zebedee.pink> <45BF3596.8040203@gmx.ch> <17855.20818.92155.929454@zebedee.pink> <m3tzy8wapz.fsf@localhost.localdomain> <Pine.LNX.4.64.0701310255350.10003@acrux.dbai.tuwien.ac.at> <17856.25997.292976.620500@zebedee.pink> <Pine.LNX.4.64.0702012200100.10003@acrux.dbai.tuwien.ac.at> <Pine.LNX.4.64.0702020126550.4221@acrux.dbai.tuwien.ac.at> <45C2FC35.3060404@lu.unisi.ch>
On Fri, 2 Feb 2007, Paolo Bonzini wrote:
> I'd be curious to know the effect of removing the "complexity" field of
> struct tree_exp. It should be possible to bootstrap C/C++/Java/Fortran
> with a two line patch removing the field from tree.h, and the only
> reference to it in tree.c (via the macro TREE_COMPLEXITY).
You mean, like the patch below?
Doesn't work:
trunk/gcc/cp/pt.c: In function 'tsubst_expr':
trunk/gcc/cp/pt.c:8924: error: 'struct tree_exp' has no member named 'complexity'
Gerald
Index: tree.c
===================================================================
--- tree.c (revision 121482)
+++ tree.c (working copy)
@@ -2931,7 +2931,6 @@
#else
SET_EXPR_LOCUS (t, NULL);
#endif
- TREE_COMPLEXITY (t) = 0;
TREE_OPERAND (t, 0) = node;
TREE_BLOCK (t) = NULL_TREE;
if (node && !TYPE_P (node))
Index: tree.h
===================================================================
--- tree.h (revision 121482)
+++ tree.h (working copy)
@@ -1498,7 +1498,6 @@
/* In ordinary expression nodes. */
#define TREE_OPERAND(NODE, I) TREE_OPERAND_CHECK (NODE, I)
-#define TREE_COMPLEXITY(NODE) (EXPR_CHECK (NODE)->exp.complexity)
/* In gimple statements. */
#define GIMPLE_STMT_OPERAND(NODE, I) GIMPLE_STMT_OPERAND_CHECK (NODE, I)
@@ -1724,7 +1723,6 @@
{
struct tree_common common;
source_locus locus;
- int complexity;
tree block;
tree GTY ((special ("tree_exp"),
desc ("TREE_CODE ((tree) &%0)")))