From patchwork Wed Jan 9 22:10:42 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sandra Loosemore X-Patchwork-Id: 31021 Received: (qmail 51390 invoked by alias); 9 Jan 2019 22:10:56 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 51361 invoked by uid 89); 9 Jan 2019 22:10:55 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-26.4 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.2 spammy=2018-12-07, 20181207, corrupted, yoshinori X-HELO: relay1.mentorg.com Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 09 Jan 2019 22:10:52 +0000 Received: from svr-orw-mbx-03.mgc.mentorg.com ([147.34.90.203]) by relay1.mentorg.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-SHA384:256) id 1ghM3l-0000WS-ME from Sandra_Loosemore@mentor.com ; Wed, 09 Jan 2019 14:10:49 -0800 Received: from [127.0.0.1] (147.34.91.1) by svr-orw-mbx-03.mgc.mentorg.com (147.34.90.203) with Microsoft SMTP Server (TLS) id 15.0.1320.4; Wed, 9 Jan 2019 14:10:47 -0800 To: , "gdb-patches@sourceware.org" From: Sandra Loosemore Subject: [patch, committed] apply libiberty/include patch for gcc pr other/16615 Message-ID: Date: Wed, 9 Jan 2019 15:10:42 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 I've committed a series of GCC patches today to fix a long-standing bug (PR other/16615) complaining about use of "can not" instead of the correct "cannot" in comments, error messages, documentation etc. Some of the files I touched are in the libiberty/ and include/ directories and it was suggested I should make the same changes to the copies used by binutils and gdb as well. So I've gone ahead and checked in the attached patch to do that. -Sandra commit a08da33eb3f69dec01810440a40c77ed56a79b69 Author: Sandra Loosemore Date: Wed Jan 9 13:59:16 2019 -0800 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. diff --git a/include/ChangeLog b/include/ChangeLog index 939eec9..626ed4c 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,11 @@ +2019-01-09 Sandra Loosemore + + Merge from GCC: + PR other/16615 + + * libiberty.h: Mechanically replace "can not" with "cannot". + * plugin-api.h: Likewise. + 2018-12-25 Yoshinori Sato * elf/rx.h (EF_RX_CPU_MASK): Update new bits. diff --git a/include/libiberty.h b/include/libiberty.h index d9c0b25..5747613 100644 --- a/include/libiberty.h +++ b/include/libiberty.h @@ -558,7 +558,7 @@ extern FILE *pex_input_file (struct pex_obj *obj, int flags, extern FILE *pex_input_pipe (struct pex_obj *obj, int binary); /* Read the standard output of the last program to be executed. - pex_run can not be called after this. BINARY should be non-zero if + pex_run cannot be called after this. BINARY should be non-zero if the file should be opened in binary mode; this is ignored on Unix. Returns NULL on error. Don't call fclose on the returned FILE; it will be closed by pex_free. */ @@ -566,7 +566,7 @@ extern FILE *pex_input_pipe (struct pex_obj *obj, int binary); extern FILE *pex_read_output (struct pex_obj *, int binary); /* Read the standard error of the last program to be executed. - pex_run can not be called after this. BINARY should be non-zero if + pex_run cannot be called after this. BINARY should be non-zero if the file should be opened in binary mode; this is ignored on Unix. Returns NULL on error. Don't call fclose on the returned FILE; it will be closed by pex_free. */ diff --git a/include/plugin-api.h b/include/plugin-api.h index 174f01c..2076bda 100644 --- a/include/plugin-api.h +++ b/include/plugin-api.h @@ -34,7 +34,7 @@ #include #if !defined(HAVE_STDINT_H) && !defined(HAVE_INTTYPES_H) && \ !defined(UINT64_MAX) && !defined(uint64_t) -#error can not find uint64_t type +#error cannot find uint64_t type #endif #ifdef __cplusplus diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog index 6859027..2ada84e 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 4624cd5..ddcd3be 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 2c6c6ab..8632253 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 a8a0bd1..cc7692c 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"),