This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
GTY and const
- From: Matt Kraai <kraai at ftbfs dot org>
- To: gcc at gcc dot gnu dot org
- Date: Mon, 13 Dec 2004 12:30:07 -0800
- Subject: GTY and const
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