[gcc(refs/users/guojiufu/heads/guojiufu-branch)] Fix typo: paramter -> parameter [PR93864]

Jiu Fu Guo guojiufu@gcc.gnu.org
Wed Mar 11 02:16:09 GMT 2020


https://gcc.gnu.org/g:71837f64ab07ed915ac333f620826668566b9cfb

commit 71837f64ab07ed915ac333f620826668566b9cfb
Author: Jakub Jelinek <jakub@redhat.com>
Date:   Tue Feb 25 09:02:57 2020 +0100

    Fix typo: paramter -> parameter [PR93864]
    
    2020-02-25  Jakub Jelinek  <jakub@redhat.com>
    
            PR translation/93864
            * config/lm32/lm32.c (lm32_setup_incoming_varargs): Fix comment typo
            paramter -> parameter.
            * config/aarch64/aarch64.c (aarch64_is_extend_from_extract): Likewise.
            * ipa-prop.h (struct ipa_agg_replacement_value): Likewise.
    
            * intrinsic.texi (CO_BROADCAST): Fix typo, paramter -> parameter.
            * trans-array.c (gfc_allocate_pdt_comp, gfc_deallocate_pdt_comp,
            gfc_check_pdt_dummy): Fix comment typo paramter -> parameter.
    
            * objc.dg/encode-2.m: Fix comment typo paramter -> parameter.
            * obj-c++.dg/encode-4.mm: Likewise.
            * gfortran.dg/data_array_5.f90: Likewise.
            * gcc.dg/decl-1.c: Likewise.

Diff:
---
 gcc/ChangeLog                              | 8 ++++++++
 gcc/config/aarch64/aarch64.c               | 2 +-
 gcc/config/lm32/lm32.c                     | 8 ++++----
 gcc/fortran/ChangeLog                      | 9 ++++++++-
 gcc/fortran/intrinsic.texi                 | 2 +-
 gcc/fortran/trans-array.c                  | 6 +++---
 gcc/ipa-prop.h                             | 2 +-
 gcc/testsuite/ChangeLog                    | 8 ++++++++
 gcc/testsuite/gcc.dg/decl-1.c              | 2 +-
 gcc/testsuite/gfortran.dg/data_array_5.f90 | 2 +-
 gcc/testsuite/obj-c++.dg/encode-4.mm       | 4 ++--
 gcc/testsuite/objc.dg/encode-2.m           | 4 ++--
 12 files changed, 40 insertions(+), 17 deletions(-)

diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 3292b9f0842..0d6cf71cb04 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,11 @@
+2020-02-25  Jakub Jelinek  <jakub@redhat.com>
+
+	PR translation/93864
+	* config/lm32/lm32.c (lm32_setup_incoming_varargs): Fix comment typo
+	paramter -> parameter.
+	* config/aarch64/aarch64.c (aarch64_is_extend_from_extract): Likewise.
+	* ipa-prop.h (struct ipa_agg_replacement_value): Likewise.
+
 2020-02-24  Roman Zhuykov  <zhroma@ispras.ru>
 
 	* doc/install.texi (--enable-checking): Properly document current
diff --git a/gcc/config/aarch64/aarch64.c b/gcc/config/aarch64/aarch64.c
index 703f69a8b42..f53c98e7376 100644
--- a/gcc/config/aarch64/aarch64.c
+++ b/gcc/config/aarch64/aarch64.c
@@ -2294,7 +2294,7 @@ aarch64_is_noplt_call_p (rtx sym)
 
 /* Return true if the offsets to a zero/sign-extract operation
    represent an expression that matches an extend operation.  The
-   operands represent the paramters from
+   operands represent the parameters from
 
    (extract:MODE (mult (reg) (MULT_IMM)) (EXTRACT_IMM) (const_int 0)).  */
 bool
