From: Zack Weinberg <zack@codesourcery.com>
To: Matt Kraai <kraai@ftbfs.org>
Cc: gcc@gcc.gnu.org
Subject: Re: GTY and const
Date: Tue, 14 Dec 2004 18:35:00 -0000 [thread overview]
Message-ID: <87fz28enjk.fsf@codesourcery.com> (raw)
In-Reply-To: <20041213203007.GA4907@localhost.localdomain> (Matt Kraai's message of "Mon, 13 Dec 2004 12:30:07 -0800")
Matt Kraai <kraai@ftbfs.org> writes:
> Howdy,
>
> One of the warnings that causes PR 18176 is an assignment of a const
> cpp_token * to the source member of the val union of the cpp_token
> structure, which is not const. According to the uses I've found, this
> member could be const, except that doing so causes warnings in
> gtype-desc.c, which does not preserve the const qualifier.
>
> Would it be better to add a cast around the assignment or to make
> the GTY code handle const members?
I'd prefer that you improved gengtype.
zw
next prev parent reply other threads:[~2004-12-14 18:35 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-12-14 7:00 Matt Kraai
2004-12-14 10:30 ` Steven Bosscher
2004-12-14 18:35 ` Zack Weinberg [this message]
2004-12-21 18:26 ` Geoffrey Keating
2004-12-21 19:01 ` Zack Weinberg
2004-12-22 23:11 ` Daniel Berlin
2004-12-22 23:24 ` Zack Weinberg
2004-12-23 3:43 ` Geoff Keating
2004-12-23 5:15 ` Zack Weinberg
2004-12-23 5:39 ` Daniel Berlin
[not found] <1103776856.24215.ezmlm@gcc.gnu.org>
2004-12-23 17:09 ` Lucas (a.k.a T-Bird or bsdfan3)
2004-12-23 20:04 ` Robert Dewar
2004-12-24 2:32 ` Marc Espie
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=87fz28enjk.fsf@codesourcery.com \
--to=zack@codesourcery.com \
--cc=gcc@gcc.gnu.org \
--cc=kraai@ftbfs.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).