varpool.c (varpool_last_needed_node): Fix comment typo.
authorTom Tromey <tromey@redhat.com>
Fri, 24 Aug 2007 21:10:41 +0000 (21:10 +0000)
committerTom Tromey <tromey@gcc.gnu.org>
Fri, 24 Aug 2007 21:10:41 +0000 (21:10 +0000)
* varpool.c (varpool_last_needed_node): Fix comment typo.
* c-decl.c (duplicate_decls): Fix comment typo.
(clone_underlying_type): Update comment.

From-SVN: r127788

gcc/ChangeLog
gcc/c-decl.c
gcc/varpool.c

index 789d74ec0dd0085223e8bb53705772e32ed38490..450c4811b6c8a8386c631c4721bf4f6d1ef5ed90 100644 (file)
@@ -1,3 +1,9 @@
+2007-08-24  Tom Tromey  <tromey@redhat.com>
+
+       * varpool.c (varpool_last_needed_node): Fix comment typo.
+       * c-decl.c (duplicate_decls): Fix comment typo.
+       (clone_underlying_type): Update comment.
+
 2007-08-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
 
        * config/alpha/alpha.c (alpha_mangle_type, decl_has_samegp,
index d6eb39aa45c13f44ecc908e3e92fa808abe0ca36..1625046a64fc0688b017ed74ac2eec8277a828bb 100644 (file)
@@ -1930,7 +1930,7 @@ duplicate_decls (tree newdecl, tree olddecl)
 
   if (!diagnose_mismatched_decls (newdecl, olddecl, &newtype, &oldtype))
     {
-      /* Avoid `unused variable' and other warnings warnings for OLDDECL.  */
+      /* Avoid `unused variable' and other warnings for OLDDECL.  */
       TREE_NO_WARNING (olddecl) = 1;
       return false;
     }
@@ -2028,11 +2028,7 @@ warn_if_shadowing (tree new_decl)
 
     Obviously, we don't want to generate a duplicate ..._TYPE node if
     the TYPE_DECL node that we are now processing really represents a
-    standard built-in type.
-
-    Since all standard types are effectively declared at line zero
-    in the source file, we can easily check to see if we are working
-    on a standard type by checking the current value of lineno.  */
+    standard built-in type.  */
 
 static void
 clone_underlying_type (tree x)
index 9be16417de44a3f22fb330223619b0b7fc4d7ec2..719f212cbf529c68cce25123675dfe5224c03084 100644 (file)
@@ -57,8 +57,9 @@ struct varpool_node *varpool_nodes;
    The queue is maintained via mark_needed_node, linked via node->next_needed
    pointer. 
 
-   LAST_NNEDED_NODE points to the end of queue, so it can be maintained in forward
-   order.  QTY is needed to make it friendly to PCH.
+   LAST_NEEDED_NODE points to the end of queue, so it can be
+   maintained in forward order.  QTY is needed to make it friendly to
+   PCH.
  
    During unit-at-a-time compilation we construct the queue of needed variables
    twice: first time it is during cgraph construction, second time it is at the