public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* GTY and const
@ 2004-12-14  7:00 Matt Kraai
  2004-12-14 10:30 ` Steven Bosscher
  2004-12-14 18:35 ` Zack Weinberg
  0 siblings, 2 replies; 13+ messages in thread
From: Matt Kraai @ 2004-12-14  7:00 UTC (permalink / raw)
  To: gcc

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?

-- 
Matt

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2004-12-24  0:26 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <1103776856.24215.ezmlm@gcc.gnu.org>
2004-12-23 17:09 ` Re: GTY and const Lucas (a.k.a T-Bird or bsdfan3)
2004-12-23 20:04   ` Robert Dewar
2004-12-24  2:32   ` Marc Espie
2004-12-14  7:00 Matt Kraai
2004-12-14 10:30 ` Steven Bosscher
2004-12-14 18:35 ` Zack Weinberg
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

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).