This is the mail archive of the gcc-patches@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]

[C++ PATCH]: Tidy up


Hi,
I installed the attached. `u' is not uninitialized, but the control
flow is too complicated for the optimizer to see that.

nathan
-- 
Dr Nathan Sidwell   ::   http://www.codesourcery.com   ::   CodeSourcery LLC
         'But that's a lie.' - 'Yes it is. What's your point?'
nathan@codesourcery.com : http://www.cs.bris.ac.uk/~nathan/ : nathan@acm.org
2000-03-15  Nathan Sidwell  <nathan@codesourcery.com>

	* decl.c (cp_finish_decl): Remove obsolete comment.
	
	* typeck.c (build_ptrmemfunc1): Kill uninitialized warning.

Index: cp/decl.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/cp/decl.c,v
retrieving revision 1.568
diff -c -3 -p -r1.568 decl.c
*** decl.c	2000/03/13 19:23:34	1.568
--- decl.c	2000/03/15 09:43:08
*************** emit_local_var (decl)
*** 7844,7855 ****
     the normal rules.
  
     FLAGS is LOOKUP_ONLYCONVERTING if the = init syntax was used, else 0
!    if the (init) syntax was used.
! 
!    For functions that take default parameters, DECL points to its
!    "maximal" instantiation.  `cp_finish_decl' must then also declared its
!    subsequently lower and lower forms of instantiation, checking for
!    ambiguity as it goes.  This can be sped up later.  */
  
  void
  cp_finish_decl (decl, init, asmspec_tree, flags)
--- 7844,7850 ----
     the normal rules.
  
     FLAGS is LOOKUP_ONLYCONVERTING if the = init syntax was used, else 0
!    if the (init) syntax was used.  */
  
  void
  cp_finish_decl (decl, init, asmspec_tree, flags)
Index: cp/typeck.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/cp/typeck.c,v
retrieving revision 1.262
diff -c -3 -p -r1.262 typeck.c
*** typeck.c	2000/03/10 09:25:45	1.262
--- typeck.c	2000/03/15 09:43:09
*************** tree
*** 6077,6083 ****
  build_ptrmemfunc1 (type, delta, idx, pfn, delta2)
       tree type, delta, idx, pfn, delta2;
  {
!   tree u;
    tree delta_field;
    tree idx_field;
    tree pfn_or_delta2_field;
--- 6077,6083 ----
  build_ptrmemfunc1 (type, delta, idx, pfn, delta2)
       tree type, delta, idx, pfn, delta2;
  {
!   tree u = NULL_TREE;
    tree delta_field;
    tree idx_field;
    tree pfn_or_delta2_field;

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