This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

build_decl() return value ignored in java/decl.c


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]