From a08da33eb3f69dec01810440a40c77ed56a79b69 Mon Sep 17 00:00:00 2001 From: Sandra Loosemore Date: Wed, 9 Jan 2019 13:59:16 -0800 Subject: Merge from gcc: use "cannot" instead of "can not" in libiberty and include. 2019-01-09 Sandra Loosemore Merge from GCC: 2019-01-09 Sandra Loosemore PR other/16615 [2/5] include/ * libiberty.h: Mechanically replace "can not" with "cannot". * plugin-api.h: Likewise. libiberty/ * cp-demangle.c: Mechanically replace "can not" with "cannot". * floatformat.c: Likewise. * strerror.c: Likewise. --- libiberty/ChangeLog | 9 +++++++++ libiberty/cp-demangle.c | 4 ++-- libiberty/floatformat.c | 2 +- libiberty/strerror.c | 2 +- 4 files changed, 13 insertions(+), 4 deletions(-) (limited to 'libiberty') diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog index 6859027b683..2ada84e22c1 100644 --- a/libiberty/ChangeLog +++ b/libiberty/ChangeLog @@ -1,3 +1,12 @@ +2019-01-09 Sandra Loosemore + + Merge from GCC: + PR other/16615 + + * cp-demangle.c: Mechanically replace "can not" with "cannot". + * floatformat.c: Likewise. + * strerror.c: Likewise. + 2018-12-07 Nick Clifton PR 87681 diff --git a/libiberty/cp-demangle.c b/libiberty/cp-demangle.c index 4624cd5fb2f..ddcd3be6b8f 100644 --- a/libiberty/cp-demangle.c +++ b/libiberty/cp-demangle.c @@ -6201,13 +6201,13 @@ cplus_demangle_init_info (const char *mangled, int options, size_t len, di->n = mangled; - /* We can not need more components than twice the number of chars in + /* We cannot need more components than twice the number of chars in the mangled string. Most components correspond directly to chars, but the ARGLIST types are exceptions. */ di->num_comps = 2 * len; di->next_comp = 0; - /* Similarly, we can not need more substitutions than there are + /* Similarly, we cannot need more substitutions than there are chars in the mangled string. */ di->num_subs = len; di->next_sub = 0; diff --git a/libiberty/floatformat.c b/libiberty/floatformat.c index 2c6c6abe77f..8632253b4c1 100644 --- a/libiberty/floatformat.c +++ b/libiberty/floatformat.c @@ -489,7 +489,7 @@ floatformat_to_double (const struct floatformat *fmt, int nan = mant_bits_set (fmt, ufrom); /* On certain systems (such as GNU/Linux), the use of the - INFINITY macro below may generate a warning that can not be + INFINITY macro below may generate a warning that cannot be silenced due to a bug in GCC (PR preprocessor/11931). The preprocessor fails to recognise the __extension__ keyword in conjunction with the GNU/C99 extension for hexadecimal diff --git a/libiberty/strerror.c b/libiberty/strerror.c index a8a0bd1f7e2..cc7692c1d69 100644 --- a/libiberty/strerror.c +++ b/libiberty/strerror.c @@ -299,7 +299,7 @@ static const struct error_info error_table[] = ENTRY(EREMCHG, "EREMCHG", "Remote address changed"), #endif #if defined (ELIBACC) - ENTRY(ELIBACC, "ELIBACC", "Can not access a needed shared library"), + ENTRY(ELIBACC, "ELIBACC", "Cannot access a needed shared library"), #endif #if defined (ELIBBAD) ENTRY(ELIBBAD, "ELIBBAD", "Accessing a corrupted shared library"), -- cgit v1.2.1