This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
build_decl() return value ignored in java/decl.c
- To: gcc at gcc dot gnu dot org
- Subject: build_decl() return value ignored in java/decl.c
- From: Fergus Henderson <fjh at cs dot mu dot oz dot au>
- Date: Thu, 28 Dec 2000 13:30:27 +1100
In init_decl_processing() in java/decl.c, around lines 600-700, there
are quite a few calls to build_decl() that ignore the return value.
For example:
| methodtable_type = make_node (RECORD_TYPE);
| layout_type (methodtable_type);
| build_decl (TYPE_DECL, get_identifier ("methodtable"), methodtable_type);
But the documentation for build_decl() seems to indicate that
it has no side effects:
| /* Create a DECL_... node of code CODE, name NAME and data type TYPE.
| We do NOT enter this node in any sort of symbol table.
So what's the purpose of those calls?
--
Fergus Henderson <fjh@cs.mu.oz.au> | "I have always known that the pursuit
| of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh> | -- the last words of T. S. Garp.