Patch to remove build_parse_node

Jeffrey A Law law@redhat.com
Mon Jan 29 10:54:00 GMT 2001


  In message <Pine.LNX.4.32.0101281846550.2832-100000@kern.srcf.societies.cam.a
c.uk>you write:
  > I previously noted
  > <URL: http://gcc.gnu.org/ml/gcc/2001-01/msg00894.html > that build_nt
  > and build_parse_node were identical.  In the absence of any comments
  > then on whether one of these functions should die, and which one, this
  > patch gets rid of build_parse_node since it was the one with fewer
  > calls.  (This change should make the compiler very slightly smaller.)
  > 
  > Bootstrapped with no regressions on i686-pc-linux-gnu.  OK to commit?
  > 
  > 2001-01-28  Joseph S. Myers  <jsm28@cam.ac.uk>
  > 
  > 	* tree.c, tree.h (build_parse_node): Remove; was identical to
  > 	build_nt.
  > 	* c-lang.c (start_cdtor), objc/objc-act.c
  > 	(build_module_descriptor): Use build_nt instead of
  > 	build_parse_node.
  > 
  > 2001-01-28  Joseph S. Myers  <jsm28@cam.ac.uk>
  > 
  > 	* decl2.c (build_expr_from_tree), lex.c (make_pointer_declarator,
  > 	make_reference_declarator, make_call_declarator), method.c
  > 	(implicitly_declare_fn), parse.y (namespace_using_decl,
  > 	notype_unqualified_id, expr_or_declarator, new_type_id,
  > 	after_type_declarator, direct_after_type_declarator,
  > 	notype_declarator, complex_notype_declarator,
  > 	complex_direct_notype_declarator, qualified_id,
  > 	notype_qualified_id, overqualified_id, direct_new_declarator,
  > 	absdcl, direct_abstract_declarator, conversion_declarator), pt.c
  > 	(tsubst), semantics.c (begin_constructor_declarator): Use build_nt
  > 	instead of build_parse_node.
This if fine.  Please install this patch.

Note, if we're still trying to document changes in the front-end interface,
we should note that build_parse_node is gone.

jeff



More information about the Gcc-patches mailing list