diff --git a/gcc/config/lm32/lm32.c b/gcc/config/lm32/lm32.c
index 6f59e370454..9bc3824d506 100644
--- a/gcc/config/lm32/lm32.c
+++ b/gcc/config/lm32/lm32.c
@@ -691,10 +691,10 @@ lm32_setup_incoming_varargs (cumulative_args_t cum_v,
   else
     {
       /* this is the common case, we have been passed details setup
-         for the last named argument, we want to skip over the
-         registers, if any used in passing this named paramter in
-         order to determine which is the first registers used to pass
-         anonymous arguments.  */
+	 for the last named argument, we want to skip over the
+	 registers, if any used in passing this named parameter in
+	 order to determine which is the first registers used to pass
+	 anonymous arguments.  */
       int size = arg.promoted_size_in_bytes ();
 
       first_anon_arg =
diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog
index 5759689f8b7..bb273563cc0 100644
--- a/gcc/fortran/ChangeLog
+++ b/gcc/fortran/ChangeLog
@@ -1,5 +1,12 @@
+2020-02-25  Jakub Jelinek  <jakub@redhat.com>
+
+	PR translation/93864
+	* intrinsic.texi (CO_BROADCAST): Fix typo, paramter -> parameter.
+	* trans-array.c (gfc_allocate_pdt_comp, gfc_deallocate_pdt_comp,
+	gfc_check_pdt_dummy): Fix comment typo paramter -> parameter.
+
 2020-02-24  Mark Eggleston  <mark.eggleston@codethink.com>
-	Steven G. Kargl  <kargl@gcc.gnu.org>
+	    Steven G. Kargl  <kargl@gcc.gnu.org>
 
 	PR fortran/93835
 	* decl.c (gfc_match_data) : Check whether the data expression
diff --git a/gcc/fortran/intrinsic.texi b/gcc/fortran/intrinsic.texi
index 36ca4e75f03..a1ecf5933ba 100644
--- a/gcc/fortran/intrinsic.texi
+++ b/gcc/fortran/intrinsic.texi
@@ -3693,7 +3693,7 @@ Collective subroutine
 @item @emph{Arguments}:
 @multitable @columnfractions .20 .65
 @item @var{A}            @tab INTENT(INOUT) argument; shall have the same
-dynamic type and type paramters on all images of the current team. If it
+dynamic type and type parameters on all images of the current team. If it
 is an array, it shall have the same shape on all images.
 @item @var{SOURCE_IMAGE} @tab a scalar integer expression.
 It shall have the same the same value on all images and refer to an
diff --git a/gcc/fortran/trans-array.c b/gcc/fortran/trans-array.c
index 0449d281bf7..65ba84c672f 100644
--- a/gcc/fortran/trans-array.c
+++ b/gcc/fortran/trans-array.c
@@ -9846,7 +9846,7 @@ gfc_copy_only_alloc_comp (gfc_symbol * der_type, tree decl, tree dest, int rank)
 }
 
 
-/* Recursively traverse an object of paramterized derived type, generating
+/* Recursively traverse an object of parameterized derived type, generating
    code to allocate parameterized components.  */
 
 tree
@@ -9862,7 +9862,7 @@ gfc_allocate_pdt_comp (gfc_symbol * der_type, tree decl, int rank,
   return res;
 }
 
-/* Recursively traverse an object of paramterized derived type, generating
+/* Recursively traverse an object of parameterized derived type, generating
    code to deallocate parameterized components.  */
 
 tree
@@ -9873,7 +9873,7 @@ gfc_deallocate_pdt_comp (gfc_symbol * der_type, tree decl, int rank)
 }
 
 
-/* Recursively traverse a dummy of paramterized derived type to check the
+/* Recursively traverse a dummy of parameterized derived type to check the
    values of LEN parameters.  */
 
 tree
diff --git a/gcc/ipa-prop.h b/gcc/ipa-prop.h
index 6aad0c4a147..ea5043acf4f 100644
--- a/gcc/ipa-prop.h
+++ b/gcc/ipa-prop.h
@@ -738,7 +738,7 @@ struct GTY(()) ipa_agg_replacement_value
   HOST_WIDE_INT offset;
   /* The constant value.  */
   tree value;
