]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libiberty: Fix comment typos
authorMark Wielaard <mark@klomp.org>
Thu, 31 Oct 2024 16:57:45 +0000 (17:57 +0100)
committerMark Wielaard <mark@klomp.org>
Thu, 31 Oct 2024 21:07:18 +0000 (22:07 +0100)
These comment typos were found in the valgrind fork of libiberty
demangle code.

libiberty/ChangeLog:

* cplus-dem.c: Change preceeded to preceded.

include/ChangeLog:

* safe-ctype.h: Change accidently to accidentally.

include/safe-ctype.h
libiberty/cplus-dem.c

index 93785da3f24dd6f5d5b03c613d719507af4c39b8..eec3d940cf602bd4e6e81fd6f936c087b878ce6b 100644 (file)
@@ -112,7 +112,7 @@ extern const unsigned char  _sch_tolower[256];
 #define TOUPPER(c) _sch_toupper[(c) & 0xff]
 #define TOLOWER(c) _sch_tolower[(c) & 0xff]
 
-/* Prevent the users of safe-ctype.h from accidently using the routines
+/* Prevent the users of safe-ctype.h from accidentally using the routines
    from ctype.h.  Initially, the approach was to produce an error when
    detecting that ctype.h has been included.  But this was causing
    trouble as ctype.h might get indirectly included as a result of
index ee9e84f5d6b139927b1b0ca30f7d049526a28fd5..e67ae9300490ea0f6a501000e50f7a372e21529d 100644 (file)
@@ -215,7 +215,7 @@ ada_demangle (const char *mangled, int option ATTRIBUTE_UNUSED)
     goto unknown;
 
   /* Most of the demangling will trivially remove chars.  Operator names
-     may add one char but because they are always preceeded by '__' which is
+     may add one char but because they are always preceded by '__' which is
      replaced by '.', they eventually never expand the size.
      A few special names such as '___elabs' add a few chars (at most 7), but
      they occur only once.  */