This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH cp/tree.c - don't set TREE_COMPLEXITY from input_line
- From: Steven Bosscher <stevenb at suse dot de>
- To: Per Bothner <per at bothner dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Wed, 30 Jun 2004 10:37:25 +0200
- Subject: Re: PATCH cp/tree.c - don't set TREE_COMPLEXITY from input_line
- Organization: SUSE Labs
References: http://gcc.gnu.org/ml/gcc-patches/2004-06/msg02552.html
You wrote:
> * tree.c: Don't set TREE_COMPLEXITY from input_line.
Whoops, I had a patch for that a few weeks ago that I didn't
commit because my tree was a mess. Apparently I forgot about
it later.
You can also remove the following:
* decl2.c (grokfield): Ignore TREE_COMPLEXITY, it's never
set anywhere.
Index: cp/decl.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cp/decl.c,v
retrieving revision 1.1213
diff -c -3 -p -r1.1213 decl.c
*** cp/decl.c 10 Jun 2004 08:08:00 -0000 1.1213
--- cp/decl.c 12 Jun 2004 12:22:09 -0000
*************** grokdeclarator (tree declarator,
*** 6560,6567 ****
}
else if (ctype == NULL_TREE)
ctype = cname;
- else if (TREE_COMPLEXITY (decl) == current_class_depth)
- ;
else
{
if (! UNIQUELY_DERIVED_FROM_P (cname, ctype))
--- 6560,6565 ----
That was already approved by Jason, but as I said, I forgot about
it. Sorry for the inconvenience.
Gr.
Steven