-  /* The paramter index.  */
+  /* The parameter index.  */
   int index;
   /* Whether the value was passed by reference.  */
   bool by_ref;
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index fa451c6d4d5..fca49c36c19 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,11 @@
+2020-02-25  Jakub Jelinek  <jakub@redhat.com>
+
+	PR translation/93864
+	* objc.dg/encode-2.m: Fix comment typo paramter -> parameter.
+	* obj-c++.dg/encode-4.mm: Likewise.
+	* gfortran.dg/data_array_5.f90: Likewise.
+	* gcc.dg/decl-1.c: Likewise.
+
 2020-02-24  David Malcolm  <dmalcolm@redhat.com>
 
 	PR analyzer/93032
diff --git a/gcc/testsuite/gcc.dg/decl-1.c b/gcc/testsuite/gcc.dg/decl-1.c
index 348bb92eb81..8bad2d368ba 100644
--- a/gcc/testsuite/gcc.dg/decl-1.c
+++ b/gcc/testsuite/gcc.dg/decl-1.c
@@ -6,7 +6,7 @@
    6.7.5.3 p11.  Also see C89 DR #009, which was erroneously omitted
    from C99, and resubmitted as DR #249: if in a parameter
    declaration, an identifier can be read as a typedef name or a
-   paramter name, it is read as a typedef name).  */
+   parameter name, it is read as a typedef name).  */
 
 /* { dg-do compile } */
 
diff --git a/gcc/testsuite/gfortran.dg/data_array_5.f90 b/gcc/testsuite/gfortran.dg/data_array_5.f90
index 1d4e4e758a7..9f62b93dd38 100644
--- a/gcc/testsuite/gfortran.dg/data_array_5.f90
+++ b/gcc/testsuite/gfortran.dg/data_array_5.f90
@@ -1,6 +1,6 @@
 ! { dg-do compile }
 ! Tests the fix for PR36371, in which the locus for the errors pointed to
-! the paramter declaration rather than the data statement.
+! the parameter declaration rather than the data statement.
 !
 ! Contributed by Dominique d'Humieres <dominiq@lps.ens.fr>
 !
diff --git a/gcc/testsuite/obj-c++.dg/encode-4.mm b/gcc/testsuite/obj-c++.dg/encode-4.mm
index 4f34644481e..ac398c8c715 100644
--- a/gcc/testsuite/obj-c++.dg/encode-4.mm
+++ b/gcc/testsuite/obj-c++.dg/encode-4.mm
@@ -2,10 +2,10 @@
 
 /* The _encoded_ parameter offsets for Objective-C methods are 
    computed inductively as follows:
-    - The first paramter (self) has offset 0;
+    - The first parameter (self) has offset 0;
     - The k-th parameter (k > 1) has offset equal to the
       sum of:
-        - the offset of the k-1-st paramter
+        - the offset of the k-1-st parameter
         - the (void *)-promoted size of the k-1-st parameter.
 
    Note that the encoded offsets need not correspond
diff --git a/gcc/testsuite/objc.dg/encode-2.m b/gcc/testsuite/objc.dg/encode-2.m
index a57a3d3211b..1f496c1a961 100644
--- a/gcc/testsuite/objc.dg/encode-2.m
+++ b/gcc/testsuite/objc.dg/encode-2.m
@@ -2,10 +2,10 @@
 
 /* The _encoded_ parameter offsets for Objective-C methods are 
    computed inductively as follows:
-    - The first paramter (self) has offset 0;
+    - The first parameter (self) has offset 0;
     - The k-th parameter (k > 1) has offset equal to the
       sum of:
-        - the offset of the k-1-st paramter
+        - the offset of the k-1-st parameter
         - the (void *)-promoted size of the k-1-st parameter.
 
    Note that the encoded offsets need not correspond


More information about the Gcc-cvs mailing list