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]
Other format: [Raw text]

[C++ PATCH, committed] Fix typos in decl.c


This is just typos fixes to decl.c.  Committed to trunk as obvious.

--Kriang


2003-05-05  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>

	* decl.c: Fix typos.


diff -cprN gcc-main-save/gcc/cp/decl.c gcc-main-new/gcc/cp/decl.c
*** gcc-main-save/gcc/cp/decl.c	Mon May  5 19:36:04 2003
--- gcc-main-new/gcc/cp/decl.c	Mon May  5 19:34:23 2003
*************** poplevel (int keep, int reverse, int fun
*** 1393,1399 ****
  		 there only for backward compatibility.  */
  	      DECL_DEAD_FOR_LOCAL (link) = 1;
  
! 	      /* Keep track of what should of have happenned when we
  		 popped the binding.  */
  	      if (outer_binding && BINDING_VALUE (outer_binding))
  		DECL_SHADOWED_FOR_VAR (link)
--- 1393,1399 ----
  		 there only for backward compatibility.  */
  	      DECL_DEAD_FOR_LOCAL (link) = 1;
  
! 	      /* Keep track of what should of have happened when we
  		 popped the binding.  */
  	      if (outer_binding && BINDING_VALUE (outer_binding))
  		DECL_SHADOWED_FOR_VAR (link)
*************** duplicate_decls (tree newdecl, tree oldd
*** 2951,2957 ****
  	  SET_DECL_RTL (olddecl, DECL_RTL (newdecl));
  	}
        /* Even if the types match, prefer the new declarations type
! 	 for anitipated built-ins, for exception lists, etc...  */
        else if (DECL_ANTICIPATED (olddecl))
  	TREE_TYPE (olddecl) = TREE_TYPE (newdecl);
  
--- 2951,2957 ----
  	  SET_DECL_RTL (olddecl, DECL_RTL (newdecl));
  	}
        /* Even if the types match, prefer the new declarations type
! 	 for anticipated built-ins, for exception lists, etc...  */
        else if (DECL_ANTICIPATED (olddecl))
  	TREE_TYPE (olddecl) = TREE_TYPE (newdecl);
  
*************** duplicate_decls (tree newdecl, tree oldd
*** 3243,3249 ****
  	  && TYPE_LANG_SPECIFIC (newtype) && TYPE_LANG_SPECIFIC (oldtype))
  	CLASSTYPE_FRIEND_CLASSES (newtype)
  	  = CLASSTYPE_FRIEND_CLASSES (oldtype);
! \
        DECL_ORIGINAL_TYPE (newdecl) = DECL_ORIGINAL_TYPE (olddecl);
      }
  
--- 3243,3249 ----
  	  && TYPE_LANG_SPECIFIC (newtype) && TYPE_LANG_SPECIFIC (oldtype))
  	CLASSTYPE_FRIEND_CLASSES (newtype)
  	  = CLASSTYPE_FRIEND_CLASSES (oldtype);
! 
        DECL_ORIGINAL_TYPE (newdecl) = DECL_ORIGINAL_TYPE (olddecl);
      }
  


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