From: Nathan Sidwell <nathan@acm.org>
To: GCC Patches <gcc-patches@gcc.gnu.org>
Subject: Re: [libibery PATCH] Fix bootstrap
Date: Thu, 25 May 2017 01:13:00 -0000 [thread overview]
Message-ID: <024459fb-b511-ec03-7b02-365804fab108@acm.org> (raw)
In-Reply-To: <e0394ada-24cc-7ad3-1d3a-14db8824dd8f@acm.org>
[-- Attachment #1: Type: text/plain, Size: 174 bytes --]
On 05/24/2017 08:34 PM, Nathan Sidwell wrote:
> We now warn on casts to T const. Applied as obvious to fix bootstrap.
And this fixes c-common.c
nathan
--
Nathan Sidwell
[-- Attachment #2: ccom.diff --]
[-- Type: text/x-patch, Size: 1107 bytes --]
2017-05-24 Nathan Sidwell <nathan@acm.org>
* c=common.c (field_decl_cmp, resort_field_decl_cmp): Adjust T
const casts to avoid warning.
Index: c-common.c
===================================================================
--- c-common.c (revision 248441)
+++ c-common.c (working copy)
@@ -5866,8 +5866,8 @@ check_builtin_function_arguments (locati
int
field_decl_cmp (const void *x_p, const void *y_p)
{
- const tree *const x = (const tree *const) x_p;
- const tree *const y = (const tree *const) y_p;
+ const tree *const x = (const tree *) x_p;
+ const tree *const y = (const tree *) y_p;
if (DECL_NAME (*x) == DECL_NAME (*y))
/* A nontype is "greater" than a type. */
@@ -5892,8 +5892,8 @@ pointer operator in resort_data. */
static int
resort_field_decl_cmp (const void *x_p, const void *y_p)
{
- const tree *const x = (const tree *const) x_p;
- const tree *const y = (const tree *const) y_p;
+ const tree *const x = (const tree *) x_p;
+ const tree *const y = (const tree *) y_p;
if (DECL_NAME (*x) == DECL_NAME (*y))
/* A nontype is "greater" than a type. */
next prev parent reply other threads:[~2017-05-25 0:56 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-25 0:56 Nathan Sidwell
2017-05-25 1:13 ` Nathan Sidwell [this message]
2017-05-25 1:22 ` Nathan Sidwell
2017-05-25 1:42 ` Nathan Sidwell
2017-05-25 6:25 ` Richard Biener
2017-05-25 10:58 ` Nathan Sidwell
2017-05-25 11:21 ` Jonathan Wakely
2017-05-25 11:22 ` Jonathan Wakely
2017-05-25 12:35 ` Nathan Sidwell
2017-05-25 13:01 ` Richard Biener
2017-05-25 13:03 ` Jonathan Wakely
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=024459fb-b511-ec03-7b02-365804fab108@acm.org \
--to=nathan@acm.org \
--cc=gcc-patches@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).