diff mbox series

[committed,obvious] Fix some comment typos in alias.c

Message ID e3ab48be-a605-ab56-5bc9-3ed86dfa2287@codesourcery.com
State New
Headers show
Series [committed,obvious] Fix some comment typos in alias.c | expand

Commit Message

Sandra Loosemore April 2, 2020, 10:33 p.m. UTC
I noticed a bunch of comment typos in get_alias_set when I was reading 
code to try to track down a bug affecting nios2 targets (see pr93946). 
I've checked in this patch to clean them up.

-Sandra
diff mbox series

Patch

commit 63f56527335a7667769b5dea15569e23d0ebc749
Author: Sandra Loosemore <sandra@codesourcery.com>
Date:   Thu Apr 2 15:29:10 2020 -0700

    Fix some comment typos in alias.c.
    
    2020-04-02  Sandra Loosemore  <sandra@codesourcery.com>
    
    	* alias.c (get_alias_set): Fix comment typos.

diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 27fac2c..8c57cd5 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@ 
+2020-04-02  Sandra Loosemore  <sandra@codesourcery.com>
+
+	* alias.c (get_alias_set): Fix comment typos.
+
 2020-04-02  Fritz Reese  <foreese@gcc.gnu.org>
 
 	PR fortran/85982
diff --git a/gcc/alias.c b/gcc/alias.c
index 82a27f6..49bd7b3 100644
--- a/gcc/alias.c
+++ b/gcc/alias.c
@@ -861,7 +861,7 @@  get_alias_set (tree t)
   alias_set_type set;
 
   /* We cannot give up with -fno-strict-aliasing because we need to build
-     proper type representation for possible functions which are build with
+     proper type representations for possible functions which are built with
      -fstrict-aliasing.  */
 
   /* return 0 if this or its type is an error.  */
@@ -920,9 +920,9 @@  get_alias_set (tree t)
       if (set != -1)
 	return set;
       /* Handle structure type equality for pointer types, arrays and vectors.
-	 This is easy to do, because the code bellow ignore canonical types on
+	 This is easy to do, because the code below ignores canonical types on
 	 these anyway.  This is important for LTO, where TYPE_CANONICAL for
-	 pointers cannot be meaningfuly computed by the frotnend.  */
+	 pointers cannot be meaningfully computed by the frontend.  */
       if (canonical_type_used_p (t))
 	{
 	  /* In LTO we set canonical types for all types where it makes
@@ -1031,9 +1031,9 @@  get_alias_set (tree t)
 	   || TREE_CODE (p) == VECTOR_TYPE;
 	   p = TREE_TYPE (p))
 	{
-	  /* Ada supports recusive pointers.  Instead of doing recrusion check
-	     just give up once the preallocated space of 8 elements is up.
-	     In this case just punt to void * alias set.  */
+	  /* Ada supports recursive pointers.  Instead of doing recursion
+	     check, just give up once the preallocated space of 8 elements
+	     is up.  In this case just punt to void * alias set.  */
 	  if (reference.length () == 8)
 	    {
 	      p = ptr_type_node;
@@ -1048,7 +1048,7 @@  get_alias_set (tree t)
 	}
       p = TYPE_MAIN_VARIANT (p);
 
-      /* In LTO for C++ programs we can turn in complete types to complete
+      /* In LTO for C++ programs we can turn incomplete types to complete
 	 using ODR name lookup.  */
       if (in_lto_p && TYPE_STRUCTURAL_EQUALITY_P (p) && odr_type_p (p))
 	{