From: Dhruv Chawla <[email protected]>

Signed-off-by: Dhruv Chawla <[email protected]>

gcc/c-family/ChangeLog:

        * c-attribs.cc (append_access_attr): Fix typos.
        (append_access_attr_idxs): Likewise.
        (has_attribute): Likewise.
        * c-common.cc (get_cpp_ttype_from_string_type): Likewise.
        (cb_get_suggestion): Likewise.
        (maybe_add_include_fixit): Likewise.
        * c-common.h (convert_vector_to_array_for_subscript): Likewise.
        * c-cppbuiltin.cc (builtin_define_type_max): Likewise.
        * c-format.cc (check_format_info_main): Likewise.
        (check_format_types): Likewise.
        * c-omp.cc (c_omp_categorize_directive): Likewise.
        * c-opts.cc (c_common_post_options): Likewise.
        * c-ubsan.cc (ubsan_instrument_bounds): Likewise.

gcc/c/ChangeLog:

        * c-decl.cc (pop_file_scope): Fix typos.
        (diagnose_mismatched_decls): Likewise.
        (parser_xref_tag): Likewise.
        (verify_counted_by_attribute): Likewise.
        * c-fold.cc (c_disable_warnings): Likewise.
        * c-parser.cc (c_parser_do_statement): Likewise.
        (c_parser_expression): Likewise.
        (c_parser_objc_at_property_declaration): Likewise.
        * c-tree.h (struct c_declspecs): Likewise.
        * c-typeck.cc (build_access_with_size_for_counted_by): Likewise.
        (build_modify_expr): Likewise.
        (c_find_omp_var_r): Likewise.
        * gimple-parser.cc (c_parser_gimple_compound_statement): Likewise.
---
 gcc/c-family/c-attribs.cc    | 8 ++++----
 gcc/c-family/c-common.cc     | 6 +++---
 gcc/c-family/c-common.h      | 2 +-
 gcc/c-family/c-cppbuiltin.cc | 2 +-
 gcc/c-family/c-format.cc     | 6 +++---
 gcc/c-family/c-omp.cc        | 2 +-
 gcc/c-family/c-opts.cc       | 2 +-
 gcc/c-family/c-ubsan.cc      | 2 +-
 gcc/c/c-decl.cc              | 8 ++++----
 gcc/c/c-fold.cc              | 2 +-
 gcc/c/c-parser.cc            | 8 ++++----
 gcc/c/c-tree.h               | 2 +-
 gcc/c/c-typeck.cc            | 6 +++---
 gcc/c/gimple-parser.cc       | 2 +-
 14 files changed, 29 insertions(+), 29 deletions(-)

diff --git a/gcc/c-family/c-attribs.cc b/gcc/c-family/c-attribs.cc
index d437c55285e..222ddf8c60a 100644
--- a/gcc/c-family/c-attribs.cc
+++ b/gcc/c-family/c-attribs.cc
@@ -5407,7 +5407,7 @@ append_access_attr (tree node[3], tree attrs, const char 
*attrstr,
   rdwr_map new_idxs;
   init_attr_rdwr_indices (&new_idxs, ataccess);
 
-  /* The current access specification alrady applied.  */
+  /* The current access specification already applied.  */
   rdwr_map cur_idxs;
   init_attr_rdwr_indices (&cur_idxs, attrs);
 
@@ -5613,9 +5613,9 @@ append_access_attr_idxs (tree node[3], tree attrs, const 
char *attrstr,
 
 /* Handle the access attribute for function type NODE[0], with the function
    DECL optionally in NODE[1].  The handler is called both in response to
-   an explict attribute access on a declaration with a mode and one or two
+   an explicit attribute access on a declaration with a mode and one or two
    positional arguments, and for internally synthesized access specifications
-   with a string argument optionally followd by a DECL or expression
+   with a string argument optionally followed by a DECL or expression
    representing a VLA bound.  To speed up parsing, the handler transforms
    the attribute and its arguments into a string.  */
 
@@ -7031,7 +7031,7 @@ has_attribute (location_t atloc, tree t, tree attr, tree 
(*convert)(tree))
                  if (TREE_CODE (v1) == IDENTIFIER_NODE
                      || TREE_CODE (v2) == IDENTIFIER_NODE)
                    /* Two identifiers are the same if their values are
-                      equal (that's handled above).  Otherwise ther are
+                      equal (that's handled above).  Otherwise they are
                       either not the same or oneis not an identifier.  */
                    return false;
 
diff --git a/gcc/c-family/c-common.cc b/gcc/c-family/c-common.cc
index 874530f065d..84ba769252a 100644
--- a/gcc/c-family/c-common.cc
+++ b/gcc/c-family/c-common.cc
@@ -945,7 +945,7 @@ get_cpp_ttype_from_string_type (tree string_type)
   return CPP_OTHER;
 }
 
-/* The global record of string concatentations, for use in
+/* The global record of string concatenations, for use in
    extracting locations within string literals.  */
 
 GTY(()) string_concat_db *g_string_concat_db;
@@ -9757,7 +9757,7 @@ cb_get_suggestion (cpp_reader *, const char *goal,
   return bm.get_best_meaningful_candidate ();
 }
 
-/* Return the latice point which is the wider of the two FLT_EVAL_METHOD
+/* Return the lattice point which is the wider of the two FLT_EVAL_METHOD
    modes X, Y.  This isn't just  >, as the FLT_EVAL_METHOD values added
    by C TS 18661-3 for interchange  types that are computed in their
    native precision are larger than the C11 values for evaluating in the
@@ -10244,7 +10244,7 @@ maybe_add_include_fixit (rich_location *richloc, const 
char *header,
 /* Attempt to convert a braced array initializer list CTOR for array
    TYPE into a STRING_CST for convenience and efficiency.  Return
    the converted string on success or the original ctor on failure.
-   Also, for non-convertable CTORs which contain RAW_DATA_CST values
+   Also, for non-convertible CTORs which contain RAW_DATA_CST values
    among the elts try to extend the range of RAW_DATA_CSTs.  */
 
 static tree
diff --git a/gcc/c-family/c-common.h b/gcc/c-family/c-common.h
index a4cd6786109..08d2d82b386 100644
--- a/gcc/c-family/c-common.h
+++ b/gcc/c-family/c-common.h
@@ -1591,7 +1591,7 @@ extern tree build_userdef_literal (tree suffix_id, tree 
value,
 
 extern bool convert_vector_to_array_for_subscript (location_t, tree *, tree);
 
-/* Possibe cases of scalar_to_vector conversion.  */
+/* Possible cases of scalar_to_vector conversion.  */
 enum stv_conv {
   stv_error,        /* Error occurred.  */
   stv_nothing,      /* Nothing happened.  */
diff --git a/gcc/c-family/c-cppbuiltin.cc b/gcc/c-family/c-cppbuiltin.cc
index 74cbeecb165..910e5ccfc38 100644
--- a/gcc/c-family/c-cppbuiltin.cc
+++ b/gcc/c-family/c-cppbuiltin.cc
@@ -2049,7 +2049,7 @@ builtin_define_type_max (const char *macro, tree type)
   builtin_define_type_minmax (NULL, macro, type);
 }
 
-/* Given a value with COUNT LSBs set, fill BUF with a hexidecimal
+/* Given a value with COUNT LSBs set, fill BUF with a hexadecimal
    representation of that value.  For example, a COUNT of 10 would
    return "0x3ff".  */
 
diff --git a/gcc/c-family/c-format.cc b/gcc/c-family/c-format.cc
index af326fc9243..1eb8f90747d 100644
--- a/gcc/c-family/c-format.cc
+++ b/gcc/c-family/c-format.cc
@@ -3884,7 +3884,7 @@ check_format_info_main (format_check_results *res,
   init_dollar_format_checking (info->first_arg_num, first_fillin_param);
 
   /* In GCC diagnostic functions check plain directives (substrings within
-     the format string that don't start with %) for quoting and punctuations
+     the format string that don't start with %) for quoting and punctuation
      problems.  */
   bool ck_plain = (!info->is_raw
                   && (info->format_type == gcc_diag_format_type
@@ -4025,7 +4025,7 @@ check_format_info_main (format_check_results *res,
                                    format_chars - orig_format_chars,
                                    OPT_Wformat_,
                                    "%qc directive redundant after prior "
-                                   "occurence of the same", format_char);
+                                   "occurrence of the same", format_char);
          else if (!color_begin)
            format_warning_at_char (format_string_loc, format_string_cst,
                                    format_chars - orig_format_chars,
@@ -4375,7 +4375,7 @@ check_format_types (const substring_loc &fmt_loc,
 /* Given type TYPE, attempt to dereference the type N times
    (e.g. from ("int ***", 2) to "int *")
 
-   Return the derefenced type, with any qualifiers
+   Return the dereferenced type, with any qualifiers
    such as "const" stripped from the result, or
    NULL if unsuccessful (e.g. TYPE is not a pointer type).  */
 
diff --git a/gcc/c-family/c-omp.cc b/gcc/c-family/c-omp.cc
index b48243a2261..754d5c73472 100644
--- a/gcc/c-family/c-omp.cc
+++ b/gcc/c-family/c-omp.cc
@@ -4938,7 +4938,7 @@ c_omp_categorize_directive (const char *first, const char 
*second,
   return NULL;
 }
 
-/* Auxilliary helper function for c_omp_expand_variant_construct.  */
+/* Auxiliary helper function for c_omp_expand_variant_construct.  */
 
 static tree
 c_omp_expand_variant_construct_r (vec<struct omp_variant> &candidates,
diff --git a/gcc/c-family/c-opts.cc b/gcc/c-family/c-opts.cc
index c818a0802ce..ca435ac4086 100644
--- a/gcc/c-family/c-opts.cc
+++ b/gcc/c-family/c-opts.cc
@@ -865,7 +865,7 @@ c_common_post_options (const char **pfilename)
   sanitize_cpp_opts ();
 
   /* Don't register include chains if under -fpreprocessed since we might not
-     have correct sysroot this mode, and this may cause file permssion
+     have correct sysroot this mode, and this may cause file permission
      issue.  */
   if (!cpp_opts->preprocessed)
     register_include_chains (parse_in, sysroot, iprefix, imultilib,
diff --git a/gcc/c-family/c-ubsan.cc b/gcc/c-family/c-ubsan.cc
index 2025a45cd76..fedce9b0d48 100644
--- a/gcc/c-family/c-ubsan.cc
+++ b/gcc/c-family/c-ubsan.cc
@@ -560,7 +560,7 @@ ubsan_instrument_bounds (location_t loc, tree array, tree 
*index,
 /* Instrument array bounds for the pointer array address which is
    a call to .ACCESS_WITH_SIZE.  We create special
    builtin, that gets expanded in the sanopt pass, and make an array
-   dimention of it.  POINTER_ADDR is the pointer array's base address.
+   dimension of it.  POINTER_ADDR is the pointer array's base address.
    *INDEX is an index to the array.
    IGNORE_OFF_BY_ONE is true if the POINTER_ADDR is not inside an
    INDIRECT_REF.
diff --git a/gcc/c/c-decl.cc b/gcc/c/c-decl.cc
index 683780ab654..acc7d5dc491 100644
--- a/gcc/c/c-decl.cc
+++ b/gcc/c/c-decl.cc
@@ -1537,7 +1537,7 @@ pop_file_scope (void)
   maybe_apply_pending_pragma_weaks ();
 }
 
-/* Whether we are curently inside the initializer for an
+/* Whether we are currently inside the initializer for an
    underspecified object definition (C23 auto or constexpr).  */
 static bool in_underspecified_init;
 
@@ -2573,7 +2573,7 @@ diagnose_mismatched_decls (tree newdecl, tree olddecl,
                        "but not here");
            }
        }
-      /* Check if these are unmergable overlapping FMV declarations.  */
+      /* Check if these are unmergeable overlapping FMV declarations.  */
       if (!TARGET_HAS_FMV_TARGET_ATTRIBUTE
          && diagnose_versioned_decls (olddecl, newdecl))
        return false;
@@ -8822,7 +8822,7 @@ parser_xref_tag (location_t loc, enum tree_code code, 
tree name,
 
   ref = lookup_tag (code, name, has_enum_type_specifier, &refloc);
 
-  /* If the visble type is still being defined, see if there is
+  /* If the visible type is still being defined, see if there is
      an earlier definition (which may be complete).  We do not
      have to loop because nested redefinitions are not allowed.  */
   if (flag_isoc23 && ref && C_TYPE_BEING_DEFINED (ref))
@@ -9549,7 +9549,7 @@ verify_counted_by_attribute (tree outmost_struct_type,
 
          tree fieldname = TREE_VALUE (TREE_VALUE (attr_counted_by));
 
-         /* Verify the argument of the attrbute is a valid field of the
+         /* Verify the argument of the attribute is a valid field of the
             containing structure.  */
 
          tree counted_by_field = lookup_field (outmost_struct_type,
diff --git a/gcc/c/c-fold.cc b/gcc/c/c-fold.cc
index 122049daf87..2dd04a223c3 100644
--- a/gcc/c/c-fold.cc
+++ b/gcc/c/c-fold.cc
@@ -44,7 +44,7 @@ c_disable_warnings (bool disable)
     }
 }
 
-/* If ENABLE is true, reenable issuing warnings.  */
+/* If ENABLE is true, re-enable issuing warnings.  */
 
 static void
 c_enable_warnings (bool enable)
diff --git a/gcc/c/c-parser.cc b/gcc/c/c-parser.cc
index fd6a10d86d0..b456af7deca 100644
--- a/gcc/c/c-parser.cc
+++ b/gcc/c/c-parser.cc
@@ -6624,7 +6624,7 @@ location_t last_init_list_comma;
    nested braced lists.  NESTED_P is true for nested braced lists,
    false for the list of a compound literal or the list that is the
    top-level initializer in a declaration.  VARSIZE_P indicates
-   wether the object to be initialized has a variable size.  */
+   whether the object to be initialized has a variable size.  */
 
 static struct c_expr
 c_parser_braced_init (c_parser *parser, tree type, bool nested_p,
@@ -9160,7 +9160,7 @@ c_parser_do_statement (c_parser *parser, bool ivdep, 
unsigned short unroll,
    In Objective-C, there are two additional variants:
 
    foreach-statement:
-     for ( expression in expresssion ) statement
+     for ( expression in expression ) statement
      for ( declaration in expression ) statement
 
    This is inconsistent with C, because the second variant is allowed
@@ -14287,7 +14287,7 @@ c_parser_expression (c_parser *parser)
        mark_exp_read (lhsval);
       if (c_parser_next_token_is (parser, CPP_EMBED))
        {
-         /* Users aren't interested in milions of -Wunused-value
+         /* Users aren't interested in millions of -Wunused-value
             warnings when using #embed inside of a comma expression,
             and one CPP_NUMBER plus CPP_COMMA before it and one
             CPP_COMMA plus CPP_NUMBER after it is guaranteed by
@@ -15781,7 +15781,7 @@ c_parser_objc_at_property_declaration (c_parser *parser)
            }
 
          /* If we see a comma here, then keep going - even if we already
-            saw a syntax error.  For simple mistakes e.g. (asign, getter=x)
+            saw a syntax error.  For simple mistakes e.g. (assign, getter=x)
             this makes a more useful output and avoid spurious warnings about
             missing attributes that are, in fact, specified after the one with
             the syntax error.  */
diff --git a/gcc/c/c-tree.h b/gcc/c/c-tree.h
index 6dce4d3b4ba..d12ec566d57 100644
--- a/gcc/c/c-tree.h
+++ b/gcc/c/c-tree.h
@@ -458,7 +458,7 @@ struct c_declspecs {
   BOOL_BITFIELD complex_p : 1;
   /* Whether "inline" was specified.  */
   BOOL_BITFIELD inline_p : 1;
-  /* Whether "_Noreturn" was speciied.  */
+  /* Whether "_Noreturn" was specified.  */
   BOOL_BITFIELD noreturn_p : 1;
   /* Whether "__thread" or "_Thread_local" was specified.  */
   BOOL_BITFIELD thread_p : 1;
diff --git a/gcc/c/c-typeck.cc b/gcc/c/c-typeck.cc
index f36bf539b68..36a94268779 100644
--- a/gcc/c/c-typeck.cc
+++ b/gcc/c/c-typeck.cc
@@ -3264,7 +3264,7 @@ build_access_with_size_for_counted_by (location_t loc, 
tree ref,
   bool is_fam = c_flexible_array_member_type_p (TREE_TYPE (ref));
 
   /* The result type of the call is a pointer to the flexible array type;
-     or is the original ponter type to the pointer field with counted_by.  */
+     or is the original pointer type to the pointer field with counted_by.  */
   tree result_type = is_fam ? c_build_pointer_type (TREE_TYPE (ref))
                     : TREE_TYPE (ref);
 
@@ -7819,7 +7819,7 @@ build_modify_expr (location_t location, tree lhs, tree 
lhs_origtype,
       lhs = c_fully_fold (lhs, false, NULL, true);
       lhs = stabilize_reference (lhs);
 
-      /* Construct the RHS for any non-atomic compound assignemnt. */
+      /* Construct the RHS for any non-atomic compound assignment. */
       if (!is_atomic_op)
         {
          /* If in LHS op= RHS the RHS has side-effects, ensure they
@@ -16517,7 +16517,7 @@ c_find_omp_var_r (tree *tp, int *, void *data)
   return NULL_TREE;
 }
 
-/* Finish OpenMP iterators ITER.  Return true if they are errorneous
+/* Finish OpenMP iterators ITER.  Return true if they are erroneous
    and clauses containing them should be removed.  */
 
 static bool
diff --git a/gcc/c/gimple-parser.cc b/gcc/c/gimple-parser.cc
index 1e09c70c3c9..0fcb9ead83d 100644
--- a/gcc/c/gimple-parser.cc
+++ b/gcc/c/gimple-parser.cc
@@ -452,7 +452,7 @@ c_parser_gimple_compound_statement (gimple_parser &parser, 
gimple_seq *seq)
   if (! c_parser_require (parser, CPP_OPEN_BRACE, "expected %<{%>"))
     return false;
 
-  /* A compund statement starts with optional declarations.  */
+  /* A compound statement starts with optional declarations.  */
   while (c_parser_next_tokens_start_declaration (parser))
     {
       c_parser_gimple_declaration (parser);
-- 
2.43.0

Reply via email to